Autogenerate secrets for feedback-agent

This commit is contained in:
DavidCroftDKFZ 2025-02-05 11:17:38 +01:00
parent 9977578aa5
commit 710092c020
3 changed files with 4 additions and 5 deletions

View File

@ -22,7 +22,7 @@ services:
BROKER_URL: ${ERIC_BROKER_URL} BROKER_URL: ${ERIC_BROKER_URL}
PROXY_ID: ${ERIC_PROXY_ID} PROXY_ID: ${ERIC_PROXY_ID}
APP_focus_KEY: ${ERIC_FOCUS_BEAM_SECRET_SHORT} APP_focus_KEY: ${ERIC_FOCUS_BEAM_SECRET_SHORT}
APP_feedback-agent_KEY: App1Secret APP_feedback-agent_KEY: ${FEEDBACK_AGENT_BEAM_SECRET}
PRIVKEY_FILE: /run/secrets/proxy.pem PRIVKEY_FILE: /run/secrets/proxy.pem
ALL_PROXY: http://forward_proxy:3128 ALL_PROXY: http://forward_proxy:3128
TLS_CA_CERTIFICATES_DIR: /conf/trusted-ca-certs TLS_CA_CERTIFICATES_DIR: /conf/trusted-ca-certs

View File

@ -18,12 +18,12 @@ services:
environment: environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://feedback-agent-db:5432/compose-postgres - SPRING_DATASOURCE_URL=jdbc:postgresql://feedback-agent-db:5432/compose-postgres
- SPRING_DATASOURCE_USERNAME=compose-postgres - SPRING_DATASOURCE_USERNAME=compose-postgres
- SPRING_DATASOURCE_PASSWORD=compose-postgres - SPRING_DATASOURCE_PASSWORD=${FEEDBACK_AGENT_DB_PASSWORD}
- SPRING_JPA_HIBERNATE_DDL_AUTO=update - SPRING_JPA_HIBERNATE_DDL_AUTO=update
- BEAM_PROXY_URI=http://beam-proxy-eric:8081 - BEAM_PROXY_URI=http://beam-proxy-eric:8081
- FEEDBACK_HUB_URL=http://feedback-hub-be:8071 - FEEDBACK_HUB_URL=http://feedback-hub-be:8071
- BLAZE_BASE_URL=http://blaze:8080/fhir - BLAZE_BASE_URL=http://blaze:8080/fhir
- FEEDBACK_AGENT_SECRET=App1Secret - FEEDBACK_AGENT_SECRET=${FEEDBACK_AGENT_BEAM_SECRET}
- FEEDBACK_AGENT_BEAM_ID=feedback-agent.${ERIC_PROXY_ID} - FEEDBACK_AGENT_BEAM_ID=feedback-agent.${ERIC_PROXY_ID}
- FEEDBACK_HUB_BEAM_ID=feedback-hub.feedback-central.${ERIC_BROKER_ID} - FEEDBACK_HUB_BEAM_ID=feedback-hub.feedback-central.${ERIC_BROKER_ID}
- EXPORTER_API_KEY=${EXPORTER_API_KEY} - EXPORTER_API_KEY=${EXPORTER_API_KEY}
@ -46,7 +46,7 @@ services:
container_name: feedback-agent-db container_name: feedback-agent-db
environment: environment:
- POSTGRES_USER=compose-postgres - POSTGRES_USER=compose-postgres
- POSTGRES_PASSWORD=compose-postgres - POSTGRES_PASSWORD=${FEEDBACK_AGENT_DB_PASSWORD}
# This is needed when you run both agent and hub locally in a test # This is needed when you run both agent and hub locally in a test
# environment. Not necessary in production, though it probably won't # environment. Not necessary in production, though it probably won't

View File

@ -32,7 +32,6 @@ services:
RETRY_COUNT: ${FOCUS_RETRY_COUNT} RETRY_COUNT: ${FOCUS_RETRY_COUNT}
EPSILON: 0.28 EPSILON: 0.28
depends_on: depends_on:
# - "beam-proxy"
- "beam-proxy" - "beam-proxy"
- "blaze" - "blaze"