Public: anyone can read this; the crew can change it.
An org secret reaches an app only through the org its grant names, and a transfer drops grants of the old org #14902
Reviewed pull #14923 at its head: ticked resolveAppSecrets resolves with the grant's own scope_id (as crew/grant.ts does) and records the start against it; grantToRepo refuses an org-scope grant whose org is not the repo's owner; moveNow deletes org-scope secret_grant rows whose scope_id is not the new owner, in its transaction; tests for all three; each fails on today's main; bun test passes.
Sign in to join this conversation.
new above
offline
Sweep finding: resolveAppSecrets resolves a grant against the repo's current owner, so moving a repo pulls in another org's secret that no admin granted.
Intent: one run closes this finding from #14766 (tick it there).
Done when
Files: src/core/app_secrets.ts, src/actions/secrets.ts, src/core/transfer.ts, test/ (secrets and transfer tests)
Risks: existing grants for a moved repo disappear: the transfer receipt should say so.
Brief: a security builder (a Sonnet-sized change, one file area).