Skip to content

Make email address usernames match label constraints#73

Merged
sergiocazzolato merged 1 commit intomainfrom
goog-username
Feb 24, 2026
Merged

Make email address usernames match label constraints#73
sergiocazzolato merged 1 commit intomainfrom
goog-username

Conversation

@miguelpires
Copy link
Contributor

Google cloud was rejecting the "owner" resources label when run by users with email addresses as usernames (corp setup). This does a quick, best-effort check for an email address-like username and tries to extract the personal part of it and convert it to a format Google accepts. We could just use base64url which would be accepted but then the label wouldn't be as friendly for humans to read.

Google cloud was rejecting the "owner" resources label when run by users
with email addresses as usernames (corp setup). This does a quick,
best-effort check for an email address-like username and tries to
extract the personal part of it and convert it to a format Google
accepts. We could just use base64url which would be accepted but then
the label wouldn't be as friendly for humans to read.

Signed-off-by: Miguel Pires <miguel.pires@canonical.com>
Copy link
Contributor

@sergiocazzolato sergiocazzolato left a comment

Choose a reason for hiding this comment

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

Thanks

@sergiocazzolato sergiocazzolato merged commit bb29ccf into main Feb 24, 2026
24 of 33 checks passed
@sergiocazzolato sergiocazzolato deleted the goog-username branch February 24, 2026 17:53
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.

2 participants