Skip to content

HDDS-14847. [STS] Expose ExpiredToken Error#9935

Open
fmorg-git wants to merge 3 commits intoapache:HDDS-13323-stsfrom
fmorg-git:HDDS-14847
Open

HDDS-14847. [STS] Expose ExpiredToken Error#9935
fmorg-git wants to merge 3 commits intoapache:HDDS-13323-stsfrom
fmorg-git:HDDS-14847

Conversation

@fmorg-git
Copy link
Copy Markdown
Contributor

@fmorg-git fmorg-git commented Mar 17, 2026

Please describe your PR in detail:

  • Currently, when an STS token expires and it is attempted to be used, an AccessDenied error occurs. When testing with AWS, it generates an ExpiredToken error code with the token in the body, so this ticket updates the implementation to have a similar response.
  • Separately, while debugging other issues, it was found that while iterating in BucketEndpoint, if an acl check gave PermissionDenied, a RuntimeException in OzoneBucket$KeyIterator.hasNext() which was not caught and bubbled up to the end user as an Internal Server Error http code 500. So a commit is made here to catch the RuntimeException and if it is of type OMException, then handle it the same way the code that handles expired token does.

What is the link to the Apache JIRA

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

How was this patch tested?

manual test waiting for expiration, unit tests

@fmorg-git fmorg-git marked this pull request as ready for review April 1, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant