-
Notifications
You must be signed in to change notification settings - Fork 275
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
Remove support for v6 configuration #4546
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.
Changes look good to me @nibix. Could you please check and resolve the conflict?
src/test/java/org/opensearch/security/securityconf/SecurityRolesPermissionsV6Test.java
Show resolved
Hide resolved
BTW, I felt that I should describe the idea of the change a bit more in detail. See the updated description of this PR. |
0ab5f5f
to
6bb6de4
Compare
With this change, would a user still be able to use the Migrate API to change the documents stored in the security index to the V7 format? If a user uses securityadmin to export the security index, what format will the generated yml files be in? |
In the end, it is up to us to define these behaviors. I would expect that both functionalities remain unaffected. Thus, exporting the configuratin will yield v6/v1 configuration files. Also, the migrate API and the migrate command continue to work as before. |
Sounds good. What work is remaining on this PR in order to flip it from Draft? |
Mainly reviewing test failures and reviewing the special cases, like migration and API - as mentioned above. So, I would then focus on this again? |
If its an enabler for #4380, then IMO I think we should move this forward |
950c447
to
1540e23
Compare
14fdac9
to
5631248
Compare
Signed-off-by: Nils Bandener <nils.bandener@eliatra.com>
Signed-off-by: Nils Bandener <nils.bandener@eliatra.com>
Signed-off-by: Nils Bandener <nils.bandener@eliatra.com>
Signed-off-by: Nils Bandener <nils.bandener@eliatra.com>
Signed-off-by: Nils Bandener <nils.bandener@eliatra.com>
Signed-off-by: Nils Bandener <nils.bandener@eliatra.com>
f4e59b0
to
7f5bc7d
Compare
src/main/java/org/opensearch/security/configuration/ConfigurationMap.java
Show resolved
Hide resolved
src/main/java/org/opensearch/security/configuration/ConfigurationRepository.java
Outdated
Show resolved
Hide resolved
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.
Left one minor comment. This change LGTM!
Signed-off-by: Nils Bandener <nils.bandener@eliatra.com>
@willyborankin @cwperks I did one more minor commit: 5ebe500 ... could you please re-approve? |
Done |
Signed-off-by: Nils Bandener <nils.bandener@eliatra.com> Signed-off-by: Terry Quigley <terry.quigley@sas.com>
Description
This solves #4493 and removes support for v6 configuration. On
master
, v6 configuration is not usable any more anyway, see #4745 for the verification.As an additional benefit, this makes it possible to use
SecurityDynamicConfiguration<>
instances in a generically type-safe manner. So far, one usually needs to useSecurityDynamicConfiguration<?>
instances and do unsafe casts.If it is desired to continue supporting v6 configuration for OpenSearch 2.x, there's the PR #4753 for that.
Issues Resolved
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.