Skip to content

HDDS-5206. Support revoking S3 secret - #2239

Merged
smengcl merged 6 commits into
apache:masterfrom
smengcl:HDDS-5206
May 19, 2021
Merged

HDDS-5206. Support revoking S3 secret#2239
smengcl merged 6 commits into
apache:masterfrom
smengcl:HDDS-5206

Conversation

@smengcl

@smengclsmengcl commented May 12, 2021

Copy link
Copy Markdown
Contributor

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.

@smengclsmengcl added the om label May 12, 2021
@smengclsmengcl self-assigned this May 12, 2021

@xiaoyuyaoxiaoyuyao left a comment

Copy link
Copy Markdown
Contributor

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.

@xiaoyuyaoxiaoyuyao left a comment

Copy link
Copy Markdown
Contributor

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.

@bharatviswa504bharatviswa504 left a comment

Copy link
Copy Markdown
Contributor

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.

Invalid entry in table cache immediately (Thanks Aravindan);
Impl. isAdmin in OzoneManager.
Change-Id: Ia5c8d76be0845c5530d1e84abd82217be7797141
@smengclsmengcl changed the title HDDS-5206. Support revoking S3 secret in Ozone CLIHDDS-5206. Support revoking S3 secretMay 17, 2021
smengcl added 3 commits May 17, 2021 12:56
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
@smengcl

Copy link
Copy Markdown
ContributorAuthor

@xiaoyuyao@bharatviswa504 I have addressed all comments. Please take another look. Thanks!

@swagle
swagle requested a review from vivekratnavelMay 18, 2021 18:27
Change-Id: I1d6e054010e7046299e65f8bef1d341eb60e5ea8

@vivekratnavelvivekratnavel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 LGTM

@smengcl

Copy link
Copy Markdown
ContributorAuthor

Thanks @xiaoyuyao@bharatviswa504@vivekratnavel for reviewing this. Will merge shortly.

@smengcl
smengcl merged commit 4fd8187 into apache:masterMay 19, 2021
@smengcl

Copy link
Copy Markdown
ContributorAuthor

Just realized I have a typo in the permission check, should be isAdmin(user.getUserName()) instead of kerberosID. Will post an addendum in a min.

bharatviswa504 pushed a commit to bharatviswa504/hadoop-ozone that referenced this pull request Jul 25, 2021
(cherry picked from commit 4fd8187)
Change-Id: I97158a39ed50614706a5615d1019b07501cf45ed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@smengcl@vivekratnavel@xiaoyuyao@bharatviswa504