flux create secret receiver command
Introduced 2026-06-30 · score 0.94
HOW TO USE IT
When creating a Receiver webhook secret, run `flux create secret receiver` with a name, receiver type, and webhook hostname. For GCR receivers, also provide the required service account email claim.
flux create secret receiver <name> --namespace=<namespace> --type=github --hostname=<hostname> --exportflux create secret receiver <name> --namespace=<namespace> --type=gcr --hostname=<hostname> --email-claim=<service-account-email> --exportWHY THIS HELPS
Create a Receiver secret from the Flux CLI.
REQUIREMENTS AND LIMITATIONS
- Version: v2.9.0
- name (required): Receiver secret name positional argument.
- --type (required): Receiver type: generic, generic-hmac, github, gitlab, bitbucket, harbor, dockerhub, quay, gcr, nexus, acr, or cdevents.
- --hostname (required): Hostname used to compute the webhook URL.
- --email-claim: IAM service account email; required when type is gcr.
- --audience-claim: Custom OIDC token audience for GCR; defaults to the webhook URL.
- --token: Webhook validation token; auto-generated if omitted.
- --namespace: Secret namespace; defaults to flux-system.
- --export: Print generated YAML to stdout.
FIRST-PARTY EVIDENCE
- https://github.com/fluxcd/flux2/releases/tag/v2.9.0
- https://v2-9.docs.fluxcd.io/flux/cmd/flux_create_secret_receiver/
Check the installed version and the source before using it. Entry JSON