Zone secrets
Every Zone gets its own ClusterSecretStore, zone-<name>, that reads only the secrets tagged for that Zone, and only from that Zone's Namespaces. It is the Zone-scoped counterpart to the cluster-wide store in Create a secret. Same External Secrets workflow, far tighter blast radius.
A team deploying into a Zone references zone-<name> in their ExternalSecrets and can never read another Zone's secrets, even by name.
The platform uses the same per-Zone store for what it provisions: a database's master-user credentials are read through the Zone's own zone-<name> store, so they stay within the Zone's blast radius too. (Outside a Zone, the platform falls back to the cluster-wide store.)
How isolation works
A secret must pass both gates:
- Tag: the AWS secret must be tagged
entigo:zone=<name>. Other tags, or none, are denied. - Namespace: the store only works from the Zone's Namespaces (
tenancy.entigo.com/zone=<name>).
Secrets under the kms/config key decrypt automatically; the default aws/secretsmanager key needs nothing.
Prerequisites
No setup needed: the Zone store is created for every Zone that has the external-secrets module installed. To read secrets encrypted with the kms/config key, the environment also needs the aws/kms module.
Zones run on AWS and Oracle only, not Azure or Google. The Zone store uses AWS Secrets Manager, so it is an AWS-only feature; on Oracle no Zone store is created.
1. Check the store exists
$ kubectl get clustersecretstore zone-teama
NAME AGE STATUS CAPABILITIES READY
zone-teama 1h Valid ReadWrite True
READY True means External Secrets assumed the Zone's role. Missing? Check that the external-secrets module is installed (see Prerequisites).
2. Create a secret, tagged for the Zone
The Zone store is read-only, so create the secret in AWS (Console, CLI, or the cluster-wide store). It must be tagged entigo:zone=<name>; encrypt it with the kms/config key.
aws secretsmanager create-secret \
--name teama-example \
--secret-string '{"EXAMPLE_PASSWORD":"verySecret123"}' \
--kms-key-id alias/<your-kms-prefix>/config \
--tags Key=entigo:zone,Value=teama
3. Read it with an ExternalSecret
From a Namespace that belongs to the Zone, point an ExternalSecret at the Zone store:
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: teama-example
spec:
refreshInterval: 5m
dataFrom:
- extract:
key: teama-example # the AWS Secrets Manager secret
secretStoreRef:
kind: ClusterSecretStore
name: zone-teama # the Zone store
target:
name: teama-example # the Kubernetes Secret to create
creationPolicy: Owner
4. Verify
$ kubectl get externalsecret teama-example
NAME STORE REFRESH STATUS READY
teama-example zone-teama 5m SecretSynced True
$ kubectl get secret teama-example
NAME TYPE DATA AGE
teama-example Opaque 1 10s
SecretSynced means the Zone role read and decrypted the secret. Mount it like in Create a secret.
Troubleshooting
| Symptom | Cause / fix |
|---|---|
kubectl get clustersecretstore zone-<name> returns nothing | The external-secrets module is not installed. See Prerequisites. |
ExternalSecret stuck SecretSyncedError, "could not get secret data" | The AWS secret is missing the entigo:zone=<name> tag, or is tagged for another Zone. |
| The store is refused in one Namespace but works in another | The Namespace is not in the Zone; the store's namespaceSelector only matches the Zone's Namespaces. |
Sync fails only for secrets under kms/config | The environment has no KMS config key wired, so the Zone role lacks kms:Decrypt. Add the aws/kms module. |
What the platform creates per Zone
For each Zone, platform-apis generates:
- ClusterSecretStore
zone-<name>: AWS Secrets Manager provider, JWT (IRSA) auth,namespaceSelectorontenancy.entigo.com/zone=<name>. - ServiceAccount
zone-<name>: in the external-secrets Namespace, annotated with the Zone role ARN (IRSA). - IAM role
<name>-secretswith a scoped policy:secretsmanager:GetSecretValue(and friends) conditioned onaws:ResourceTag/entigo:zone=<name>.kms:Decrypton thekms/configkey ARN only, conditioned onkms:ViaService=secretsmanager.<region>.amazonaws.com, added only when the environment has a config key.
The kms/config key policy must also allow the decrypt (KMS double-gating). Infralib's default policy already allows account principals to decrypt via Secrets Manager; the scoped IAM grant keeps the Zone working if that policy is tightened.