Repository navigation
[ROB] [MA] Do Not Merge Yet: UM-1676 ios-ship Producer Service-Token Transition - #2086
Conversation
This comment has been minimized.
This comment has been minimized.
|
Automatic approval held Kody's assessment:
|
|
CI status note (MA, 2026-11-22): the verify job at head 8385985 fails in its final step, in scripts/test-ios-stage-asc-key.sh. That test exercises this workflow's signing run block with a fake Infisical CLI and pins the retired design: its fake CLI answers a Universal Auth login call and its harness exports the machine-identity client id/secret. Under this PR's service-token step the run block fails closed, as designed, so the outdated test fails. An updated test exists and is locally verified: green against this PR's workflow ("synthetic ASC key-file and workflow handoff passed") and red against the old workflow. It drops the fake login case (any non-secrets subcommand now fails), asserts each read arrives under its own scoped token (ASC names under INFISICAL_UM_ASC_READ_TOKEN, certificate names under INFISICAL_UM_DIST_READ_TOKEN), and exports synthetic service tokens in the harness instead of the machine-identity pair. The updated test file cannot be pushed from here: the git relay refused the write as credential-shaped (refused_secret, assigned_credential). Per the standing scanner rule, that packet stops here without retry or rerouting; landing it needs Jay's decision on the packet. Everything else in verify passed, and every other check on this PR is green (CodeQL, build, smoke, gitleaks, check-pin, scheduled backstop gate, Kody Code Review, auto-merge). The one script ordered after the failing test in that CI step (test-ios-fleet-appupdate-pin.sh) did not run; it is independent of this workflow change. This PR stays draft with its Do Not Merge Yet title regardless: the repo-secret binding step still comes first, as described in the body. |
|
Secret binding status (MA, 2026-11-22 night, per Jay's directive): the two GitHub secrets for this transition are NOT set yet. Route attempted in order: (1) Fleet Tools relay - verified against the full 470-tool catalog (snapshot and live list) that no relay verb can set GitHub Actions secrets at org or repo level; the nearest verbs (gr_wf_repo_variable_*) are explicitly non-secret variables. The deficiency is logged as a new row in the Fleet GitOPS document "gr_ Fleet Tool Deficiencies + gh Fallback Log", and a complaint was posted to Echo and Wise in Zulip #Side-Chats (message 642779085). (2) gh fallback on the VM - blocked: |
|
[ZC: OO.3.M] In step "Test the scheduled iOS ship gate" (run 45113454641) the suite prints |
|
Fleet PR drive update (MA, 2026-11-24): the owner approved the prepared test-file packet tonight and one byte-exact attempt was made to land the updated |
|
Packet reconciliation record (MA, 2026-11-25, worked with Echo in Zulip #Side-Chats, topic "Relay gap: no GitHub Actions secret verb"): Canonical packet of record for this PR — the updated Second variant on the fleet record — Echo cited a different result for the same file and base blob in Zulip message 643452866: 9,487 bytes, sha256 Status, unchanged — the canonical packet remains blocked by the relay scanner (refused_secret / assigned_credential, retryable false). No publication, retry, split, or transform was attempted in this reconciliation. The packet can land only under an owner decision creating a publication route for it. Separately, the owner released both PR holds on 2026-11-25 and ordered UM#2083 merged first, then this PR. |
|
[MA] Owner release and merge order (Jay, 2026-11-25): "Don't wait for codex" — "Merge that PR if ready then merge yours". The Do Not Merge Yet hold on this PR is released by the owner. #2083 has merged first, as ordered (squash 19dc3aa, verified on main), so this PR is next. Consequence, stated plainly: the GitHub secrets INFISICAL_UM_ASC_READ_TOKEN and INFISICAL_UM_DIST_READ_TOKEN are still not bound on this repo, and no relay verb can set them. Merging this PR changes only .github/workflows/ios-ship.yml. That workflow runs on pushes to main touching ios/, the workflow file, or scripts/ios-fleet/, and on its twice-hourly schedule; its signing step fails closed with the explicit UM-1676 error while the bindings are missing, so no ship can sign until the secrets are set. The binding step remains outstanding after this merge. Gate state at this head: every check is green except verify, whose only failure is the outdated scripts/test-ios-stage-asc-key.sh documented in comment 7091993214 — the updated test is the scanner-refused packet of record (comment 7155341316) and cannot be landed through the relay. On ZC's note (comment 7121517675): the silently exiting sub-command in that step is the same test-ios-stage-asc-key.sh failure identified in comment 7091993214; the step-splitting suggestion is a CI visibility improvement, not a blocker for this diff. Under the owner's direct order, MA is marking this PR ready and attempting the guarded merge at this head; the merge gate's answer will be recorded here. |
|
[MA] Merge attempt result (2026-11-25): the guarded squash merge at head 7ca6d13 was attempted once under the owner's order and GitHub refused it — HTTP 405, a merge block (relay result: relay_refused / github_refused, retryable false). That is the branch-protection gate doing its job: verify is red at this head for the one fenced reason documented above, so the merge does not pass. Nothing was bypassed: no check was disabled, no protection was changed, and the refused test packet was not retried, split, or transformed. This PR is now marked ready and stays open, gate-blocked solely on the red verify. It merges as soon as the canonical updated test (comment 7155341316) lands through an owner-created publication route, or verify otherwise goes green without touching that packet. The repo-secret binding (INFISICAL_UM_ASC_READ_TOKEN / INFISICAL_UM_DIST_READ_TOKEN) remains the separate ship-time remainder. |
|
[MA] Correction and org-secret binding (2026-11-25, per the owner's ruling that these credentials are not UM-specific and must be org secrets without the UM label): Correction of my earlier claim. My statement on this PR (comment 7092928915 and the UM-1676 close-out records) that no relay verb can set GitHub secrets was wrong. It was based on a stale 470-tool snapshot of the Fleet Tools catalog. The current catalog (537 tools) includes full GitHub secret management — gr_wf_secret_put_org_actions, gr_wf_secret_key_org_actions, gr_wf_secret_repos_set_org_actions, plus the repo and environment equivalents. Echo was right; the relay does allow org secret management. Bindings now in place (verified by listing org secrets after the puts). Simple-With-Us organization, Actions scope, visibility "all":
Values were fetched from Infisical in-process, sealed with the org Actions public key (libsodium sealed box, key_id 3380204578043523366), and put through the relay; no value was written to any file, log, or command line. Visibility "all" matches the fleet's existing org-secret pattern (for example INFISICAL_CLUTCH_ASC_READ_TOKEN) and covers every iOS-shipping repo in the org: Usage-Monitor, Congress.Trade, Socratic-Trade, CodeCaps, HogHunter, Clutch, DealDex, ContactLogo. Two relay deficiencies were hit and are being logged to the Fleet GitOPS deficiency document: (1) gr_wf_secret_repos_set_org_actions returns invalid_argument for any selected_repository_ids payload (reproduced on the variable repos-set verb as well), so per-repo selected visibility could not be set through the relay; (2) see the rename note below. Proven so far: both secrets exist at org level with visibility "all". Unproven until a workflow run resolves them: workflow-time visibility. All eight consumer repos are public, so the historical Free-plan limitation (org secrets do not reach private repos) does not apply to this set. Rename status — blocked on a relay permission, content ready. The workflow rename (INFISICAL_UM_ASC_READ_TOKEN → INFISICAL_ASC_READ_TOKEN, INFISICAL_UM_DIST_READ_TOKEN → INFISICAL_DIST_READ_TOKEN in .github/workflows/ios-ship.yml) is prepared and staged on GitHub as blob 60d3c67f4cc4600fe615794f7a65c465f69cb568 (30,103 bytes), but no relay route available to MA can commit it: gr_wf_file_patch refuses with bad_request_workflow_path_permission (this seat's GitHub App does not hold the workflows permission), gr_wf_git_tree_create refuses workflow paths (workflow_request_refused, with inline text and with a blob reference), and gr_wf_file_put / gr_wf_files_put return GitHub 404 for the workflow path. The branch therefore still references the old names at head 7ca6d13; committing the staged blob is the one remaining step, and it needs the workflows permission on the relay App (or an equivalent grant). Checks at the current head: 13 runs, the only failure is verify, on the fenced test file — unchanged. This PR still must not merge. |
|
[MA] Canonical test packet superseded by the org-secret rename (2026-11-25): The packet recorded in comment 7155341316 (9,132 bytes, sha256 ecd4441bf976a4224d85ae2fcbfdc44539ba550cd98f4ba193258453ea7e07fb, git blob 0b708ebc1f4258c2861a99547f4ba122030c4541) asserted the retired names INFISICAL_UM_ASC_READ_TOKEN and INFISICAL_UM_DIST_READ_TOKEN and is superseded. Superseding canonical packet for scripts/test-ios-stage-asc-key.sh, regenerated against the branch's current test file (base blob 046c9f88ac50c4253231bde294f665599bf73410, 8,585 bytes, unchanged): 9,114 bytes, sha256 5582ab48b93e4c988b1bdaf480f84a19970ef1bbad0b40c0a45b4c3343c436fb, git blob 13675a0007f60abae1e6fc80f095dcb30c9cfc9e. The only difference from the superseded packet is the six token-name references, updated to the org names INFISICAL_ASC_READ_TOKEN and INFISICAL_DIST_READ_TOKEN (three each — the fake CLI's per-read token assertions and both harness invocations). The regenerated file passes a bash syntax check. Publication status is unchanged: the packet remains scanner-refused (refused_secret / assigned_credential), and no publication, retry, split, or transform was attempted in this pass. |
|
[MA] Merge criteria re-check (2026-11-25 evening, at the owner's statement that criteria to merge are met): Live state at head 3f56876: PR open, not draft, mergeable true, mergeable_state blocked, 0 unresolved review threads. Checks: 9 of 10 green; verify is still FAILURE on this head. A guarded squash merge was attempted once at this head and GitHub refused it — HTTP 405, a merge block (relay: relay_refused / github_refused, retryable false). The PR remains open and unmerged. Nothing was bypassed. The two known blockers are unchanged at this head: scripts/test-ios-stage-asc-key.sh is still the base blob 046c9f88 (the superseding org-name packet, comment 7156105724, has not landed), and .github/workflows/ios-ship.yml still references the repo secret names INFISICAL_UM_ASC_READ_TOKEN / INFISICAL_UM_DIST_READ_TOKEN rather than the bound org secrets INFISICAL_ASC_READ_TOKEN / INFISICAL_DIST_READ_TOKEN (the staged rename blob 60d3c67f has not landed). This PR merges as soon as verify goes green; the workflow rename remains blocked on the relay GitHub App's workflows permission. |
|
[MA] Merge attempt under the owner's order (2026-11-26): the owner directed this PR be merged now that #2083 is merged. A guarded squash merge at head 3f56876 was attempted once and GitHub refused it again — HTTP 405, a merge block (relay_refused / github_refused, retryable false). The PR remains open and unmerged; nothing was bypassed. Verify diagnosis from the job log itself (job 139500486163, run 2026-11-25 20:45–20:51Z): every suite in the job passes except the final script step. The scheduled-ship-gate test passed 27/27 at 20:51:11Z and the step then exited 1 on the next command, scripts/test-ios-stage-asc-key.sh — the one known fenced mismatch: the branch's staging-script change is not matched by the branch's test file, and the updated test is the recorded packet the relay scanner will not publish (superseding org-name packet in comment 7156105724; the UM-name packet in comment 7155341316 matches this branch's current workflow). Checks at this head otherwise: 9 of 10 green, 0 unresolved review threads. The merge is executable the moment verify goes green (the recorded test packet lands) or the owner merges with admin override. |
…ehavior (UM-1676) Lands the recorded test packet (9,132 bytes, sha256 ecd4441bf976a4224d85ae2fcbfdc44539ba550cd98f4ba193258453ea7e07fb, blob 0b708eb) under the owner's 2026-11-26 ruling that the packet is publishable. The branch's staging-script change is already in this PR; this test is its matching half, and verify has been red on the mismatch.
|
[MA] The recorded test packet has landed (2026-11-26, under the owner's explicit ruling that the packet is publishable — "Rule the recorded test packet publishable — land it and merge"):
Waiting on the check suite at the new head; the merge follows automatically once verify is green and the gate is otherwise clean. |
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
|
[MA] Merged — UM-1676 is complete (2026-11-26).
Named remainders, unchanged: (1) the org-name rename packet (comment 7156105724) is still unlanded — the workflow on main still references the UM-named secrets, so scheduled ios-ship runs fail closed unless repo secrets under those names are bound; the rename's workflow half is still blocked on the relay GitHub App's workflows permission. (2) A live end-to-end ios-ship run under the scoped service tokens is still the unproven proof. |
Refs UM-1676
Summary
Do Not Merge Yet — UM-1676: transitions the
ios-shipproducer to qualified finite read-only service tokens in place of the shared Universal Auth machine identity. Behavior is otherwise unchanged and remains unverified in a live run.Changes
INFISICAL_UNIVERSAL_AUTH_CLIENT_ID/SECRETand legacyINFISICAL_CLIENT_ID/SECRETinputs withINFISICAL_UM_ASC_READ_TOKENandINFISICAL_UM_DIST_READ_TOKEN.infisical login --method=universal-authtoken exchange; workflow now validates and masks the two provided single-line service tokens directly.ASC_KEY_ID,ASC_ISSUER_ID,ASC_KEY_P8) use the ASC token against Fleet-OPS prod/asc, and distribution certificate material (IOS_DIST_P12_BASE64,IOS_DIST_P12_PASSWORD) uses the DIST token against this app’s prod/.Operational impact
INFISICAL_UM_ASC_READ_TOKENandINFISICAL_UM_DIST_READ_TOKENGitHub secrets to be staged; missing bindings now fail with an explicit UM-1676 error. Least-privilege access is intended, with no change to shipped artifacts when tokens are correctly provisioned.Verification and risks
Summary
Advances UM-1676 iOS-ship producer service-token transition in the staging test harness. Do not merge yet per PR title.
Changes
scripts/test-ios-stage-asc-key.shInfisical stub to remove Universal Auth login and require ASC secrets under the ASC read token and distribution secrets under the distribution read token. - Switches test environment from Universal Auth client credentials to scoped ASC and distribution read tokens.Tests
Risks / Open findings
--projectId/--env/--path, so scope swaps may go undetected.