Skip to content

[bitnami/common] Add global.security.allowEmptyPassword #32675

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

maxime1907
Copy link
Contributor

@maxime1907 maxime1907 commented Mar 28, 2025

Description of the change

Add an option global.security.allowEmptyPassword to bypass empty password verification checks when using external vaults/secrets that manages this part

Benefits

Creating via .Values.extraDeploy an ExternalSecret resource inside the bitnami release when upgrading from values based passwords to external vault secret based passwords

Possible drawbacks

None as it keeps backward compatibility if the field is not present

Applicable issues

None

Additional information

None

Checklist

  • Chart version bumped in Chart.yaml according to semver. This is not necessary when the changes only affect README.md files.
  • Variables are documented in the values.yaml and added to the README.md using readme-generator-for-helm
  • Title of the pull request follows this pattern [bitnami/<name_of_the_chart>] Descriptive title
  • All commits signed off and in agreement of Developer Certificate of Origin (DCO)

Signed-off-by: maxime1907 <19607336+maxime1907@users.noreply.github.com>
@maxime1907 maxime1907 force-pushed the feat/common-allow-empty-password branch from 992bffa to e696660 Compare March 28, 2025 16:46
@github-actions github-actions bot added the triage Triage is needed label Mar 28, 2025
@github-actions github-actions bot requested a review from javsalgar March 28, 2025 16:47
Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
Copy link

This Pull Request has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thank you for your contribution.

@github-actions github-actions bot added the stale 15 days without activity label Apr 13, 2025
Copy link

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Pull Request. Do not hesitate to reopen it later if necessary.

@bitnami-bot bitnami-bot added stale 15 days without activity and removed stale 15 days without activity labels Apr 19, 2025
@maxime1907
Copy link
Contributor Author

Any updates on this? @javsalgar

@javsalgar javsalgar removed stale 15 days without activity solved labels Apr 21, 2025
@javsalgar javsalgar reopened this Apr 21, 2025
@github-actions github-actions bot removed in-progress triage Triage is needed labels Apr 21, 2025
@github-actions github-actions bot removed the request for review from javsalgar April 21, 2025 07:10
@github-actions github-actions bot requested a review from migruiz4 April 21, 2025 07:10
Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
Copy link

github-actions bot commented May 7, 2025

This Pull Request has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thank you for your contribution.

@github-actions github-actions bot added the stale 15 days without activity label May 7, 2025
@migruiz4
Copy link
Member

migruiz4 commented May 7, 2025

Hi @maxime1907,
Could you please provide an usage example where this feature is used? Maybe a branch in your fork where we can see a real use case for this feature.

The helper common.errors.upgrade.passwords.empty is usually used alongside other helpers such as common.validations.values.mariadb.passwords.
It had a key role in the past before we implemented common.secrets.passwords.manage, since we previously tried to avoid the usage of the Helm lookup function.

For context, during upgrades, the helper common.secrets.passwords.manage will look for the existing (built-in) chart secret to recreate it without having to provide the passwords in the values, while during first installations it will use a randomly generated password unless the user provided one in the values.

I see two main inconveniences with this contribution:

  • Calling the value allowEmptyPassword would be inaccurate, because the charts won't be deployed with empty passwords when set.
  • What this PR does is skip the upgrade password check, but it does not prevent the chart from generating its built-in secret which could end up in different scenarios depending on the chart template:
    • The built-in Secret is recreated with a new random password, so the bootstrap password could be lost.
    • The deployment fails because the secret expects a password value that was not provided.

Additionally, in the benefits you mention:

Creating via .Values.extraDeploy an ExternalSecret resource inside the bitnami release when upgrading from values based passwords to external vault secret based passwords`

Isn't that already possible by using the existingSecret value?

@github-actions github-actions bot removed the stale 15 days without activity label May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants