Skip to content

gha-runner-scale-set: support Google Cloud Secret Manager as a vault for GitHub credentials #4737

Open

Description

@mnacharov

What would you like added?

A second vault type for gha-runner-scale-set, gcp_secret_manager, next to the existing azure_key_vault from #4090. It would let the controller and listener read GitHub App or PAT credentials from Google Cloud Secret Manager, so they never have to be stored in a Kubernetes Secret.

Proposed chart values, mirroring azure_key_vault:

githubConfigSecret: gha-runners-app   # lookup key = Secret Manager secret ID
keyVault:
  type: gcp_secret_manager
  gcp_secret_manager:
    project_id: my-project
    # optional, defaults to "latest"
    # version: latest

Authentication would use Google Application Default Credentials. On GKE that means Workload Identity Federation: the controller and listener Kubernetes ServiceAccounts are granted roles/secretmanager.secretAccessor on the secret, with no key files or certificates mounted. That is simpler than the certificate-based Azure setup. Outside GKE, ADC still works with a mounted credentials file.

The existing design looks like it already supports this:

  • vault.Vault is a single-method interface (GetSecret(ctx, name)), so a provider would be a small package next to vault/azurekeyvault.
  • The rest would be:
    • a new VaultType constant;
    • a GCPSecretManagerConfig field in VaultConfig;
    • wiring in the secret resolver and the listener config;
    • chart values and templates;
    • tests.
  • The secret value would use the same format as today. The resolver already parses it provider-independently with appconfig.FromJSONString: a JSON document with github_app_id, github_app_installation_id and github_app_private_key, or github_token.

This is controller-side and opt-in, like Azure Key Vault. It doesn't add cloud tooling to the runner image.

Why is this needed?

On GKE today, the only way to give ARC GitHub App credentials is a Kubernetes Secret. With a Kubernetes Secret, the controller also copies the full App config, including the private key, into the listener config Secret. For teams that keep credentials in Secret Manager and don't want long-lived keys in etcd, the only options are workarounds:

  • Sync the secret into Kubernetes (External Secrets Operator, or GKE Secret Sync). The private key still ends up in two Kubernetes Secrets.
  • An additional cronjob: a CronJob reads the App key from Secret Manager through Workload Identity, mints a 1-hour installation token, and writes only that token into the ARC Secret. It keeps the key out of Kubernetes. However:
    • the listener only picks up a new token when it restarts, so it fails and is recreated when its copy expires (at most once an hour);
    • it is extra machinery that every GKE user would have to reinvent.

#4090 solved exactly this for Azure ("users who don't want to use Kubernetes secrets with GitHub PAT or App credentials"). GKE users have the same need.

Additional context

Activity

  1. added
    enhancement
    needs triage
    community
    on Nov 5, 2026
  2. github-actions commented on Nov 5, 2026

    @github-actions
    Contributor

    Hello! Thank you for filing an issue.

    The maintainers will triage your issue shortly.

    In the meantime, please take a look at the troubleshooting guide for bug reports.

    If this is a feature request, please review our contribution guidelines.

  3. added a commit that references this issue on Nov 18, 2026
    f40b632
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    communityenhancementneeds triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions