mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-11-16 14:29:09 +01:00
ghost-blog: use a CA bundle without the compromised eMudhra roots
Mount patched-ca-bundle (see ca-bundle/) over /etc/ssl/certs so it stops trusting the compromised eMudhra intermediates (https://emudhra.we-have-a-problem.com). Node uses its built-in roots, so also switch it to OpenSSL's store with --use-openssl-ca.
This commit is contained in:
1 parent
345055e3e6
commit
746cd1283e
1 file changed
+13
@@ -37,6 +37,9 @@ spec:
|
|||||||
- name: tmp
|
- name: tmp
|
||||||
emptyDir:
|
emptyDir:
|
||||||
sizeLimit: 64Mi
|
sizeLimit: 64Mi
|
||||||
|
- name: patched-ca-bundle
|
||||||
|
configMap:
|
||||||
|
name: patched-ca-bundle
|
||||||
|
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: permissions-fix
|
- name: permissions-fix
|
||||||
@@ -136,6 +139,13 @@ spec:
|
|||||||
key: MYSQL_DATABASE
|
key: MYSQL_DATABASE
|
||||||
- name: url
|
- name: url
|
||||||
value: https://blog.rubenhensen.nl
|
value: https://blog.rubenhensen.nl
|
||||||
|
# Node trusts its built-in roots, which still include the ones above
|
||||||
|
# the compromised eMudhra intermediates. Use patched-ca-bundle through
|
||||||
|
# OpenSSL instead until Node ships a fix.
|
||||||
|
- name: NODE_OPTIONS
|
||||||
|
value: --use-openssl-ca
|
||||||
|
- name: SSL_CERT_FILE
|
||||||
|
value: /etc/ssl/certs/ca-certificates.crt
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: ghost-mail-config
|
name: ghost-mail-config
|
||||||
@@ -153,6 +163,9 @@ spec:
|
|||||||
- name: tmp
|
- name: tmp
|
||||||
mountPath: /tmp
|
mountPath: /tmp
|
||||||
readOnly: false
|
readOnly: false
|
||||||
|
- name: patched-ca-bundle
|
||||||
|
mountPath: /etc/ssl/certs
|
||||||
|
readOnly: true
|
||||||
securityContext:
|
securityContext:
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
|
|||||||
Reference in new issue
Block a user