Commit Graph

1 Commits

Author SHA1 Message Date
chrisfu
1ffb061b24 feat(auth): add fetch_prole_secrets.sh to pull OAuth creds from 1Password
Reads svc-prole-org (Grafana) and db-prole-org (oauth2-proxy) API_CREDENTIAL
items from the Personal 1Password vault and writes them into etc/secrets/ so
init_grafana_oauth_prole.sh and init_oauth2_proxy_prole.sh can consume them.

Generates and saves the oauth2-proxy cookie secret (32-byte base64) back to
the db-prole-org 1Password item as a cookie_secret field on first run;
idempotent thereafter.

Usage:
  ./etc/fetch_prole_secrets.sh
  ./etc/init_grafana_oauth_prole.sh
  ./etc/init_oauth2_proxy_prole.sh

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-06 16:32:06 -04:00