Some checks failed
ci/woodpecker/push/default Pipeline failed
The 2026-06-22 external-secrets v1 migration made the ESO controller the
server-side-apply owner of .spec.refreshInterval on every ExternalSecret, so any
stack defining one via kubernetes_manifest fails `terraform apply` with a
field-manager conflict the next time it's applied (instagram-poster + grafana hit
this on 2026-06-24; it was latent across the whole fleet). Add
field_manager { force_conflicts = true } to all 101 remaining ExternalSecret
manifests across 70 stacks, matching the fix already on grafana / woodpecker /
traefik / k8s-version-upgrade / instagram-poster. TF and ESO set the same value,
so it's stable (no perpetual drift). Defuses the landmine before each stack's
next apply trips it.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
43 lines
1.3 KiB
HCL
43 lines
1.3 KiB
HCL
# SMTP password for Authentik's signup-verification + recovery email (tripit
|
|
# ADR-0020). Synced from Vault secret/authentik.smtp_password into the authentik
|
|
# namespace as the `authentik-email` Secret, referenced by
|
|
# AUTHENTIK_EMAIL__PASSWORD in values.yaml (server.env + worker.env). The sender
|
|
# account is noreply@viktorbarzin.me (a mailserver SASL account); host/port/from
|
|
# are non-secret and live in values.yaml. The reloader annotation rolls the
|
|
# authentik pods if the password ever changes.
|
|
resource "kubernetes_manifest" "authentik_email_secret" {
|
|
field_manager {
|
|
force_conflicts = true
|
|
}
|
|
manifest = {
|
|
apiVersion = "external-secrets.io/v1"
|
|
kind = "ExternalSecret"
|
|
metadata = {
|
|
name = "authentik-email"
|
|
namespace = "authentik"
|
|
}
|
|
spec = {
|
|
refreshInterval = "1h"
|
|
secretStoreRef = {
|
|
name = "vault-kv"
|
|
kind = "ClusterSecretStore"
|
|
}
|
|
target = {
|
|
name = "authentik-email"
|
|
template = {
|
|
metadata = {
|
|
annotations = {
|
|
"reloader.stakater.com/match" = "true"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
data = [
|
|
{
|
|
secretKey = "AUTHENTIK_EMAIL__PASSWORD"
|
|
remoteRef = { key = "authentik", property = "smtp_password" }
|
|
},
|
|
]
|
|
}
|
|
}
|
|
}
|