redpanda-data / redpanda-data/redpanda-operator
ArgoCD Sync Fails Due to Immutable redpanda-bootstrap-user Secret
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 84
- Forks
- 32
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 104
Description
Summary
ArgoCD syncs are repeatedly failing because the Secret redpanda-bootstrap-user is marked as immutable, but the Redpanda Helm chart attempts to recreate or modify it on each reconciliation.
Error Observed
argo error
Secret "redpanda-bootstrap-user" is invalid:
data: Forbidden: field is immutable when `immutable` is set.
Retrying attempt #3
secret diff
apiVersion: v1
--
data:
- password: ++++++++++++
+ password: ++++++++
immutable: true
kind: Secret
metadata:
annotations:
This causes the ArgoCD application to enter a degraded / sync error state.
Environment
Argocd: 2.13.9
Redpanda operator helm chart: 25.3.2
values.yaml
...
auth:
sasl:
enabled: true
secretRef: "redpanda-users"
users:
- name: admin
password: admin123
mechanism: SCRAM-SHA-256
bootstrapUser:
mechanism: SCRAM-SHA-256
...
Expected behavior
The bootstrap secret should not be re-applied or mutated once created.
Actual behavior
The bootstrap user secret presents a diff in the secret value causing argocd to fail, preventing the configuration and sync of the rest of the resources, after the initial first sync.
Attempted fixes
I have tried adding additional argocd annotations without any luck
annotations:
argocd.argoproj.io/compare-options: IgnoreExtraneous
argocd.argoproj.io/sync-options: Prune=false
Is there a known workaround for this?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the values.yaml configuration and inspect how the Redpanda Helm chart renders the redpanda-bootstrap-user Secret across repeated ArgoCD syncs. Reproduce the immutable-field diff with the listed chart and ArgoCD versions, then verify that the bootstrap Secret is no longer reapplied or mutated while the remaining resources sync successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- helm, kubernetes
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100