Skip to content

DEVOPS-3557-pinned-cert-hash-creator#236

Open
imeliran wants to merge 2 commits into
mainfrom
DEVOPS-3557-pinned-cert-hash-creator
Open

DEVOPS-3557-pinned-cert-hash-creator#236
imeliran wants to merge 2 commits into
mainfrom
DEVOPS-3557-pinned-cert-hash-creator

Conversation

@imeliran

Copy link
Copy Markdown
Contributor

No description provided.

- name: SPRING_FLYWAY_SCHEMAS
value: {{ .Values.general.db_database }}
- name: LIGHTRUN_SECURITY_PINNED_CERT_HASH_FILE_PATH
value: "/p12/pinned-cert-hash"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think its better to export the path to a define block

readOnly: true
- name: p12
mountPath: /p12
command: ['sh', '-c', 'openssl x509 -in /tls/tls.crt -pubkey -noout | openssl pkey -pubin -outform DER | openssl dgst -sha256 | awk ''{print $NF}'' > /p12/pinned-cert-hash']

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think its better to export the path to a define block (same as in the env var)

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.

3 participants