Comments (13)
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.
Will look into it, think it is related to uninstall. Both could probably be solved at once.
from elastic-agent.
Closing for now as it never was prioritized. Can be reopened later on if needed. cc @nimarezainia
from elastic-agent.
Pinging @elastic/ingest-management (Team:Ingest Management)
from elastic-agent.
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.
@ruflin Can you look into this, I think its related to the higher discussion concerning how we work with container.
from elastic-agent.
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.
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.
Oh, the ephemeral option is good too
from elastic-agent.
@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.
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.
@blakerouse Can you take a look at this? A bit related to the k8s story.
from elastic-agent.
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)
from elastic-agent.
Related Issues (20)
- [Flaky Test]: TestEndpointSecurityNonDefaultBasePath, TestEndpointSecurityUnprivileged – version conflict, document already exists HOT 7
- Error while enrolling unprivileged agent [mac] HOT 4
- Actionable error message when attempting to `inspect` an unprivileged Agent as a privileged user HOT 4
- Actionable error message when attempting to `enroll` an unprivileged Agent as a privileged user HOT 7
- Detect and fail early if user attempts to upgrade Fleet-managed Agent using the CLI HOT 4
- [Flaky Test]: TestRepeatedInstallUninstall – failed to set user elastic-agent-user password for service HOT 8
- `--insecure` flag should not be required during enroll/install because we have an `http` FLeet URL HOT 7
- Agent/beats gRPC over domain sockets/named pipes HOT 1
- Make `kubeletstatsreceiver` available in `otel` mode HOT 1
- Improve test proxy/mock fleet server to support further elastic-agent TLS tests HOT 3
- Fleet client configuration validation should take http status code into account HOT 5
- crash when logging empty line HOT 4
- [Windows] TestProxyURL fails with `access denied` error on `fleet.enc` HOT 8
- Can I customize the "agent.name" when sending data to ES instead of using hostname? HOT 1
- [Flaky Test]: TestRpmLogIngestFleetManaged/Monitoring_logs_are_shipped – failed to evaluate all symlinks HOT 3
- Integration tests framework creates more OGC VMs than needed HOT 2
- Extract creating of ESS deployment for integration tests in a separate mage target HOT 5
- Run Elastic Agent in `otel` mode as a service HOT 3
- [Integration Test Framework] Dump process list on first failure HOT 1
- [Flaky Test]: TestActionDispatcher/Dispatch_multiples_events_returns_one_error – Expected error HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elastic-agent.