You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The timestamp format for SSO credentials was originally intended to be an RFC 3339 style timestamp in UTC. Due to a typo in the original AssumeRole implementation, the timezone is being converted to UTC instead of a literal Z. We're going to correct the SSO implementation since the current timestamp is incompatible with the other AWS SDKs. The AssumeRole timestamp will be left unchanged for now to preserve as much backwards compatibility as possible.
Customers that are upgrading should have their timestamp format updated on their next login or credential refresh with SSO.
Technically, shouldn't _serialize_rfc3339_timestamp verify something like value.tzinfo == utc() before writing the zulu time format, and otherwise write it out with the offset from the tzinfo?
Technically, shouldn't _serialize_rfc3339_timestamp verify something like value.tzinfo == utc() before writing the zulu time format, and otherwise write it out with the offset from the tzinfo?
It appears that the value being passed in is generated from a timestamp, and the tz is being set as utc.
So long as this remains a private function, and is called with a value set correctly, then it should be fine, but it is good defensive practice to validate, or at least document in the function's docstring.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The timestamp format for SSO credentials was originally intended to be an RFC 3339 style timestamp in UTC. Due to a typo in the original AssumeRole implementation, the timezone is being converted to
UTCinstead of a literalZ. We're going to correct the SSO implementation since the current timestamp is incompatible with the other AWS SDKs. The AssumeRole timestamp will be left unchanged for now to preserve as much backwards compatibility as possible.Customers that are upgrading should have their timestamp format updated on their next login or credential refresh with SSO.