Commit Graph
2 Commits
Author SHA1 Message Date
gitea 71a2e9a2e3 Add bridge device login and cloud credential resolution
Implement the phase-three client: device-code login (auth login/logout/bridge) with a 0600 token file, cloud credential resolution with an in-memory cache, pre-minted Hose token injection via tokenType/tokenName, cloud Seal sessions without local renewal, elevation guards, and a local-only doctor check. Cloud enterprises still avoid tokens.json.
2026-11-19 17:48:58 +08:00
gitea 887df2d32f Add cloud enterprise storage mode and credential resolver
Enterprise configs gain a root-level storage field (default local). Cloud configs must not persist any secret and fail closed on load. Route credential reads through resolveCorpCredentials, which returns local fields unchanged and fails with exit code 11 for cloud enterprises until the bridge client lands. Cloud enterprises skip the local token store and delegation renewal.
2026-11-19 17:00:45 +08:00