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
Describe the bug
I encountered some cases where the ConsoleMe user is long, and because of that the session name exceeds the 64 character limit, since it relies on the user name.
Exception occurred cloning role: An error occurred (ValidationError) when calling the AssumeRole operation: 1 validation error detected: Value 'create_role_consoleme_admin@verylongsubdomainname.verylongdomainname.com' at 'roleSessionName' failed to satisfy constraint: Member must have length less than or equal to 64
Thanks for the report! This is an interesting scenario.
It looks like the issue is unrelated to the particular action (creating a role), but rather a problem with long user IDs for any AWS action that needs to be attributed to a particular user. Extracting the username from the email address isn't quite the right solution, since that can cause collisions or ambiguities in multi-domain environments. I wonder if we could make this configurable.
Describe the bug
I encountered some cases where the ConsoleMe user is long, and because of that the session name exceeds the 64 character limit, since it relies on the user name.
To Reproduce
Steps to reproduce the behavior:
From the
aws.py
lib:Expected behavior
A role will be created successfully as expected.
I suggest to find another mechanism, such as extracting the username from the domain, to decrease the chances of encountering such error.
The text was updated successfully, but these errors were encountered: