Skip to content

Conversation

@ywangd
Copy link
Member

@ywangd ywangd commented May 2, 2022

The security profile action origin and internal user is not available
before version 8.3.0. This PR makes all profile actions to use the
existing security origin if the cluster has any node that is older than
8.3.0.

The change makes it possible to use User Profile features in a mixed
cluster (7.17 and 8.3+) as long as the request always hits a node of
newer version first.

The security profile action origin and internal user is not available
before version 8.3.0. This PR makes all profile actions to use the
existing security origin if the cluster has any node that is older than
8.3.0.

The change makes it possible to use User Profile features in a mixed
cluster as long as the request always hits a newer (newer than 8.3) node
first.
@ywangd ywangd added >non-issue :Security/Security Security issues without another label v8.3.0 labels May 2, 2022
@ywangd ywangd requested a review from tvernum May 2, 2022 12:04
@elasticmachine elasticmachine added the Team:Security Meta label for security team label May 2, 2022
@elasticmachine
Copy link
Collaborator

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

Copy link
Contributor

@tvernum tvernum left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +6 to +7
version: " - 7.99.99"
reason: "https://github.com/elastic/elasticsearch/issues/86373"
Copy link
Member Author

Choose a reason for hiding this comment

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

The BWC test fails with 7.17 node because we assert that mappings must have a key of single-mapping-name (_doc) in 7.17 which is not always true in a mixed cluster. Since it is an AssertionError, it does not seem to be a problem in production. I raised #86373 to discuss whether we can just remove the assertions. In the meantime, I am muting the tests for 7.x.

@ywangd ywangd merged commit ba91f26 into elastic:master May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue :Security/Security Security issues without another label Team:Security Meta label for security team v8.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants