Skip to content
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

Fix docs for update security index settings API #110126

Merged

Conversation

n1v0lg
Copy link
Contributor

@n1v0lg n1v0lg commented Jun 25, 2024

Docs tweak with a typo fix and a clarification on how the two available settings interact (essentially #27871). I'm also open to including this info in the more generic settings API but feels like a simple enough callout to add to the security API.

@n1v0lg n1v0lg added >docs General docs changes :Security/Security Security issues without another label labels Jun 25, 2024
@n1v0lg n1v0lg self-assigned this Jun 25, 2024
Copy link

Documentation preview:

@n1v0lg n1v0lg changed the title Fix update security index settings API docs Fix docs for update security index settings API Jun 25, 2024
@n1v0lg
Copy link
Contributor Author

n1v0lg commented Jun 28, 2024

@elasticmachine update branch

@n1v0lg n1v0lg marked this pull request as ready for review June 28, 2024 11:27
@n1v0lg n1v0lg requested a review from gwbrown June 28, 2024 11:27
<<security-api-get-token,tokens>>.

`security`::
(Optional, object) Settings to be used for the index used to store
`security-profile`::
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is change 1.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Truly, the most pernicious class of error: the copy/paste error.

🤦🏼‍♀️ thanks

@elasticsearchmachine elasticsearchmachine added Team:Docs Meta label for docs team Team:Security Meta label for security team labels Jun 28, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-docs (Team:Docs)

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-security (Team:Security)

be modified. This includes:

- `index.auto_expand_replicas`
- `index.number_of_replicas`

NOTE: If `index.auto_expand_replicas` is set, `index.number_of_replicas` will be ignored during updates.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is change 2: I think it's as simple as that. Basically, if you have e.g., 0-1 for auto expand, and a 1 node cluster, trying to set number of replicates to say 2 won't have any effect (#27871)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Matches my understanding, and this API just plumbs through to the normal settings infra so it should behave the same as the same setting on any other index.

Copy link
Contributor

@gwbrown gwbrown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@n1v0lg
Copy link
Contributor Author

n1v0lg commented Jul 1, 2024

@elasticmachine update branch

@n1v0lg n1v0lg added the auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Jul 1, 2024
@elasticsearchmachine elasticsearchmachine merged commit 78c812f into elastic:main Jul 1, 2024
5 checks passed
@n1v0lg n1v0lg deleted the docs-fix-security-settings branch July 1, 2024 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) >docs General docs changes :Security/Security Security issues without another label Team:Docs Meta label for docs team Team:Security Meta label for security team v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants