Skip to content
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

invenio: better secret key and salts management #148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

egabancho
Copy link
Member

  • Adds missing salts to harden security.

  • Deprecates plain keys and forces to use secrets for them.

  • Automatically generates secret key and salts if no secret is provided.

charts/invenio/templates/_helpers.tpl Outdated Show resolved Hide resolved
charts/invenio/templates/_helpers.tpl Outdated Show resolved Hide resolved
* Adds missing salts to harden security.

* Deprecates plain keys and forces to use secrets for them.

* Automatically generates secret key and salts if no secret is provided.

{{- end }}

{{- if .Values.invenio.existing_secret}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{{- if .Values.invenio.existing_secret}}
{{- if .Values.invenio.existing_secret }}

*/}}
{{- define "invenio.secretName" -}}
{{- if .Values.invenio.existingSecret -}}
{{- print (tpl .Values.invenio.existingSecret .) -}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't the print statement redundant?

@lindhe
Copy link
Contributor

lindhe commented Dec 21, 2024

I've posted some final comments. After they are fixed I'll approve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants