-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Docs: Update writer role with least required privileges #13849
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating the docs. Found a few minor places in the diff. I also found some other global things that I think we should change, but I'll add that as as separate comment for discussion.
Note that I checked the changes against 7.4.0 running on cloud (didn't pull down the latest ES snapshot because I didn't think it would make a difference). There are a couple things I noticed that are probably my fault.
You can fix these issues or punt them to me, but I'm not sure when I'll have time to open up this topic again. |
I've changed from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving doc changes with the caveat that I have not tested the create_doc
privilege.
Thanks for adding the type col. Makes it a lot easier to follow the docs when setting up privileges in Kibana!
Updates the writer role documentation based on #13847 and #13848. Also corrects some mistakes.
read from
to the correctwrite to
(Beats does not read from indices).setup.template.enabled
tofalse
is no longer necessary after Use less restrictive API to check if template exists #13847.setup.ilm.overwrite
tofalse
is unnecessary ifsetup.ilm.check_exists
is alreadyfalse
(even today).monitor
andcreate_doc
being always necessary, explicitly calling out the most secure configuration (following Use less restrictive API to check if template exists #13847 and Do not check for alias when setup.ilm.check_exists is false #13848).monitor
is for: It's for checking things like cluster version and license, not "sending monitor info".manage_pipeline
with the read-onlycluster:admin/ingest/pipeline/get
. Unfortunately, there is no read-only cluster role for pipelines, so it requires this privilege. But better than the very permissivemanage_pipeline
that allows changing any pipeline.index
to the more restrictive, append-onlycreate_doc
(introduced in Add 'create_doc' index privilege elasticsearch#45806).This is one of three PRs to reduce the Beats privileges required in code and documentation:
Relates: #10241