zona-exclusion: stage Infisical-backed SMTP secret with key remap (3a)
InfisicalStaticSecret syncs shared /smtp-gmail -> zona-exclusion-secrets-infisical, template-remapping UPPER_SNAKE -> hyphenated lowercase smtp-user/smtp-pass to match the deployment secretKeyRef. Old secret stays live until 3c. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,29 @@
|
|||||||
|
apiVersion: secrets.infisical.com/v1beta1
|
||||||
|
kind: InfisicalStaticSecret
|
||||||
|
metadata:
|
||||||
|
name: zona-exclusion-secrets
|
||||||
|
namespace: zona-exclusion
|
||||||
|
spec:
|
||||||
|
# Shared, read-only machine identity (no write grant, no PushSecret).
|
||||||
|
# Source is the SHARED /smtp-gmail folder (same Gmail sender account as ghost-en).
|
||||||
|
# The deployment's secretKeyRef uses hyphenated lowercase keys (smtp-user/smtp-pass),
|
||||||
|
# so we TEMPLATE-remap the UPPER_SNAKE Infisical keys -> the lowercase keys.
|
||||||
|
infisicalAuthRef:
|
||||||
|
name: infisical-auth
|
||||||
|
namespace: infisical-operator
|
||||||
|
sources:
|
||||||
|
- projectId: 17e98e9d-70f5-43d1-8382-7da818dfcdd0 # project "homelab"
|
||||||
|
environmentSlug: prod
|
||||||
|
secretPath: /smtp-gmail
|
||||||
|
syncOptions:
|
||||||
|
refreshInterval: 60s
|
||||||
|
targets:
|
||||||
|
- kind: Secret
|
||||||
|
name: zona-exclusion-secrets-infisical # parallel name — old secret stays live until 3c
|
||||||
|
namespace: zona-exclusion
|
||||||
|
creationPolicy: Owner
|
||||||
|
template:
|
||||||
|
engineVersion: v1
|
||||||
|
data:
|
||||||
|
smtp-user: '{{ .SMTP_USER.Value }}'
|
||||||
|
smtp-pass: '{{ .SMTP_PASS.Value }}'
|
||||||
Reference in New Issue
Block a user