Problem
The auth direction for hosted AMS is ratified (reuse ORB's installation-based broker, #4941 closed) and #7174 already generalized src/orb/broker.ts to support multiple secret types — but only ORB_SECRET_TYPE_GITHUB_TOKEN is actually mintable today. No AMS-specific secret type exists, and nothing wires a miner-facing login/session through the broker yet. Decided: start this now, in parallel with #5230's other sequencing gates, since the pattern is already proven.
Area
src/orb/broker.ts, src/orb/oauth.ts.
Proposal
Add an AMS-facing secret type to the broker's existing secret_type discriminator (mirroring the GitHub-token strategy's shape), and the corresponding mint/refresh logic. This is additive to #7174's already-generalized broker, not a new auth system.
Deliverables
Resources
Boundaries
Extends the existing broker only — no parallel/bespoke AMS auth system.
maintainer-only — secrets custody, needs maintainer review per this repo's own bar for anything in this cluster.
Problem
The auth direction for hosted AMS is ratified (reuse ORB's installation-based broker, #4941 closed) and #7174 already generalized
src/orb/broker.tsto support multiple secret types — but onlyORB_SECRET_TYPE_GITHUB_TOKENis actually mintable today. No AMS-specific secret type exists, and nothing wires a miner-facing login/session through the broker yet. Decided: start this now, in parallel with #5230's other sequencing gates, since the pattern is already proven.Area
src/orb/broker.ts,src/orb/oauth.ts.Proposal
Add an AMS-facing secret type to the broker's existing
secret_typediscriminator (mirroring the GitHub-token strategy's shape), and the corresponding mint/refresh logic. This is additive to #7174's already-generalized broker, not a new auth system.Deliverables
Resources
src/orb/broker.ts,src/orb/oauth.tsBoundaries
Extends the existing broker only — no parallel/bespoke AMS auth system.
maintainer-only — secrets custody, needs maintainer review per this repo's own bar for anything in this cluster.