How to set up a listener with GCP PuBsub to rotate secrets
reloader
will listen for audit log events from a given GCP PubSub, and, based on pattern matching,
will trigger an ExternalSecret
reconciliation if that object queries the GCP Secret Manager key that had its version updated.
The diagram below gives an overview of the setup:
reloader
reloader
in your clusterkind
cluster for a quick onboarding experience - use workload identity in production environments.reloader
within your cluster.
[Optional] Enable Service APIs
Create a Topic and a Subscription on GCP Pubsub
Create a Log router for the PubSub Topic
Create Service Account & Permissions (Service Account Keys)
Create Service Account & Permissions (Workload Identity)
reloader
reloader
first.AddSecretVersion
message will automatically update your Kubernetes Secret
values!