-
Notifications
You must be signed in to change notification settings - Fork 166
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
[Request]: apm_writer
user does not have enough permissions
#3980
Comments
👋 @simitt could you connect me with someone on your team who could help me find the solution here? I've read through a handful of discuss threads and GitHub issues, but the specific privileges that are needed here are still not clear. Also, in my search for answers I did come across elastic/apm-server#10057. Is this related? Maybe I can address that issue at the same time? |
@WilliamDEdwards You should be able to get rid of that refresh cache error by adding permissions as described here: https://www.elastic.co/guide/en/observability/8.14/apm-privileges-agent-central-config.html @colleenmcginnis I think the documentation require some clarification on the what permissions are needed on different use cases. I'm reviewing that area of the documentation so I can provide more guidance. |
What documentation page is affected
When setting up APM server, it needs to connect to Elasticsearch.
Following the principle of least privilege, https://www.elastic.co/guide/en/observability/8.14/apm-privileges-to-publish-events.html guides users in using a dedicated
apm_writer
user for this purpose, which is then specified in/etc/apm-server/apm-server.yml
.However, the specified permissions do not suffice.
On startup, APM server logs:
This can be fixed by adding the
monitor
cluster privilege. This is definitely a documentation issue.However, even then, the following is logged also:
This cannot be resolved by adding the
all
cluster and indice privilege. The error does not occur when using the built-inelastic
user, though, so perhaps that user has a special state? I can't tell if this is a bug, or a documentation issue.What change would you like to see?
See above.
Additional info
No response
The text was updated successfully, but these errors were encountered: