Skip to content

[CODEX:   EE.1.S] Do Not Merge: Use Synced ASC Credentials - #2083

Merged
swu-rob[bot] merged 9 commits into
mainfrom
codex/um-1676-asc-synced-credentials
Nov 25, 2026
Merged

swu-rob[bot] merged 9 commits into
mainfrom
codex/um-1676-asc-synced-credentials

Conversation

@jaywedgeworth22

@jaywedgeworth22 jaywedgeworth22 commented Nov 21, 2026 •

Copy link
Copy Markdown
Member
  • Do Not Merge until the ship producer uses its own qualified finite read-only service-token bindings for Fleet-OPS prod /asc and the app's prod certificate folder, with registry/custody and exact scope verified.
  • Complete the producer workflow transition through the approved publishing route while preserving working signing credentials; never borrow another consumer's grant or mint a new ASC key.
  • Verify complete synced tuples before source merges: current ios-ship.yml logs in with Universal Auth and its push filter includes these six files, so merging now would trigger that retired route.
  • Pass current-head required CI and genuine Kody review, and fix or source-decline every finding before resolution.  Source checks do not clear the producer dependency.

[CODEX:   EE.1.S]

Removes ASC consumers' retired application, dynamic-folder and credential-file lookups.  Complete producer-synced APPLE_API_* credentials take priority over a separate complete ASC_* tuple; partial tuples never combine and a malformed complete preferred tuple refuses.  The API signs in memory, Apple-tool staging/cleanup remains, and optional Sentry uses its synced environment.

The shell recognizes the same exact PEM opening marker as the API.  A deterministic generated-key regression proves valid base64 containing BEGIN is decoded and retains preferred-tuple precedence.  Both source findings are fixed or evidence-declined and accepted; all threads are resolved.  Current head f1c75c8 has strict Kody136854267286 and all23 checks successful.

Validation:90 offline Node tests,12 isolated shell cases and static guards pass; checksum, syntax, diff and current-file credential scans pass.  Kody's three unevaluated context rules were independently assessed: no server-only imports, generic configuration side effects or numeric representation changes are introduced.  No provider/store/native execution occurred.

The verified push-triggered producer still uses Universal Auth.  Its own ASC/certificate grants, registry/custody and approved workflow transition remain the concrete merge hold; source review does not qualify hosted ship, deployment or installed acceptance.  Refs UM-1676

@linear-code

linear-code Bot commented Nov 21, 2026

Copy link
Copy Markdown

UM-1676

@kody-ai

This comment has been minimized.

Comment thread scripts/ios-fleet/asc-api.mjs Resolved
Comment thread scripts/ios-fleet/ship-testflight.sh Resolved
@kody-ai

kody-ai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Automatic approval held

Kody's assessment:

The risk assessment does not match the current PR or risk settings. Run a new review before automatic approval.

@kody-ai

kody-ai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Kody Review Complete

Great news! 🎉
No issues were found that match your current review configurations.

Keep up the excellent work! 🚀

⚠️ 3 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Verify the import graph before applying import 'server-only'
  • Configuration Helpers Must Be Side-Effect Free
  • Keep Numeric Representations Consistent Across Related Data Sources
Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Validate Business Logic: Ask Kody to validate your code against business rules by adding a comment with the @kody -v business-logic command.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ✅

Access your configuration settings here.

​

swu-codex Bot pushed a commit that referenced this pull request Nov 21, 2026
Refs UM-1676.  Retire bounded non-ASC Secrets-App discovery and machine-identity injector paths, preserving explicit synced inputs and service-token metadata checks.  Complete verify, strict Kody and full finding dispositions pass.  Actual bindings, installation and receiver acceptance remain separate; ASC producer transition stays held in #2083.
@swu-rob

swu-rob Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

UM-1676 producer provisioning update (MA, 2026-11-22, fleet PR drive):

The credential provisioning this PR waits on is now done.  Two qualified, finite, read-only service tokens were minted under the stored Infisical user session and scope-verified with the tokens themselves:

  • um-ci-asc-read — Fleet-OPS prod /asc, read-only, expires 2027-02-21.  Self-read lists exactly ASC_ISSUER_ID, ASC_KEY_ID, ASC_KEY_P8; named reads outside scope (/zulip, /openrouter_admin) return 404.  Registry: SWU Fleet References, "Infisical Service Tokens" row 217.  Value staged in AI Fleet Coordinator prod /service-tokens as UM_IOS_SHIP_ASC_READ_SERVICE_TOKEN.
  • um-ios-ship-dist-read — Usage-Monitor prod / (the certificate folder this app's workflow reads), read-only, expires 2027-02-21.  Self-read confirms IOS_DIST_P12_BASE64 and IOS_DIST_P12_PASSWORD at prod /.  Registry row 218.  Value staged as UM_IOS_SHIP_DIST_READ_SERVICE_TOKEN.

The producer workflow transition is prepared as draft PR #2086: it removes the Universal Auth login from ios-ship.yml's signing step and reads each project with its own scoped token, failing closed if a binding is missing.  This branch has also been updated onto current main (new head 6196e29); both review threads remain resolved and checks are green at the new head apart from the long verify job, which was still running when this comment was posted.

What remains, in order:

  1. Set the Usage-Monitor repo secrets INFISICAL_UM_ASC_READ_TOKEN and INFISICAL_UM_DIST_READ_TOKEN from the staged values (no relay route exists for GitHub repo secrets, so this binding is the one step MA cannot perform).
  2. Merge [ROB] [MA] Do Not Merge Yet: UM-1676 ios-ship Producer Service-Token Transition #2086 and confirm the next ios-ship run's signing step loads through the scoped tokens.
  3. Un-draft this PR and merge it.

The Do Not Merge hold stays until step 2 verifies, per this PR's own terms: merging now would run the new consumer scripts under the retired Universal Auth route.

@swu-rob

swu-rob Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Follow-up to the provisioning update above: the verify job at head 6196e29 has now completed successfully.  All 10 checks at the current head are green and both review threads are resolved.  The only remaining items are the three sequenced steps already listed (repo-secret binding, merge and verify #2086, then un-draft and merge here).

jaywedgeworth22 and others added 2 commits November 23, 2026 23:42
Conflict resolution by MA under the owner's 2026-11-25 merge order.  scripts/ios-fleet/asc-api.mjs: clean three-way merge of this branch's UM-1676 synced-credential changes with main's #2090 external-TestFlight-group changes; both sides preserved and syntax-checked.  scripts/ios-fleet.sha256: pin regenerated for the merged asc-api.mjs (sha256 b4d957a5c4dbf1c7368fdcf110df54e0107789f48a9493e6f691e7f186f123db); this branch's ship-testflight.sh and asc-key.mjs pin lines kept.  Main-only changes to AGENTS.md, package.json and package-lock.json are not in this tree; they enter through the merge parent and are untouched by this branch.
@swu-rob

swu-rob Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

[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 hold on this PR is released by the owner, who is the designated decision-maker for it.  MA is not waiting for the author.  Sequencing note: the owner has reordered the original plan — this PR merges FIRST and #2086 second, reversing steps 2–3 of my 2026-11-22 comment; the repo-secret binding for INFISICAL_UM_ASC_READ_TOKEN and INFISICAL_UM_DIST_READ_TOKEN is still outstanding and remains a ship-time gate, not a merge gate, under this order.

Conflict resolution: main had moved (docs audit #2088, dependency update #2087, and #2090's external-TestFlight-group change to asc-api.mjs).  Merge commit 2c53f2d resolves the two real conflicts: asc-api.mjs is a clean three-way merge preserving both this branch's synced-credential changes and #2090's tester-list changes (syntax-checked), and scripts/ios-fleet.sha256 is regenerated for the merged file.  Main-only changes to AGENTS.md, package.json and package-lock.json enter through the merge parent and are untouched by this branch.

Merge proceeds once the fresh checks on the new head are green; both review threads were resolved at the previous head and no changes-requested review is outstanding.

@swu-rob
swu-rob Bot marked this pull request as ready for review November 25, 2026 07:02
@swu-rob
swu-rob Bot merged commit 19dc3aa into main Nov 25, 2026
13 of 14 checks passed
@swu-rob
swu-rob Bot deleted the codex/um-1676-asc-synced-credentials branch November 25, 2026 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant