Skip to content

Sentinel v5 rollout: s2s bootstrap + mapache cutover#94

Merged
BK1031 merged 1 commit into
mainfrom
bk1031/sentinel-s2s-auth-env
Jun 20, 2026
Merged

Sentinel v5 rollout: s2s bootstrap + mapache cutover#94
BK1031 merged 1 commit into
mainfrom
bk1031/sentinel-s2s-auth-env

Conversation

@BK1031

@BK1031 BK1031 commented Jun 20, 2026

Copy link
Copy Markdown
Contributor
  • Add INTERNAL_BOOTSTRAP_SECRET env to sentinel core/discord/oauth/saml so non-core services can exchange it for a bearer JWT at startup (Sentinel PR fix(clickhouse-ec2): disable text_log and lower log level in provisioning #79)
  • Add DISCORD_CLIENT_ID / DISCORD_CLIENT_SECRET / DISCORD_REDIRECT_URI to sentinel oauth so "Continue with Discord" actually works in prod (Sentinel PR foreman: swap to standalone image (v2.0.0) #76)
  • Cut mapache auth + query over to https://sentinel-v5.gauchoracing.com, drop SENTINEL_JWKS_URL (v5 hosts JWKS at /api/core/keys under SENTINEL_URL), roll new client_id TIvD6jCH3mGV
  • Rename mapache auth env + secret key SENTINEL_TOKENSENTINEL_SA_TOKEN to match the v4-API-key → v5-SA-JWT switch in auth/config/config.go
  • Update bootstrap comment in apps/mapache.yaml to reference the new key

Operator todo before merge

  • sentinel-secrets: add INTERNAL_BOOTSTRAP_SECRET (openssl rand -hex 32), DISCORD_CLIENT_ID, DISCORD_CLIENT_SECRET
  • Discord application: register https://sentinel-v5.gauchoracing.com/auth/login/discord as authorized redirect
  • mapache-secrets: already patched with new SENTINEL_CLIENT_SECRET + SENTINEL_SA_TOKEN; orphan SENTINEL_TOKEN key removed
  • v5 client TIvD6jCH3mGV: confirmed https://mapache.gauchoracing.com/auth/login registered as redirect_uri

Point both deployments at https://sentinel-v5.gauchoracing.com,
drop the standalone SENTINEL_JWKS_URL (v5 hosts JWKS at
/api/core/keys, derived from SENTINEL_URL in code), and roll the
new client_id TIvD6jCH3mGV.

auth additionally renames its env+secret-key SENTINEL_TOKEN ->
SENTINEL_SA_TOKEN to match config.go's switch from the v4 static
API key to the v5 service-account JWT. Bootstrap comment in
apps/mapache.yaml updated to match.

Secret keys (SENTINEL_CLIENT_SECRET overwrite + new
SENTINEL_SA_TOKEN) have already been patched into the in-cluster
mapache-secrets so this rolls cleanly via ArgoCD autosync.
@BK1031 BK1031 merged commit d325c58 into main Jun 20, 2026
@BK1031 BK1031 deleted the bk1031/sentinel-s2s-auth-env branch June 20, 2026 05:36
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