Log in to FlakeHub from Google Cloud Platform (GCP)
Use GCP’s Identity and Access Management to log in to a FlakeHub organization and access private flakes and artifacts without managing tokens.
Security considerations
Authenticating to FlakeHub with a GCP Service Account currently grants read-only privileges to all sources and artifacts in the associated FlakeHub organization. FlakeHub only needs the Service Account’s email address to authenticate.
Setup
- First, identify the service account for your GCP resource. One way to do that is using the metadata API:
- Register the Service Account email, which looks like
123456789-compute@developer.gserviceaccount.comunder the “GCP IDs” section of your FlakeHub Organization’s settings. Give the trust relationship a short name, likedev/ephemeral-vm. - Copy the trust relationship’s FRN, which looks like
frn:flakehub:gcp-delegated:DeterminateSystems::dev/ephemeral-vm. - Finally, run
determinate-nixd login gcp --frn frn:flakehub:gcp-delegated:DeterminateSystems::dev/ephemeral-vm. Determinate is now authenticated with FlakeHub using the bound Service Account.
Last updated on