Operator directive: don't diverge architecture to avoid asking for credentials; provision them upfront via SOPS and keep the existing (unified) graph. Roadmap reconciliation: Phase 2 = Network/Storage/TLS/DNS/Ingress, so cert-manager/externaldns/gateway (the credential-gated pieces) ARE Phase 2; monitoring is Phase 4. Earlier A2/rollout scope was inverted by credential-avoidance. Reverts (credential-driven): remove clusters/dev/rollout/ + the $patch:delete's; restore unified base graph (dev = ../base + cluster-vars + SOPS decryption, R-ENV-02 intact); restore monitoring files (Phase 4). Kept non-credential improvements: tofu for_each/rejoin, Kyverno parametrization + webhook excludes. platform/kustomization.yaml now phased (single shared list): Phase-2 set = kyverno, cilium, longhorn, cert-manager, externaldns, gateway; later components commented with phase markers. SOPS activated: .sops.yaml at repo root; bootstrap/sops/secret-templates/*.yaml.example for all secrets (cloudflare x2, grafana, alertmanager-smtp, keycloak, oauth2-proxy, pia); bootstrap/sops/CREDENTIALS.md checklist; pre-wired commented cloudflare-api-token lines in cert-manager + externaldns; filled non-secret ACME email. Agents never touch real secret values (operator encrypts). Validated: kubectl kustomize dev(unified)/prod/platform(Phase-2 only), templates inert, make -C ci gate PASS. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
33 lines
1.5 KiB
Plaintext
33 lines
1.5 KiB
Plaintext
# =============================================================================
|
|
# TEMPLATE — NOT APPLIED, NOT ENCRYPTED (.yaml.example is ignored by kustomize
|
|
# and never auto-encrypted by SOPS). Reference scaffold only.
|
|
#
|
|
# (a) Copy to: (TO BE DECIDED AT PHASE 3 — VPN component not authored yet)
|
|
# (b) kustomization: DO NOT WIRE YET.
|
|
# (c) Encrypt: sops -e -i <target>.sops.yaml (once the target path exists)
|
|
# (d) Consumed by: Phase-3 Gluetun VPN egress gateway. The consuming
|
|
# component AND its namespace DO NOT EXIST yet — this template
|
|
# is provisioned upfront. [Phase 3]
|
|
#
|
|
# !! NAMESPACE UNKNOWN — the metadata.namespace below is a placeholder. Set it to
|
|
# the VPN gateway's namespace when that component is authored at Phase 3. !!
|
|
#
|
|
# VALUE NOTES:
|
|
# - username: PIA (Private Internet Access) user, form pNNNNNNN.
|
|
# - password: PIA password.
|
|
# - Gluetun typically reads OPENVPN_USER / OPENVPN_PASSWORD (OpenVPN) or
|
|
# WireGuard credentials. Confirm the chosen protocol when wiring — the
|
|
# requirement says NOT TCP. The env var names / key names the Gluetun
|
|
# deployment expects may differ from username/password below; adjust to match
|
|
# the chosen protocol before encrypting.
|
|
# =============================================================================
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: pia-credentials
|
|
namespace: REPLACE-ME-PHASE-3-VPN-NAMESPACE
|
|
type: Opaque
|
|
stringData:
|
|
username: REPLACE-ME
|
|
password: REPLACE-ME
|