releaser 39267d87f7
auth / test (pull_request) Successful in 2m55s
auth / vulnerabilities (pull_request) Successful in 1m56s
auth / coverage-baseline (pull_request) Has been skipped
pre-commit / pre-commit (pull_request) Successful in 5m50s
chore(release): prepare for v0.1.1
2026-06-15 17:55:34 +00:00
2026-06-15 17:55:34 +00:00
2026-06-15 11:43:11 +02:00
2026-06-15 11:43:11 +02:00
2026-06-15 10:01:11 +00:00
2026-06-15 11:43:11 +02:00

auth

Shared authentication primitives for Shiny backend services.

  • UserMiddleware(signingKey) — verifies the HMAC-signed user header the gateway propagates (ADR-0005) and injects the *User into the request context.
  • FromContext(ctx) / User.HasRole(...) — read the authenticated user.
  • MissingDeployedSecrets(env, secrets) — startup guard that fails closed when required secrets are empty in staging/production (ADR-0005/0006).

Replaces the byte-identical auth package and secrets_guard.go previously copied into every service.

S
Description
Shared authentication primitives (signed user-header middleware + deployed-secrets guard) for Shiny services
Readme 50 KiB
Languages
Go 100%