-
Notifications
You must be signed in to change notification settings - Fork 71
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
Support Workload Identity Federation authentication #433
Comments
I'm seeing the same issue
|
@sshcherbakov doesn't look like Line 7 in 4638409
Not sure how those get installed when the plugin gets vendored... |
So I think this actually needs to be handled here: |
So I am actually utilizing Workload Identity Federation with inspec-gcp now, however it is not super straightforward to do. In order to do it properly there are multiple dependencies that need to be updated. Specifically this PR needs to be merged before the train can be set in motion. With that in mind, it should be possible now if you are willing to run a version of google-auth-library-ruby that I have on a branch of mine with that PR ported in and the version artificially lowered: https://github.com/rbclark/google-auth-library-ruby/tree/add-external-account-credentials As a note #415 and #416 were both PRs to fix workload identity federation compatibility so once an appropriate version of google-auth-library-ruby is supported then Workload Identity Federation will just start working. |
Ah - thanks - I had seen that one and wondered if it was related (the AWS bit threw me a little).
Thanks - I saw your comment about that; appreciate it. I may just wait - the project I'm using it against doesn't have any real resources in it, so I can deal with using static credentials for a bit longer - just frustrating since test-kitchen / terraform work great already with OIDC. |
I personally only needed AWS for my use case so when I put up the PR it only contained support for AWS. At this point my work has been rolled up into another PR and I am unsure if they added support for additional providers.
The Gemfile in my root project looks like this:
If I remember correctly that caused all of the inspec packages to also use the correct googleauth dependency (due to the version number I have set on that branch). |
Seems like googleapis/google-auth-library-ruby#418 is now merged. Any further news, and is anyone working on adding support over here? |
We have implemented support for Workload Identity Federation authentication. This feature is now available after updating the googleauth GCP libraries in the train repository inspec/train#767 |
Support Workload Identity Federation authentication by upgrading googleauth dependency to the latest version 1.3.0.
At the moment the "external_account" type of the GOOGLE_APPLICATION_CREDENTIALS are not supported and hence the GitHub Actions using
google-github-actions/auth
cannot benefit from keyless workload identity federation authentication.The text was updated successfully, but these errors were encountered: