Skip to content
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

feat(storage): support auto-detection of access ID for external_account creds #9208

Merged
merged 3 commits into from
Feb 1, 2024

Conversation

BrennaEpp
Copy link
Contributor

Fixes #8528

@BrennaEpp BrennaEpp requested review from a team as code owners January 3, 2024 02:01
@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Jan 3, 2024
@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label Jan 3, 2024
Copy link
Contributor

@tritone tritone left a comment

Choose a reason for hiding this comment

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

Nice change, one nit on error messages.

start, end := strings.LastIndex(sa.SAImpersonationURL, "/"), strings.LastIndex(sa.SAImpersonationURL, ":")

if end <= start {
returnErr = errors.New("error parsing impersonated service account credentials")
Copy link
Contributor

Choose a reason for hiding this comment

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

Error message could mention external account as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The error here is parsing the service account, which the external account creds also has. I think it is okay to expand the message though, since it's just a difference in granularity and mentioning external accounts is at a higher level

@BrennaEpp BrennaEpp merged commit b958d44 into googleapis:main Feb 1, 2024
9 checks passed
@BrennaEpp BrennaEpp deleted the feat-signurl-external branch February 1, 2024 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

storage: support external_account credentials in detectDefaultGoogleAccessID
2 participants