-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Elastic Agent] Allow beats subprocess to define custom configuration. #90
Comments
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
I don't think that would introduce a bigger security issues, the files are owned by the right users, if you have already escalated privileges and you are able to edit the file, I think you can do more problems. |
@ph would this be extensible to user configuration eventually and how would that look like? |
@simitt It could be eventually be extended to user configuration. I am looking a bit more into security and how we could lock down stuff, but I presume we could add a list of seccomp rules to the integration that the agent would aggregate and restart or apply it to the corresponding input. Now can a user be able to change it, maybe, maybe it's an |
Hi all, [elastic_agent.filebeat][error] Error extracting container id |
As per elastic/beats#27216 (comment), I was going to open a new issue about the error I have kubernetes container logs enabled in the
Is this related to offending default config or is this a separate issue? |
After some further experimentation, it seems that sadly the issue is caused by enabling any log ingestion (be that from If not, we'd appreciate an update on this, as it's currently blocking a fairly common case path in my opinion! |
Hello everybody.
We didn't find clear solutions to the problem. |
Same for agent 8.4.2 with a cluster running containerd. I think the use of containerd is the issue as therefor the libs from docker are not available also: Can you please provide some update to that issue. |
This will by a no-go to use ElasticSearch for observability if containerd is not supported correctly. Any clue when this will be adressed ? @cmacknz ? |
Please open a separate enhancement request to add containerd support so it can be triaged appropriately, the original description of this issue is unrelated as far as I can tell. |
@cmacknz @Happycoil Sorry - why is this considered a separate issue? @gmontoro's comment was the one about |
@WoodyWoodsta I'm not sure, there's some confusion here among the myriad of different issues and threads. As far as I can tell this issue describes part of the solution to the problem being described by AKS users, but it doesn't appear to be triaged properly. This shouldn't have been a problem for over a year if there was a clear understanding of the consequences. Signing up to Elastic Cloud and connecting it to AKS just doesn't work properly, and Elastic is potentially losing sales because of what is apparently a small config problem. |
I'm not a cloud customer so it's not just that market. My stack is bare-metal kubeadm + |
Thanks for the comments everyone, it seems there is a real bug here with the agent running on AKS which we are not tracking properly. The original purpose of this issue was to add a feature to the agent to enable configuration overrides for processes that the agent starts, which I suppose could possibly been a work around for the problem here but the issue description does not read as a bug affecting many customers or any agent deployed to AKS. #1614 clarifies this and the scope of impact. |
Hello, to add to the Use case 1 mentioned in the description, it seems also the |
Controlling global processors will be addressed with https://github.com/elastic/ingest-dev/issues/2442 |
Closing this as not aligned with our long term strategy, will reopen later if required. |
Motivation
Use case 1: Subprocess doesn't load specific custom beats configuration, this means that the beats will start with the default configuration that is defined in the go-ucfg structs from the source code. As an example, the k8s processors are enabled by default in the context of elastic-agent when they should not.
Use case 2: Seccomp is on by default, with the default options and it's not currently possible to overrides these default and prevent forking java-attacher.
Possible solution:
Allow subprocess to load custom
{process_name}.elastic-agent.yml
when it starts, this could be added as part of the specs and the developer would be able to define a configuration that should be used.Something like this in the spec:
Questions:
Is this introduce a security issue?
The text was updated successfully, but these errors were encountered: