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

Unable to use google_cloud_default with Workload Identity #171

Open
AlexanderBrevig opened this issue Jun 27, 2023 · 4 comments
Open

Unable to use google_cloud_default with Workload Identity #171

AlexanderBrevig opened this issue Jun 27, 2023 · 4 comments

Comments

@AlexanderBrevig
Copy link

It seems maybe the hardcoded dependency on default SA email prevents us from using this in our production environment using Workload Identity for application SA.

Do you accept PRs?

@yoshidan
Copy link
Owner

Please make a PR and we will merge it.

I am currently disassembling google-cloud-default in #172,
after the merge will be easier to modify with interface changes.

@AlexanderBrevig
Copy link
Author

I just tried the two quick-win ideas I had but it does not seem to have done the trick. Not sure if I'll have time to deep dive into this, but I'll let you know if that changes.

Thanks for the work on this BTW 👍🏻

@jaychia
Copy link

jaychia commented Sep 22, 2023

Hi I am encountering issues using the auth crate with workload identity as well!

A few issues with parsing the JSON generated from workload identity:

  1. The Format struct expects a field name tp in JSON, but the generated JSON contains a field named "type" instead
  2. If I manually edit my JSON's field, I then encounter: unsupported account: external_account

@yoshidan
Copy link
Owner

@jaychia Thank you for your report.

1.The Format struct expects a field name tp in JSON, but the generated JSON contains a field named "type" instead

Now I added the rename option to deserialize type
https://github.com/yoshidan/google-cloud-rust/pull/195/files

  1. If I manually edit my JSON's field, I then encounter: unsupported account: external_account

Is the external-account feature enabled?
ex)

google-cloud-pubsub = { version="0.18.0", default-features=false, features=["trace", "auth", "external-account", "rustls-tls"]}

#180

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

No branches or pull requests

3 participants