mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-11-16 06:29:09 +01:00
whishper: 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). whishper also gets --use-openssl-ca for Node, and both point requests at the bundle instead of certifi.
This commit is contained in:
1 parent
767facc5e2
commit
de7ca770a0
2 files changed
+27
No files matched your search
@@ -45,7 +45,16 @@ spec:
|
|||||||
name: translate-claim0
|
name: translate-claim0
|
||||||
- mountPath: /home/libretranslate/.local/cache
|
- mountPath: /home/libretranslate/.local/cache
|
||||||
name: translate-claim1
|
name: translate-claim1
|
||||||
|
- mountPath: /etc/ssl/certs
|
||||||
|
name: patched-ca-bundle
|
||||||
|
readOnly: true
|
||||||
env:
|
env:
|
||||||
|
# Trust store without the compromised eMudhra intermediates, see
|
||||||
|
# ca-bundle/. requests would otherwise use certifi.
|
||||||
|
- name: SSL_CERT_FILE
|
||||||
|
value: /etc/ssl/certs/ca-certificates.crt
|
||||||
|
- name: REQUESTS_CA_BUNDLE
|
||||||
|
value: /etc/ssl/certs/ca-certificates.crt
|
||||||
- name: DB_PASS
|
- name: DB_PASS
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
@@ -77,6 +86,9 @@ spec:
|
|||||||
name: env
|
name: env
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
volumes:
|
volumes:
|
||||||
|
- name: patched-ca-bundle
|
||||||
|
configMap:
|
||||||
|
name: patched-ca-bundle
|
||||||
- name: translate-claim0
|
- name: translate-claim0
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: translate-claim0
|
claimName: translate-claim0
|
||||||
|
|||||||
@@ -61,6 +61,15 @@ spec:
|
|||||||
name: env
|
name: env
|
||||||
- name: WHISPER_MODELS_DIR
|
- name: WHISPER_MODELS_DIR
|
||||||
value: /app/models
|
value: /app/models
|
||||||
|
# Trust store without the compromised eMudhra intermediates, see
|
||||||
|
# ca-bundle/. Node needs --use-openssl-ca to stop using its
|
||||||
|
# built-in roots; requests would otherwise use certifi.
|
||||||
|
- name: NODE_OPTIONS
|
||||||
|
value: --use-openssl-ca
|
||||||
|
- name: SSL_CERT_FILE
|
||||||
|
value: /etc/ssl/certs/ca-certificates.crt
|
||||||
|
- name: REQUESTS_CA_BUNDLE
|
||||||
|
value: /etc/ssl/certs/ca-certificates.crt
|
||||||
image: pluja/whishper:latest
|
image: pluja/whishper:latest
|
||||||
name: whishper
|
name: whishper
|
||||||
ports:
|
ports:
|
||||||
@@ -71,8 +80,14 @@ spec:
|
|||||||
name: whishper-claim0
|
name: whishper-claim0
|
||||||
- mountPath: /var/log/whishper
|
- mountPath: /var/log/whishper
|
||||||
name: whishper-claim1
|
name: whishper-claim1
|
||||||
|
- mountPath: /etc/ssl/certs
|
||||||
|
name: patched-ca-bundle
|
||||||
|
readOnly: true
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
volumes:
|
volumes:
|
||||||
|
- name: patched-ca-bundle
|
||||||
|
configMap:
|
||||||
|
name: patched-ca-bundle
|
||||||
- name: whishper-claim0
|
- name: whishper-claim0
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: whishper-claim0
|
claimName: whishper-claim0
|
||||||
|
|||||||
Reference in new issue
Block a user