keyset to var/

This commit is contained in:
Martin Jurk
2026-05-11 16:25:08 +02:00
parent 0e245589bd
commit 7fd7f20733
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ if [ -n "$ENABLE_OMICS" ];then
OVERRIDE+=" -f ./$PROJECT/modules/itcc-omics-ingest.yaml" OVERRIDE+=" -f ./$PROJECT/modules/itcc-omics-ingest.yaml"
GENERATE_API_KEY="$(generate_simple_password 'omics')" GENERATE_API_KEY="$(generate_simple_password 'omics')"
PATIENTLIST_POSTGRES_PASSWORD=="$(generate_simple_password 'mainzelliste')" PATIENTLIST_POSTGRES_PASSWORD=="$(generate_simple_password 'mainzelliste')"
KEYSET=/etc/bridgehead/mainzelliste/keyset_siv.json KEYSET=/var/bridgehead/mainzelliste/keyset_siv.json
if [ ! -f "$KEYSET" ]; then if [ ! -f "$KEYSET" ]; then
mkdir -p "$(dirname "$KEYSET")" mkdir -p "$(dirname "$KEYSET")"
KEY_ID=$(($(openssl rand -hex 4 | sed 's/^/0x/') & 0x7FFFFFFF)) KEY_ID=$(($(openssl rand -hex 4 | sed 's/^/0x/') & 0x7FFFFFFF))
+2 -2
View File
@@ -57,7 +57,7 @@ services:
secrets: secrets:
- mainzelliste.docker.conf - mainzelliste.docker.conf
- source: symmetric_key - source: symmetric_key
target: /etc/resources/keys/symmetric_key.der target: /etc/resources/keys/symmetric_key.json
volumes: volumes:
patientlist-db-data: patientlist-db-data:
@@ -66,4 +66,4 @@ secrets:
file: /etc/bridgehead/mainzelliste/mainzelliste.docker.conf file: /etc/bridgehead/mainzelliste/mainzelliste.docker.conf
symmetric_key: symmetric_key:
file: /etc/bridgehead/mainzelliste/keyset_siv.json file: /var/bridgehead/mainzelliste/keyset_siv.json