[job-hunter] Switch ExternalSecret to explicit UPPERCASE data mappings
Replaces dataFrom.extract with per-key `data` entries so the Secret keys in K8s (and therefore env vars in the pod) are always UPPERCASE: WEBHOOK_BEARER_TOKEN, CDIO_API_KEY, SMTP_USERNAME, SMTP_PASSWORD, DIGEST_TO_ADDRESS, DIGEST_FROM_ADDRESS. Vault KV keys at secret/job-hunter stay lowercase (webhook_bearer_token etc.). Refs: code-snp Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
9f9d7d10ff
commit
c9d6343a9b
1 changed files with 26 additions and 5 deletions
|
|
@ -61,11 +61,32 @@ resource "kubernetes_manifest" "external_secret" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dataFrom = [{
|
data = [
|
||||||
extract = {
|
{
|
||||||
key = "job-hunter"
|
secretKey = "WEBHOOK_BEARER_TOKEN"
|
||||||
}
|
remoteRef = { key = "job-hunter", property = "webhook_bearer_token" }
|
||||||
}]
|
},
|
||||||
|
{
|
||||||
|
secretKey = "CDIO_API_KEY"
|
||||||
|
remoteRef = { key = "job-hunter", property = "cdio_api_key" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
secretKey = "SMTP_USERNAME"
|
||||||
|
remoteRef = { key = "job-hunter", property = "smtp_username" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
secretKey = "SMTP_PASSWORD"
|
||||||
|
remoteRef = { key = "job-hunter", property = "smtp_password" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
secretKey = "DIGEST_TO_ADDRESS"
|
||||||
|
remoteRef = { key = "job-hunter", property = "digest_to_address" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
secretKey = "DIGEST_FROM_ADDRESS"
|
||||||
|
remoteRef = { key = "job-hunter", property = "digest_from_address" }
|
||||||
|
},
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
depends_on = [kubernetes_namespace.job_hunter]
|
depends_on = [kubernetes_namespace.job_hunter]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue