-
-
Notifications
You must be signed in to change notification settings - Fork 937
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
Add sts_token_buffer_time parameter to transport options #2216
base: main
Are you sure you want to change the base?
Add sts_token_buffer_time parameter to transport options #2216
Conversation
b45c6c8
to
54ac9db
Compare
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.
you need to rebase the PR to fix merge conflict as we got a new PR merged 83b296f . also the pr will need proper unit tests
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2216 +/- ##
=======================================
Coverage 81.50% 81.51%
=======================================
Files 77 77
Lines 9524 9529 +5
Branches 1152 1153 +1
=======================================
+ Hits 7763 7768 +5
Misses 1569 1569
Partials 192 192 ☔ View full report in Codecov by Sentry. |
54ac9db
to
488993c
Compare
…date token earlier than expiration time
488993c
to
e00da33
Compare
I started the CI. So lets see |
@auvipy all checks are passed |
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.
we have to wait for the next release until we merge this, so please have some patience.
Linked Issue: #2217
During development, I've encountered an issue where Kombu does not currently provide an option to generate an STS token before its expiration time. This can lead to errors such as:
Request HTTP Error HTTP 403 Forbidden (b'{"__type":"com.amazon.coral.service#ExpiredTokenException","message":"The security token included in the request is expired"}')
Such errors occur when the session token expires, which can cause the consumer channel to close when working with Celery.
This PR introduces a new optional parameter
sts_token_buffer_time
which defaults to0
, preserving the previous behavior. When provided, this attribute allows the STS token to be generated earlier by the specified buffer time seconds (sts_token_buffer_time
), helping to prevent ExpiredTokenException errors.