3장. Configure webhook secrets for Git providers
You can configure webhook secrets for Git providers declaratively by using the Argo CD custom resource (CR). This allows you to manage webhook credentials alongside your GitOps configuration instead of manually updating the argocd-secret secret.
3.1. Declarative webhook secrets for Git providers 링크 복사링크가 클립보드에 복사되었습니다!
Argo CD uses webhook secrets to validate incoming webhook requests from Git providers. You can configure webhook secrets declaratively by using the spec.webhookSecrets field in the Argo CD custom resource (CR).
Using declarative webhook secrets provides the following benefits:
- Manage webhook secrets together with Argo CD configuration
- Integrate with Kubernetes secret management tools, such as Sealed Secrets or External Secrets Operator
-
Simplify operations by allowing the Red Hat OpenShift GitOps Operator to synchronize referenced secret values to the
argocd-secretsecret -
Configure webhook secrets for multiple Git providers in a single
ArgoCDCR
When you configure spec.webhookSecrets, the Red Hat OpenShift GitOps Operator automatically populates the required keys in the argocd-secret secret that Argo CD uses internally.
The referenced Secret resource must exist in the same namespace as the Argo CD CR. Cross-namespace secret references are not supported.
The following Git providers are supported for declarative webhook secret configuration:
| Provider | Field in spec.webhookSecrets | Required secret reference |
|---|---|---|
| GitHub |
|
|
| GitLab |
|
|
| Bitbucket Cloud |
|
|
| Bitbucket Server |
|
|
| Gogs |
|
|
| Azure DevOps |
|
|
When spec.webhookSecrets is configured, the Red Hat OpenShift GitOps Operator synchronizes webhook secret values only for the declared providers. Webhook keys for providers that are not declared in spec.webhookSecrets might be removed from the argocd-secret secret.
Do not store plain-text secrets in Git repositories. Use secret management solutions, such as sealed secrets or external secrets Operator, to manage sensitive data securely.