fix(invidious): add HMAC key

Re: https://github.com/iv-org/invidious/issues/3540
This commit is contained in:
Rob Watson 2023-07-03 23:06:27 +02:00
parent 6643306918
commit 3173635b77
3 changed files with 8 additions and 0 deletions

View File

@ -88,6 +88,12 @@ spec:
name: invidious-credentials
key: database-url
optional: false
- name: INVIDIOUS_HMAC_KEY
valueFrom:
secretKeyRef:
name: invidious-credentials
key: hmac-key
optional: false
volumeMounts:
- mountPath: /invidious/config/config.yml
subPath: config.yml

View File

@ -67,6 +67,7 @@ secretGenerator:
- name: invidious-credentials
literals:
- database-url=postgresql://kemal:kemal@dev-db:5432/invidious
- hmac-key=fc93ecd912530fa278c8642cb16a2f86b76c228ce4b4b70a6e3107dfb57214ab
# Individual keys required by init-invidious-db:
- database-host=dev-db
- database-port=5432

View File

@ -64,6 +64,7 @@ secretGenerator:
files:
- database-url=secrets/invidious-database-url
- database-password=secrets/invidious-database-password
- hmac-key=secrets/invidious-hmac-key.txt
options:
labels:
app: invidious