mirror of
https://github.com/dredx/prole.git
synced 2026-09-24 14:54:34 +00:00
knoe-auth (prole.org k3s): - Fix CNPG manifest drift: remove spec.backup.pluginConfiguration (CNPG 1.28 only), switch spec.certificates from serverTLSSecret to serverAltDNSNames - Apply knoe-auth Round 1 schema + GRANTs manually (postInitSQL had never run on live cluster) - Fix OIDC signing key generator: base64(DER) not base64(PEM) — OidcTokenService does Base64.decode() → PKCS8EncodedKeySpec which requires raw DER bytes - Add OIDC controllers: authorize, token, userinfo, jwks, discovery - Add prole Spring profile: cookieDomain, emailDomain, Kerberos config - Add secret example templates: knoe-db-user, knoe-auth-oidc-signing, knoe-auth-google-prole - Kong configmap: scope knoe-auth route to /auth prefix only Tenant onboarding: - Add etc/onboard_tenant.sh: provision/apply/rotate/status workflow backed by 1Password vaults; types: 'enterprise' (own Kerberos + domain) and 'tenant' (hosted, initContainer KDC) - Provision 'Knoe Tenant - prole.org' vault; apply all 7 k8s secrets to knoe-system - init_knoe_auth.sh: add explicit GRANT + ALTER DEFAULT PRIVILEGES for knoe role Cluster stabilisation: - gitea: roll back 14-day stuck rollout (RWO PVC + maxSurge=100% deadlock); patch deployment strategy to Recreate - supabase: create supabase_admin role, _supabase db, _analytics schema, _realtime schema in CNPG — analytics and realtime had never connected since Helm install day 1 - knoe-db barman ObjectStore: add GCS-backed objectstore manifest + scheduled backup Infrastructure: - gandalf host_vars: k3s registry config - pi host_vars: clean up stale entries - knoe-db schemas: ekosystem.sql, ekosystem_objects.sql - init_prole_app.sql: prole app DB initialisation Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
24 lines
778 B
YAML
24 lines
778 B
YAML
# Example only (do not commit real secrets).
|
|
#
|
|
# knoe-db-user — CNPG bootstrap secret for the knoe database owner.
|
|
# Referenced by spec.bootstrap.initdb.secret in knoe-db.yaml.
|
|
#
|
|
# IMPORTANT: username MUST match spec.bootstrap.initdb.owner (knoe).
|
|
# CNPG sets the password on the role named here; if this says "root"
|
|
# the knoe role gets no password and all knoe-auth DB connections fail.
|
|
#
|
|
# Create with knoe-db-passwwd.sh, which defaults DB_USER=knoe.
|
|
# If creating manually:
|
|
# kubectl create secret generic knoe-db-user -n knoe-db \
|
|
# --from-literal=username=knoe \
|
|
# --from-literal=password=<strong-random-password>
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: knoe-db-user
|
|
namespace: knoe-db
|
|
type: Opaque
|
|
stringData:
|
|
username: knoe
|
|
password: "CHANGE_ME"
|