-
Notifications
You must be signed in to change notification settings - Fork 509
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
HDDS-11040. Disable REST endpoint for S3 secret manipulation by username #6839
Conversation
Thanks @ivanzlenko I had noticed this issue earlier as well but was too busy to do a fix. I was trying to come up with a more elegant solution since it seemed people might want to use this, but disabling the whole thing works for me. There are a few other issues with the implementation as well that I think need to be fixed:
|
@errose28 secret endpoint is already separate from main S3G and can be disabled. |
The issue with compatibility is if there is a bucket called |
We can merge this in to stop this feature for now. We should move in the direction listed by @errose28 to reserve the |
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.
This change only removes the ability for admins to change other users' secrets. I'm ok to merge this to get master to a cleaner state, but we probably want another follow up to either disable the /secret endpoint all together or implement /management/secret as described above before the next release to handle compatibility concerns.
We could also delete code while changes are in the works instead of commenting/erroring it out since git will preserve it and we won't have dead code left around indefinitely. That's a minor preference though and could be done in a follow up if the follow up fixes are going to take a while.
@ivanzlenko Can you please address the test failure
|
Thanks @ivanzlenko for the patch, @errose28, @kerneltime for the review. |
Thanks Attila for skipping the tests and updating the patch. |
…ame (apache#6839) (cherry picked from commit 56ce591)
…ame (apache#6839) (cherry picked from commit 56ce591)
What changes were proposed in this pull request?
Methods to generate and revoke secrets for other users via S3 Gateway were disabled.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-11040
How was this patch tested?
Patch tested manually. Since it is a temporary solution no tests added.