mirror of
https://github.com/plankanban/planka.git
synced 2026-02-25 03:14:50 +03:00
[Bug]: Helm Chart Existing Secret Admin Account Support #661
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @h00lig4n on GitHub (Mar 5, 2025).
Where is the problem occurring?
I encountered the problem while using the application (Frontend)
What browsers are you seeing the problem on?
Brave, Chrome
Current behaviour
Hi,
This might be an inquiry, bug report or feature request...
Firstly, I can deploy Planka fine using admin_email in values.yaml, as per docs. It does state run with admin credentials parms in chart first and then remove from chart.
For both security and Gitops I would prefer to deploy a secret (sealed) separately and don't want to put admin creds into the valuesfile.
I'm trying to understand if this should work, (here's what it states in the chart:
I not sure how existingAdminCredsSecret is used if it's not for this scenario? Should this work or is it unsupported?
The following setup gives me a running Planka instance with db schema, but no admin user in the db.
Which I reference through values.yaml
Desired behaviour
Installation should try and create/update admin user from Secret when provided in existingAdminCredsSecret.
Steps to reproduce
Refer to current behavior. Running on K3S, Helm via ArgoCD.
Other information
No response
@h00lig4n commented on GitHub (Mar 5, 2025):
Update:
I set admin_email and admin_name in values.yaml as well as specify secret.
It takes username and password from the secret, and admin_email and admin_name from the admin parameters :).
I guess this is what it actually states in the documentation, but it's perhaps a little confusing.
@justmitch123 commented on GitHub (Mar 6, 2025):
Hey @h00lig4n , I find the best documentation for helm tends to be reading the raw charts.
https://github.com/plankanban/planka/blob/master/charts/planka/templates/deployment.yaml#L126-L136 is where the secrets get used. So in this sense,
existingAdminCredsSecretis the name of the secret that you have created (in your caseplanka) and the admin username and password will be set to the contents of the secret with the keys ofusername&passwordThere are a fair few secrets in this file that work similarly so that you can create the secret object, as you have, and the planka chart can consume them.
@h00lig4n commented on GitHub (Mar 6, 2025):
Hi,
Thanks for the response, and good advice. I'll close this. It works as posted in my last comment.
I guess the only observation is that you need to specify admin_email and admin_name in the values for it to create the account.
It does mean I need to check in a bogus email into git, which is not a biggy.
Speculating this might be an issue if configuring OIDC and needing a real email, although I haven't looked at that config yet so just speculating.