dbpassword value doesn't match sealed secret
Nobody has claimed this yet.
- Dominant language
- Go Template
- Stars
- 534
- Forks
- 314
- Avg merge
- 42m
- Merged PRs (30d)
- 1
Description
Hi,
I use the helm chart 3.5.0 with mariadb.
I try to use sealed secret to handle the mysql password with this configuration :
externalDatabase:
enabled: true
## Supported database engines: mysql or postgresql
type: mysql
## Database host
host: kubetest-mariadb:3306
## Database user
# user: nextcloud
## Database password
# password: nextcloud
## Database name
database: nextcloud
## Use a existing secret
existingSecret:
enabled: true
secretName: nextcloudsecrets
usernameKey: db_user
passwordKey: db_password
But when i check the config.php in the pod, i have a dbpassword value completely different.
This is my sealed secret :
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
creationTimestamp: null
name: nextcloudsecrets
namespace: nextcloud
spec:
encryptedData:
db_password: XXXXXXXXXX
db_user: XXXXXXXXXX
template:
data: null
metadata:
creationTimestamp: null
name: nextcloudsecrets
namespace: nextcloud
I don't understand what i missed. Can you help me on that ?
Thanks!
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 chart's externalDatabase.existingSecret configuration and inspect how db_password is propagated into config.php; reproduce the issue with the supplied Helm values and SealedSecret. Done means the generated Nextcloud configuration uses the secret's db_password, or the missing configuration is documented clearly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- helm, kubernetes, mariadb
- Domain
- databases, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 48/100