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

[Refactor] Change HTTP routes for Audit and Config PUT methods #3359

Conversation

willyborankin
Copy link
Collaborator

@willyborankin willyborankin commented Sep 14, 2023

Description

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.

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

  • New functionality includes testing
  • New functionality has been documented
  • Commits are signed per the DCO using --signoff

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.

Signed-off-by: Andrey Pleskach <ples@aiven.io>
@codecov
Copy link

codecov bot commented Sep 14, 2023

Codecov Report

Merging #3359 (4816b9c) into main (2ad8272) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            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     
Files Changed Coverage Δ
...arch/security/dlic/rest/api/AbstractApiAction.java 88.61% <100.00%> (+0.04%) ⬆️
...nsearch/security/dlic/rest/api/AuditApiAction.java 90.76% <100.00%> (-0.41%) ⬇️
...ecurity/dlic/rest/api/SecurityConfigApiAction.java 93.10% <100.00%> (-0.65%) ⬇️

... and 4 files with indirect coverage changes

@DarshitChanpura DarshitChanpura changed the title [Refactor] Change HTTP routs for Audit and Config PUT methods [Refactor] Change HTTP routes for Audit and Config PUT methods Sep 19, 2023
Copy link
Member

@DarshitChanpura DarshitChanpura left a 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!

@cwperks
Copy link
Member

cwperks commented Sep 25, 2023

@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.

@cwperks cwperks added the backport 2.x backport to 2.x branch label Sep 25, 2023
@peternied
Copy link
Member

I've marked those outstanding comment threads as resolved - as they all look resolved too me

@peternied peternied merged commit 22f00fa into opensearch-project:main Sep 25, 2023
57 of 58 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 25, 2023
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>
DarshitChanpura pushed a commit that referenced this pull request Oct 2, 2023
… methods (#3407)

Backport 22f00fa from #3359.

Signed-off-by: Andrey Pleskach <ples@aiven.io>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants