The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
ci: retire GCP_SA_KEY — federation is the only path (#70)
autonomousdevops1388c367c0cb
diff --git a/.github/workflows/desktop-internal-build.yml b/.github/workflows/desktop-internal-build.ymlindex 82e558c41..30fb02fc4 100644--- a/.github/workflows/desktop-internal-build.yml+++ b/.github/workflows/desktop-internal-build.yml@@ -125,9 +125,6 @@ jobs:DEBUG_SURFACE: ${{ needs.prepare.outputs.debug_surface }}# The file a tester downloads names the build it is: version AND commit.ARTIFACT: ${{ matrix.artifact }}-${{ needs.prepare.outputs.version }}-${{ needs.prepare.outputs.short_sha }}- # The `secrets` context cannot be read from a step-level `if:`, so reduce it to a boolean here- # — job-level `env:` can see it. Holds "true"/"false", never the value itself.- HAS_WIF: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER != '' }}defaults:run:working-directory: desktop@@ -161,19 +158,13 @@ jobs:## Same pool and provider as release.yml, and the SAME service account — this writes to# s3-autonomous-upgrade-3, the bucket that one already publishes to, so there was no new GCP- # setup to do. Two steps only for the duration of the cutover; DELETE the key step (and the- # GCP_SA_KEY secret) once an internal build has gone green on the first.+ # setup to do. Federation is the only path: the GCP_SA_KEY fallback and the key behind it were+ # retired on 2026-09-17. Do not reintroduce a key.- name: Authenticate to GCP (workload identity federation)- if: env.HAS_WIF == 'true'uses: google-github-actions/auth@c200f3691d83b41bf9bbd8638997a462592937ed # v2with:workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}service_account: ${{ secrets.GCP_SERVICE_ACCOUNT }}- - name: Authenticate to GCP (service-account key — legacy fallback)- if: env.HAS_WIF != 'true'- uses: google-github-actions/auth@c200f3691d83b41bf9bbd8638997a462592937ed # v2- with:- credentials_json: ${{ secrets.GCP_SA_KEY }}- uses: google-github-actions/setup-gcloud@e427ad8a34f8676edf47cf7d7925499adf3eb74f # v2- name: Build ${{ matrix.variant }} and pin its rendererdiff --git a/.github/workflows/release-desktop.yml b/.github/workflows/release-desktop.ymlindex 5bcdcd652..c14ed6dee 100644--- a/.github/workflows/release-desktop.yml+++ b/.github/workflows/release-desktop.yml@@ -121,10 +121,6 @@ jobs:# means a broken one costs seconds. Runs beside `version`, so it is free in wall clock.preflight:runs-on: ubuntu-latest- env:- # The `secrets` context cannot be read from a step-level `if:`, so reduce it to a boolean- # here — job-level `env:` can see it. Holds "true"/"false", never the value itself.- HAS_WIF: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER != '' }}steps:# GCP auth, WITHOUT a long-lived key — the same pattern release.yml and production-be-build.yaml# already run. A service-account JSON key is a bearer credential with no expiry: it is only as@@ -137,22 +133,14 @@ jobs:# that cannot use the external-account credential WIF issues, so it fails on every call while# the identical `gcloud storage` call works. Do not reintroduce gsutil here.#- # Two steps, not one, only for the duration of the cutover: WIF whenever the- # GCP_WORKLOAD_IDENTITY_PROVIDER secret exists, the key only when it does not. DELETE the- # second step (and the GCP_SA_KEY secret, and the key itself in GCP) once a desktop release has- # gone green on the first — an unused key that still authenticates is still a liability.- # NOTE release-tmux-runtime.yml still uses the key: check it before deleting the secret.+ # Federation is the only path: the GCP_SA_KEY fallback and the key behind it were retired on+ # 2026-09-17. If this step fails, fix the provider or the service account's binding — do not+ # reintroduce a key.- name: Authenticate to GCP (workload identity federation)- if: env.HAS_WIF == 'true'uses: google-github-actions/auth@v2with:workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}service_account: ${{ secrets.GCP_SERVICE_ACCOUNT }}- - name: Authenticate to GCP (service-account key — legacy fallback)- if: env.HAS_WIF != 'true'- uses: google-github-actions/auth@v2- with:- credentials_json: ${{ secrets.GCP_SA_KEY }}- uses: google-github-actions/setup-gcloud@v2- name: Verify GCS write accessrun: |@@ -179,9 +167,6 @@ jobs:# The script's own env override, pointed at this build's scratch file instead of the real# manifest. The artifacts still land on their real GCS paths; only the keys land here.METADATA_PATH: ${{ needs.version.outputs.scratch_prefix }}/macos-${{ matrix.variant }}.json- # The `secrets` context cannot be read from a step-level `if:`, so reduce it to a boolean- # here — job-level `env:` can see it. Holds "true"/"false", never the value itself.- HAS_WIF: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER != '' }}defaults:run:working-directory: desktop@@ -215,16 +200,10 @@ jobs:apple-app-password: ${{ secrets.APPLE_APP_PASSWORD }}- name: Authenticate to GCP (workload identity federation)- if: env.HAS_WIF == 'true'uses: google-github-actions/auth@v2with:workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}service_account: ${{ secrets.GCP_SERVICE_ACCOUNT }}- - name: Authenticate to GCP (service-account key — legacy fallback)- if: env.HAS_WIF != 'true'- uses: google-github-actions/auth@v2- with:- credentials_json: ${{ secrets.GCP_SA_KEY }}- uses: google-github-actions/setup-gcloud@v2# SIGN_IDENTITY is read twice here: by publish-macos-variant.sh, re-signing the Intel build once@@ -260,9 +239,6 @@ jobs:env:TARGET_ARCH: ${{ matrix.arch }}METADATA_PATH: ${{ needs.version.outputs.scratch_prefix }}/linux-${{ matrix.arch }}.json- # The `secrets` context cannot be read from a step-level `if:`, so reduce it to a boolean- # here — job-level `env:` can see it. Holds "true"/"false", never the value itself.- HAS_WIF: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER != '' }}defaults:run:working-directory: desktop@@ -321,16 +297,10 @@ jobs:echo "APPIMAGETOOL=$RUNNER_TEMP/appimagetool" >> "$GITHUB_ENV"- name: Authenticate to GCP (workload identity federation)- if: env.HAS_WIF == 'true'uses: google-github-actions/auth@v2with:workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}service_account: ${{ secrets.GCP_SERVICE_ACCOUNT }}- - name: Authenticate to GCP (service-account key — legacy fallback)- if: env.HAS_WIF != 'true'- uses: google-github-actions/auth@v2- with:- credentials_json: ${{ secrets.GCP_SA_KEY }}- uses: google-github-actions/setup-gcloud@v2- name: Build and upload linux-${{ matrix.arch }}@@ -346,21 +316,12 @@ jobs:env:METADATA_PATH: ${{ needs.version.outputs.metadata_path }}SCRATCH_PREFIX: ${{ needs.version.outputs.scratch_prefix }}- # The `secrets` context cannot be read from a step-level `if:`, so reduce it to a boolean- # here — job-level `env:` can see it. Holds "true"/"false", never the value itself.- HAS_WIF: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER != '' }}steps:- name: Authenticate to GCP (workload identity federation)- if: env.HAS_WIF == 'true'uses: google-github-actions/auth@v2with:workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}service_account: ${{ secrets.GCP_SERVICE_ACCOUNT }}- - name: Authenticate to GCP (service-account key — legacy fallback)- if: env.HAS_WIF != 'true'- uses: google-github-actions/auth@v2- with:- credentials_json: ${{ secrets.GCP_SA_KEY }}- uses: google-github-actions/setup-gcloud@v2- name: Merge every platform's key into the manifest in one write@@ -491,22 +452,12 @@ jobs:needs: [version, build-macos, build-linux, publish]if: always()runs-on: ubuntu-latest- env:- # The `secrets` context cannot be read from a step-level `if:`, so reduce it to a boolean- # here — job-level `env:` can see it. Holds "true"/"false", never the value itself.- HAS_WIF: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER != '' }}steps:- name: Authenticate to GCP (workload identity federation)- if: env.HAS_WIF == 'true'uses: google-github-actions/auth@v2with:workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}service_account: ${{ secrets.GCP_SERVICE_ACCOUNT }}- - name: Authenticate to GCP (service-account key — legacy fallback)- if: env.HAS_WIF != 'true'- uses: google-github-actions/auth@v2- with:- credentials_json: ${{ secrets.GCP_SA_KEY }}- uses: google-github-actions/setup-gcloud@v2- name: Remove the scratch manifestsenv:diff --git a/.github/workflows/release-tmux-runtime.yml b/.github/workflows/release-tmux-runtime.ymlindex 404b755bf..1648a19da 100644--- a/.github/workflows/release-tmux-runtime.yml+++ b/.github/workflows/release-tmux-runtime.yml@@ -37,10 +37,6 @@ jobs:preflight:if: ${{ inputs.publish }}runs-on: ubuntu-latest- env:- # The `secrets` context cannot be read from a step-level `if:`, so reduce it to a boolean- # here — job-level `env:` can see it. Holds "true"/"false", never the value itself.- HAS_WIF: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER != '' }}steps:# GCP auth, WITHOUT a long-lived key — the same pattern release.yml, release-desktop.yml and# production-be-build.yaml already run. A service-account JSON key is a bearer credential with@@ -53,21 +49,14 @@ jobs:# credential WIF issues, so it fails on every call while the identical `gcloud storage` call# works. Do not reintroduce gsutil here.#- # Two steps, not one, only for the duration of the cutover: WIF whenever the- # GCP_WORKLOAD_IDENTITY_PROVIDER secret exists, the key only when it does not. DELETE the- # second step (and the GCP_SA_KEY secret, and the key itself in GCP) once a publish has gone- # green on the first — an unused key that still authenticates is still a liability.+ # Federation is the only path: the GCP_SA_KEY fallback and the key behind it were retired on+ # 2026-09-17. If this step fails, fix the provider or the service account's binding — do not+ # reintroduce a key.- name: Authenticate to GCP (workload identity federation)- if: env.HAS_WIF == 'true'uses: google-github-actions/auth@v2with:workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}service_account: ${{ secrets.GCP_SERVICE_ACCOUNT }}- - name: Authenticate to GCP (service-account key — legacy fallback)- if: env.HAS_WIF != 'true'- uses: google-github-actions/auth@v2- with:- credentials_json: ${{ secrets.GCP_SA_KEY }}- uses: google-github-actions/setup-gcloud@v2- name: Verify GCS write accessrun: |@@ -110,10 +99,6 @@ jobs:if: ${{ inputs.publish }}needs: [preflight, build]runs-on: ubuntu-latest- env:- # The `secrets` context cannot be read from a step-level `if:`, so reduce it to a boolean- # here — job-level `env:` can see it. Holds "true"/"false", never the value itself.- HAS_WIF: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER != '' }}steps:- uses: actions/checkout@v7- uses: actions/download-artifact@v4@@ -122,16 +107,10 @@ jobs:path: distmerge-multiple: true- name: Authenticate to GCP (workload identity federation)- if: env.HAS_WIF == 'true'uses: google-github-actions/auth@v2with:workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}service_account: ${{ secrets.GCP_SERVICE_ACCOUNT }}- - name: Authenticate to GCP (service-account key — legacy fallback)- if: env.HAS_WIF != 'true'- uses: google-github-actions/auth@v2- with:- credentials_json: ${{ secrets.GCP_SA_KEY }}- uses: google-github-actions/setup-gcloud@v2- name: Publish archives and manifestrun: |diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 60ed6faab..432d5e7dd 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -109,10 +109,6 @@ jobs:# Runs beside `version`, so it is free in wall clock.preflight:runs-on: ubuntu-latest- env:- # The `secrets` context cannot be read from a step-level `if:`, so reduce it to a boolean here- # — job-level `env:` can see it. Holds "true"/"false", never the value itself.- HAS_WIF: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER != '' }}steps:# GCP auth, WITHOUT a long-lived key wherever possible.#@@ -122,22 +118,14 @@ jobs:# from this job's own OIDC identity, so there is nothing to leak and nothing to rotate. The GCP# side is one script, in autonomous-ai/github-templates: scripts/setup-gcp-wif.sh.#- # Two steps, not one, only for the duration of the cutover: WIF the moment the- # GCP_WORKLOAD_IDENTITY_PROVIDER secret exists, the key until then, so provisioning GCP and- # switching CI are not the same deploy.- # DELETE the second step (and the GCP_SA_KEY secret, and the key itself) once a release has- # gone green on the first — see docs/cicd.md.+ # Federation is the only path: the GCP_SA_KEY fallback and the key behind it were retired on+ # 2026-09-17. If this step fails, fix the provider or the service account's binding — do not+ # reintroduce a key.- name: Authenticate to GCP (workload identity federation)- if: env.HAS_WIF == 'true'uses: google-github-actions/auth@c200f3691d83b41bf9bbd8638997a462592937ed # v2with:workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}service_account: ${{ secrets.GCP_SERVICE_ACCOUNT }}- - name: Authenticate to GCP (service-account key — legacy fallback)- if: env.HAS_WIF != 'true'- uses: google-github-actions/auth@c200f3691d83b41bf9bbd8638997a462592937ed # v2- with:- credentials_json: ${{ secrets.GCP_SA_KEY }}- uses: google-github-actions/setup-gcloud@e427ad8a34f8676edf47cf7d7925499adf3eb74f # v2- name: Verify GCS write accessrun: |@@ -166,8 +154,6 @@ jobs:# dry run it is the scratch manifest nothing polls.METADATA_PATH: ${{ needs.version.outputs.metadata_path }}VERSION: ${{ needs.version.outputs.version }}- # See `preflight` above: `secrets` is unreadable from a step `if:`, so it becomes a boolean.- HAS_WIF: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER != '' }}steps:- uses: actions/checkout@v7@@ -190,16 +176,10 @@ jobs:# Same two-step auth as `preflight` above, and the same cutover note applies: delete the key# fallback once a release has gone green on federation.- name: Authenticate to GCP (workload identity federation)- if: env.HAS_WIF == 'true'uses: google-github-actions/auth@c200f3691d83b41bf9bbd8638997a462592937ed # v2with:workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}service_account: ${{ secrets.GCP_SERVICE_ACCOUNT }}- - name: Authenticate to GCP (service-account key — legacy fallback)- if: env.HAS_WIF != 'true'- uses: google-github-actions/auth@c200f3691d83b41bf9bbd8638997a462592937ed # v2- with:- credentials_json: ${{ secrets.GCP_SA_KEY }}- uses: google-github-actions/setup-gcloud@e427ad8a34f8676edf47cf7d7925499adf3eb74f # v2# From the repo root, the way `make upload-cli` calls it. The script bundles with