browser: Chrome Web Store uploads authenticate through Google WIF; stamp extension versions; browser lane opts into OIDC #129
No reviewers
Labels
No labels
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
key-store/key.store!129
Loading…
Reference in a new issue
No description provided.
Delete branch "cws-wif"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Chrome Web Store via WIF (no OAuth client, no refresh token). CWS API v2 accepts a service account added under Account in the developer dashboard with an impersonation-minted token for scope
chromewebstore. The release lane already holds that identity (Forgejo job token / Authentik cloud-signing → Google STS →release-signing@key-d0t-storeimpersonation — how Play uploads authenticate), so use it for Chrome too.Scripts/browser/chrome-web-store-upload.sh:KEYSTORE_CHROME_WEB_STORE_AUTH_MODE=auto|wif|oauth(auto: preset access token → WIF whenGOOGLE_APPLICATION_CREDENTIALSis an external_account credential → refresh-token trio). WIF = the same STS +generateAccessTokenexchange asScripts/android/playwith the scope swapped; subject token reaches curl via--data-urlencode name@file, newline-trimmed; requiresservice_account_impersonation_url.publish-store-uploads.yml, Upload (Browser Stores): mirrors Upload (Google Play) on main —enable-openid-connect: true(was missing since #111 → trust guard died at the OpenBao step under source=openbao; caught by adversarial review), Prepare Release Signing Identity withsource: vars.KEYSTORE_CI_RELEASE_SECRETS_SOURCE || age+authority: release-publish, Configure Age gated!= openbao,KEYSTORE_CHROME_WEB_STORE_AUTH_MODEfrom vars (default auto). OpenBaoage/browser/*lines stay as the OAuth fallback + Firefox AMO.Web/apps/extension/manifest.config.ts: both stores reject a version not strictly greater than the last accepted; version was fixed0.1.0. Stamp0.1.0.<BUILD_NUMBER>for chrome/firefox (Safari keeps three parts). BUILD_NUMBER is already in the Build Browser Extensions step env.Verified: shellcheck clean (pre-existing SC2034 only); WIF path against stub STS + iamcredentials (exact token-exchange fields, newline stripped,
scope=chromewebstore), then the real CWS API rejects the stub bearer with 401 as expected; auth-mode error paths; extensionVersion table (targets/env/bounds); YAML parses. Adversarial review (3 lenses × verify): version-stamping clean end-to-end (plumbing, all consumers, both stores’ rules); auth-flow clean field-by-field vsplay/google-wif-auth.sh; workflow-wiring found the missingenable-openid-connect(fixed inc5641a6c) and the drift vs main’ssource/authority(mirrored).Operator prerequisites before dispatch:
release-signing@key-d0t-store.iam.gserviceaccount.comadded under Account in the CWS dashboard; repo varsKEYSTORE_CHROME_WEB_STORE_PUBLISHER_ID/_EXTENSION_ID(already set).