Issue with Concourse authenticating with GCP Workload Identity Federation to check/pull Artifact Registry images #9350
Unanswered
cal-nic
asked this question in
Help & Support
Replies: 1 comment 3 replies
-
|
The repo you linked to is private (https://github.com/ONSdigital/blaise-concourse/blob/main/concourse/iam.tf) it currently returns 404 when I try to visit. There is not enough information here to provide any guidance on what to try next. Some immediate questions/thoughts:
As the maintainer of Concourse I am providing commercial support for Concourse as a way to support the ongoing maintenance of the project. If you think that's something your org would be interested in you can find more details here: https://concourse-ci.org/support.html |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Hoping this is the right place to post this..
My organisation has recently shifted towards the use of Workload Identity Federation (WIF) within Google Cloud Platform instead of our previously used method of authentication/access via service account keys.
We are running Concourse v7.13.1 hosted on a google kubernetes cluster, and for the most part have been successful with the transition to WIF. We have bound our concourse workers to the relevant kubernetes accounts, and they are successfully able to impersonate our designated service account for concourse/WIF. Here's a link to our current concourse repo/WIF implementation: https://github.com/ONSdigital/blaise-concourse/blob/main/concourse/iam.tf
The issue we're having is when we reference our own images hosted within GCP's artifact registry, concourse seems to be doing an initial 'check' on these images, presumably to check they exist. Previously we would pass in the authentication details as part of the image resource, which would work fine. However, if we remove these keys and try to use WIF, it seems to be unable to authenticate. The following error occurs:
Then when you drill further into the above (I've removed some of the project specific references jic the links look weird!):
We've done the obvious, e.g. making sure the service account that we're trying to use has correct permissions. It just doesn't seem to even get to the point where it tries to use WIF.
These images I mentioned are just 'base' images, containing tools such as python/gcloud as our kubernetes cluster that concourse runs on is using "Container-optimised OS", meaning we've been unable to run gcloud commands to force the authentication, as the image doesn't actually have gcloud on it. We'd also like to avoid building the images as part of the jobs if possible, just to keep run times down.
I've been on numerous calls with Google's support, and after some back and forth/troubleshooting they have suggested the following:
Concourse seems to be working fine with everything else using WIF, it's just this one particular aspect of GCP (artifact registry) where we're facing this block.
I'd really appreciate some support/suggestions, more than happy to provide more information too just let me know.
Cheers
Beta Was this translation helpful? Give feedback.
All reactions