Skip to content

Make email address usernames match label constraints#72

Closed
miguelpires wants to merge 1 commit intocanonical:mainfrom
miguelpires:goog-username
Closed

Make email address usernames match label constraints#72
miguelpires wants to merge 1 commit intocanonical:mainfrom
miguelpires: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>
@miguelpires
Copy link
Contributor Author

Superseeded by #73 (PR from a branch instead of a fork)

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