-
Notifications
You must be signed in to change notification settings - Fork 280
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
[Refactor] Change HTTP routes for Audit and Config PUT methods #3359
[Refactor] Change HTTP routes for Audit and Config PUT methods #3359
Conversation
Signed-off-by: Andrey Pleskach <ples@aiven.io>
Codecov Report
@@ Coverage Diff @@
## main #3359 +/- ##
=========================================
Coverage 64.17% 64.18%
- Complexity 3472 3473 +1
=========================================
Files 263 263
Lines 20112 20107 -5
Branches 3359 3357 -2
=========================================
- Hits 12907 12905 -2
- Misses 5526 5528 +2
+ Partials 1679 1674 -5
|
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.
Thank you for cleaning these up!
src/test/java/org/opensearch/security/dlic/rest/api/AuditApiActionValidationTest.java
Show resolved
Hide resolved
src/test/java/org/opensearch/security/dlic/rest/api/SecurityConfigApiActionValidationTest.java
Show resolved
Hide resolved
@DarshitChanpura Can you mark the conversations as resolved if they have been addressed? This PR cannot be merged until all comments are marked as resolved. |
I've marked those outstanding comment threads as resolved - as they all look resolved too me |
Change routs for audit and security configuration PUT methods. The previous configuration used the `{name}` parameter which is confusing since `config` the only allowed value for this parameter. This PR changes routes' configuration and removes useless validation for them. Signed-off-by: Andrey Pleskach <ples@aiven.io> (cherry picked from commit 22f00fa) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Change routs for audit and security configuration PUT methods.
The previous configuration used the
{name}
parameter which is confusing sinceconfig
the only allowed value for this parameter. This PR changes routes' configuration and removes useless validation for them.Note: We do not need to change documentation for endpoints and keep backward compatibility. e.g. Audit endpoint https://opensearch.org/docs/latest/security/access-control/api/#audit-logs
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.