-
Notifications
You must be signed in to change notification settings - Fork 594
HDDS-5206. Support revoking S3 secret #2239
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
Conversation
...ager/src/main/java/org/apache/hadoop/ozone/om/request/s3/security/S3RevokeSecretRequest.java
Outdated
Show resolved
Hide resolved
...er/src/main/java/org/apache/hadoop/ozone/om/response/s3/security/S3RevokeSecretResponse.java
Outdated
Show resolved
Hide resolved
xiaoyuyao
left a comment
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.
Thanks @smengcl for adding this. The PR LGTM overall. I just have a few comments added inline.
...ager/src/main/java/org/apache/hadoop/ozone/om/request/s3/security/S3RevokeSecretRequest.java
Outdated
Show resolved
Hide resolved
xiaoyuyao
left a comment
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.
Thanks @smengcl for adding this. The PR LGTM overall. I just have a few comments added inline.
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/s3/RevokeS3SecretHandler.java
Show resolved
Hide resolved
bharatviswa504
left a comment
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.
Overall LGTM.
I have few comments/questions.
...ager/src/main/java/org/apache/hadoop/ozone/om/request/s3/security/S3RevokeSecretRequest.java
Show resolved
Hide resolved
...ager/src/main/java/org/apache/hadoop/ozone/om/request/s3/security/S3RevokeSecretRequest.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/s3/RevokeS3SecretHandler.java
Show resolved
Hide resolved
Invalid entry in table cache immediately (Thanks Aravindan); Impl. isAdmin in OzoneManager. Change-Id: Ia5c8d76be0845c5530d1e84abd82217be7797141
Change-Id: Idb7ac40b974380a43946930bb4742d44696cfcea
Conflicts: hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOMDbCheckpointServlet.java hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OMDBCheckpointServlet.java Change-Id: If923f83358898f3d084a38a70d40fa197e8b2103
Change-Id: I8fe03516379f9094769633b82a8a77e06e8a809b
|
@xiaoyuyao @bharatviswa504 I have addressed all comments. Please take another look. Thanks! |
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/protocol/OzoneManagerProtocol.java
Outdated
Show resolved
Hide resolved
...manager/src/main/java/org/apache/hadoop/ozone/om/request/s3/security/S3GetSecretRequest.java
Outdated
Show resolved
Hide resolved
...manager/src/main/java/org/apache/hadoop/ozone/om/request/s3/security/S3GetSecretRequest.java
Outdated
Show resolved
Hide resolved
Change-Id: I1d6e054010e7046299e65f8bef1d341eb60e5ea8
vivekratnavel
left a comment
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.
+1 LGTM
...manager/src/main/java/org/apache/hadoop/ozone/om/request/s3/security/S3GetSecretRequest.java
Outdated
Show resolved
Hide resolved
|
Thanks @xiaoyuyao @bharatviswa504 @vivekratnavel for reviewing this. Will merge shortly. |
|
Just realized I have a typo in the permission check, should be |
(cherry picked from commit 4fd8187) Change-Id: I97158a39ed50614706a5615d1019b07501cf45ed
https://issues.apache.org/jira/browse/HDDS-5206
Currently the CLI only support "ozone s3 getsecret", but has no user or admin command to revoke the secret, or to rotate the secret. Add a new command to do that.