Skip to content

Conversation

@fmorg-git
Copy link
Contributor

Please describe your PR in detail:

  • Implements protobuf plumbing for STS requests.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-13887

How was this patch tested?

Unit tests

@peterxcli peterxcli self-requested a review November 6, 2025 14:05
@ivandika3 ivandika3 added the sts Changes for Ozone's S3 Security Token Service label Nov 7, 2025
Copy link
Contributor

@sodonnel sodonnel left a comment

Choose a reason for hiding this comment

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

This change LGTM. Its basically all boiler plate code to wire up the new request and protobuf stuff.

If CI passes and you are happy with fields etc we can commit onto the branch.

Comment on lines 764 to 767
public AssumeRoleResponseInfo assumeRole(String roleArn,
String roleSessionName,
int durationSeconds,
String awsIamSessionPolicy) throws IOException {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please do not format method signatures like this. Whenever visibility / return type / method name / other modifiers are changed, we would have to reindent all parameters.

(The same comment applies to other files.)

Copy link
Contributor

Choose a reason for hiding this comment

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

The style guide says you should indent 4 spaces rather than align at the bracket for this reason. Many method definitions in Ozone fill the line length with parameters on the same line, which is less readable IMO.

I would be nice if checkstyle could enforce this, but I suspect there are a lot of violations across the code base if we turned it on!

Copy link
Contributor

Choose a reason for hiding this comment

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

I suspect there are a lot of violations across the code base

Yes, unfortunately.

#8494 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks!

@fmorg-git fmorg-git requested a review from adoroszlai November 12, 2025 17:42
@sodonnel sodonnel merged commit e96df8e into apache:HDDS-13323-sts Nov 12, 2025
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sts Changes for Ozone's S3 Security Token Service

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants