Git Product home page Git Product logo

Comments (13)

ph avatar ph commented on July 22, 2024 1

@blakerouse @ruflin

Good point, lets say you have laptop It would be weird to allow someone to unenroll.
Could it be something we configure on the Agent Policy like this Policy only allow for ephemeral agent?

from elastic-agent.

blakerouse avatar blakerouse commented on July 22, 2024 1

Will look into it, think it is related to uninstall. Both could probably be solved at once.

from elastic-agent.

jlind23 avatar jlind23 commented on July 22, 2024 1

Closing for now as it never was prioritized. Can be reopened later on if needed. cc @nimarezainia

from elastic-agent.

elasticmachine avatar elasticmachine commented on July 22, 2024

Pinging @elastic/ingest-management (Team:Ingest Management)

from elastic-agent.

EricDavisX avatar EricDavisX commented on July 22, 2024

we should be able to mitigate some of this with plans in place already for 'bulk actions' coming soon; wherein you can select all of the stranded agents, and then do the clicks just once a day or once a week (etc) to get rid of cruft in the UI. I like the idea of having more support on the Agent side, I'm not sure if there are technical reasons it wasn't implemented or considered prior - but we can evaluate it and put it to the roadmap, etc. thanks for logging!

from elastic-agent.

ph avatar ph commented on July 22, 2024

@ruflin Can you look into this, I think its related to the higher discussion concerning how we work with container.

from elastic-agent.

ruflin avatar ruflin commented on July 22, 2024

I like the idea of having an elastic-agent unenroll command. This could also be useful if a user wants to switch from managed to standalone. @blakerouse WDYT?

@jamiesmith Is there an option in docker to have a special call on teardown? If not, an option could also be that an Agent is started with a flag -ephemeral which means when the agent is stopped, it also unenrolls.

from elastic-agent.

jamiesmith avatar jamiesmith commented on July 22, 2024

I am running it with a shell script in the container, so I would just set up an exit trap, which I verified works (except for a force stop).

from elastic-agent.

jamiesmith avatar jamiesmith commented on July 22, 2024

Oh, the ephemeral option is good too

from elastic-agent.

blakerouse avatar blakerouse commented on July 22, 2024

@ruflin I think elastic-agent unenroll is a good idea. I do wonder if there is a use-case where a user cannot call elastic-agent unenroll based on setting from Fleet.

from elastic-agent.

ruflin avatar ruflin commented on July 22, 2024

I'm not sure the permission to unenroll is always tied to ephemeral feature but we could start with that and then iterate if we get other requests. Also not convinced if a single policy only serves ephemeral agents. Why not an additional flag/setting to make it more obvious?

On top of setting it in the policy, it could also be part of capabilities elastic/beats#21096 A user could probably work around it by stopping and agent, change capabilities and restart it. But that is something the system at least would see.

from elastic-agent.

ph avatar ph commented on July 22, 2024

@blakerouse Can you take a look at this? A bit related to the k8s story.

from elastic-agent.

elasticmachine avatar elasticmachine commented on July 22, 2024

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

from elastic-agent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.