Skip to content

Commit

Permalink
fix: Add CLIENTS_SECURITY_PROXY_AUTH_HOST env var
Browse files Browse the repository at this point in the history
Fixes #484. Add CLIENTS_SECURITY_PROXY_AUTH_HOST env var with security enabled.

Signed-off-by: Lindsey Cheng <beckysocute@gmail.com>
  • Loading branch information
lindseysimple committed Jan 21, 2025
1 parent feff445 commit 71694cb
Show file tree
Hide file tree
Showing 11 changed files with 45 additions and 20 deletions.
5 changes: 5 additions & 0 deletions compose-builder/add-security.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# /*******************************************************************************
# * Copyright 2024 Intel Corporation.
# * Copyright 2025 IOTech Ltd
# *
# * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# * in compliance with the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -124,6 +125,8 @@ services:
env_file:
- common-security.env
- common-sec-stage-gate.env
environment:
CLIENTS_SECURITY_PROXY_AUTH_HOST: security-proxy-auth
volumes:
- edgex-init:/edgex-init:ro
- /tmp/edgex/secrets/core-keeper:/tmp/edgex/secrets/core-keeper:ro,z
Expand Down Expand Up @@ -200,6 +203,8 @@ services:
env_file:
- common-security.env
- common-sec-stage-gate.env
environment:
ALL_SERVICES_CLIENTS_SECURITY_PROXY_AUTH_HOST: security-proxy-auth
entrypoint: ["/edgex-init/ready_to_run_wait_install.sh"]
command: /entrypoint.sh /core-common-config-bootstrapper --registry ${CP_FLAGS}
volumes:
Expand Down
6 changes: 4 additions & 2 deletions docker-compose-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ services:
entrypoint:
- /edgex-init/ready_to_run_wait_install.sh
environment:
ALL_SERVICES_CLIENTS_SECURITY_PROXY_AUTH_HOST: security-proxy-auth
ALL_SERVICES_DATABASE_HOST: edgex-postgres
ALL_SERVICES_MESSAGEBUS_AUTHMODE: usernamepassword
ALL_SERVICES_MESSAGEBUS_HOST: edgex-mqtt-broker
Expand Down Expand Up @@ -342,6 +343,7 @@ services:
condition: service_started
required: true
environment:
CLIENTS_SECURITY_PROXY_AUTH_HOST: security-proxy-auth
DATABASE_HOST: edgex-postgres
EDGEX_SECURITY_SECRET_STORE: "true"
MESSAGEBUS_AUTHMODE: usernamepassword
Expand Down Expand Up @@ -888,7 +890,7 @@ services:
deploy:
resources:
limits:
memory: "6353502339072"
memory: "6353435230208"
entrypoint:
- /edgex-init/secretstore_wait_install.sh
environment:
Expand All @@ -912,7 +914,7 @@ services:
STAGEGATE_WAITFOR_TIMEOUT: 60s
hostname: edgex-secret-store
image: openbao/openbao:2.1
memswap_limit: "6353502339072"
memswap_limit: "6353435230208"
networks:
edgex-network: null
ports:
Expand Down
6 changes: 4 additions & 2 deletions docker-compose-with-app-sample-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ services:
entrypoint:
- /edgex-init/ready_to_run_wait_install.sh
environment:
ALL_SERVICES_CLIENTS_SECURITY_PROXY_AUTH_HOST: security-proxy-auth
ALL_SERVICES_DATABASE_HOST: edgex-postgres
ALL_SERVICES_MESSAGEBUS_AUTHMODE: usernamepassword
ALL_SERVICES_MESSAGEBUS_HOST: edgex-mqtt-broker
Expand Down Expand Up @@ -419,6 +420,7 @@ services:
condition: service_started
required: true
environment:
CLIENTS_SECURITY_PROXY_AUTH_HOST: security-proxy-auth
DATABASE_HOST: edgex-postgres
EDGEX_SECURITY_SECRET_STORE: "true"
MESSAGEBUS_AUTHMODE: usernamepassword
Expand Down Expand Up @@ -965,7 +967,7 @@ services:
deploy:
resources:
limits:
memory: "6353502339072"
memory: "6353435230208"
entrypoint:
- /edgex-init/secretstore_wait_install.sh
environment:
Expand All @@ -989,7 +991,7 @@ services:
STAGEGATE_WAITFOR_TIMEOUT: 60s
hostname: edgex-secret-store
image: openbao/openbao:2.1
memswap_limit: "6353502339072"
memswap_limit: "6353435230208"
networks:
edgex-network: null
ports:
Expand Down
6 changes: 4 additions & 2 deletions docker-compose-with-app-sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ services:
entrypoint:
- /edgex-init/ready_to_run_wait_install.sh
environment:
ALL_SERVICES_CLIENTS_SECURITY_PROXY_AUTH_HOST: security-proxy-auth
ALL_SERVICES_DATABASE_HOST: edgex-postgres
ALL_SERVICES_MESSAGEBUS_AUTHMODE: usernamepassword
ALL_SERVICES_MESSAGEBUS_HOST: edgex-mqtt-broker
Expand Down Expand Up @@ -419,6 +420,7 @@ services:
condition: service_started
required: true
environment:
CLIENTS_SECURITY_PROXY_AUTH_HOST: security-proxy-auth
DATABASE_HOST: edgex-postgres
EDGEX_SECURITY_SECRET_STORE: "true"
MESSAGEBUS_AUTHMODE: usernamepassword
Expand Down Expand Up @@ -965,7 +967,7 @@ services:
deploy:
resources:
limits:
memory: "6353502339072"
memory: "6353435230208"
entrypoint:
- /edgex-init/secretstore_wait_install.sh
environment:
Expand All @@ -989,7 +991,7 @@ services:
STAGEGATE_WAITFOR_TIMEOUT: 60s
hostname: edgex-secret-store
image: openbao/openbao:2.1
memswap_limit: "6353502339072"
memswap_limit: "6353435230208"
networks:
edgex-network: null
ports:
Expand Down
6 changes: 4 additions & 2 deletions docker-compose-zero-trust-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ services:
entrypoint:
- /edgex-init/ready_to_run_wait_install.sh
environment:
ALL_SERVICES_CLIENTS_SECURITY_PROXY_AUTH_HOST: security-proxy-auth
ALL_SERVICES_DATABASE_HOST: edgex-postgres
ALL_SERVICES_MESSAGEBUS_AUTHMODE: usernamepassword
ALL_SERVICES_MESSAGEBUS_HOST: edgex-mqtt-broker
Expand Down Expand Up @@ -335,6 +336,7 @@ services:
condition: service_started
required: true
environment:
CLIENTS_SECURITY_PROXY_AUTH_HOST: security-proxy-auth
DATABASE_HOST: edgex-postgres
EDGEX_SECURITY_SECRET_STORE: "true"
MESSAGEBUS_AUTHMODE: usernamepassword
Expand Down Expand Up @@ -808,7 +810,7 @@ services:
deploy:
resources:
limits:
memory: "6353502339072"
memory: "6353435230208"
entrypoint:
- /edgex-init/secretstore_wait_install.sh
environment:
Expand All @@ -832,7 +834,7 @@ services:
STAGEGATE_WAITFOR_TIMEOUT: 60s
hostname: edgex-secret-store
image: openbao/openbao:2.1
memswap_limit: "6353502339072"
memswap_limit: "6353435230208"
networks:
edgex-network: null
ports:
Expand Down
6 changes: 4 additions & 2 deletions docker-compose-zero-trust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ services:
entrypoint:
- /edgex-init/ready_to_run_wait_install.sh
environment:
ALL_SERVICES_CLIENTS_SECURITY_PROXY_AUTH_HOST: security-proxy-auth
ALL_SERVICES_DATABASE_HOST: edgex-postgres
ALL_SERVICES_MESSAGEBUS_AUTHMODE: usernamepassword
ALL_SERVICES_MESSAGEBUS_HOST: edgex-mqtt-broker
Expand Down Expand Up @@ -335,6 +336,7 @@ services:
condition: service_started
required: true
environment:
CLIENTS_SECURITY_PROXY_AUTH_HOST: security-proxy-auth
DATABASE_HOST: edgex-postgres
EDGEX_SECURITY_SECRET_STORE: "true"
MESSAGEBUS_AUTHMODE: usernamepassword
Expand Down Expand Up @@ -808,7 +810,7 @@ services:
deploy:
resources:
limits:
memory: "6353502339072"
memory: "6353435230208"
entrypoint:
- /edgex-init/secretstore_wait_install.sh
environment:
Expand All @@ -832,7 +834,7 @@ services:
STAGEGATE_WAITFOR_TIMEOUT: 60s
hostname: edgex-secret-store
image: openbao/openbao:2.1
memswap_limit: "6353502339072"
memswap_limit: "6353435230208"
networks:
edgex-network: null
ports:
Expand Down
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ services:
entrypoint:
- /edgex-init/ready_to_run_wait_install.sh
environment:
ALL_SERVICES_CLIENTS_SECURITY_PROXY_AUTH_HOST: security-proxy-auth
ALL_SERVICES_DATABASE_HOST: edgex-postgres
ALL_SERVICES_MESSAGEBUS_AUTHMODE: usernamepassword
ALL_SERVICES_MESSAGEBUS_HOST: edgex-mqtt-broker
Expand Down Expand Up @@ -342,6 +343,7 @@ services:
condition: service_started
required: true
environment:
CLIENTS_SECURITY_PROXY_AUTH_HOST: security-proxy-auth
DATABASE_HOST: edgex-postgres
EDGEX_SECURITY_SECRET_STORE: "true"
MESSAGEBUS_AUTHMODE: usernamepassword
Expand Down Expand Up @@ -888,7 +890,7 @@ services:
deploy:
resources:
limits:
memory: "6353502339072"
memory: "6353435230208"
entrypoint:
- /edgex-init/secretstore_wait_install.sh
environment:
Expand All @@ -912,7 +914,7 @@ services:
STAGEGATE_WAITFOR_TIMEOUT: 60s
hostname: edgex-secret-store
image: openbao/openbao:2.1
memswap_limit: "6353502339072"
memswap_limit: "6353435230208"
networks:
edgex-network: null
ports:
Expand Down
6 changes: 4 additions & 2 deletions taf/docker-compose-taf-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,7 @@ services:
entrypoint:
- /edgex-init/ready_to_run_wait_install.sh
environment:
ALL_SERVICES_CLIENTS_SECURITY_PROXY_AUTH_HOST: security-proxy-auth
ALL_SERVICES_DATABASE_HOST: edgex-postgres
ALL_SERVICES_MESSAGEBUS_AUTHMODE: usernamepassword
ALL_SERVICES_MESSAGEBUS_HOST: edgex-mqtt-broker
Expand Down Expand Up @@ -808,6 +809,7 @@ services:
condition: service_started
required: true
environment:
CLIENTS_SECURITY_PROXY_AUTH_HOST: security-proxy-auth
DATABASE_HOST: edgex-postgres
EDGEX_SECURITY_SECRET_STORE: "true"
MESSAGEBUS_AUTHMODE: usernamepassword
Expand Down Expand Up @@ -1615,7 +1617,7 @@ services:
deploy:
resources:
limits:
memory: "6353502339072"
memory: "6353435230208"
entrypoint:
- /edgex-init/secretstore_wait_install.sh
environment:
Expand All @@ -1639,7 +1641,7 @@ services:
STAGEGATE_WAITFOR_TIMEOUT: 60s
hostname: edgex-secret-store
image: openbao/openbao:2.1
memswap_limit: "6353502339072"
memswap_limit: "6353435230208"
networks:
edgex-network: null
ports:
Expand Down
6 changes: 4 additions & 2 deletions taf/docker-compose-taf-perf-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ services:
entrypoint:
- /edgex-init/ready_to_run_wait_install.sh
environment:
ALL_SERVICES_CLIENTS_SECURITY_PROXY_AUTH_HOST: security-proxy-auth
ALL_SERVICES_DATABASE_HOST: edgex-postgres
ALL_SERVICES_MESSAGEBUS_AUTHMODE: usernamepassword
ALL_SERVICES_MESSAGEBUS_HOST: edgex-mqtt-broker
Expand Down Expand Up @@ -419,6 +420,7 @@ services:
condition: service_started
required: true
environment:
CLIENTS_SECURITY_PROXY_AUTH_HOST: security-proxy-auth
DATABASE_HOST: edgex-postgres
EDGEX_SECURITY_SECRET_STORE: "true"
MESSAGEBUS_AUTHMODE: usernamepassword
Expand Down Expand Up @@ -986,7 +988,7 @@ services:
deploy:
resources:
limits:
memory: "6353502339072"
memory: "6353435230208"
entrypoint:
- /edgex-init/secretstore_wait_install.sh
environment:
Expand All @@ -1010,7 +1012,7 @@ services:
STAGEGATE_WAITFOR_TIMEOUT: 60s
hostname: edgex-secret-store
image: openbao/openbao:2.1
memswap_limit: "6353502339072"
memswap_limit: "6353435230208"
networks:
edgex-network: null
ports:
Expand Down
6 changes: 4 additions & 2 deletions taf/docker-compose-taf-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ services:
entrypoint:
- /edgex-init/ready_to_run_wait_install.sh
environment:
ALL_SERVICES_CLIENTS_SECURITY_PROXY_AUTH_HOST: security-proxy-auth
ALL_SERVICES_DATABASE_HOST: edgex-postgres
ALL_SERVICES_MESSAGEBUS_AUTHMODE: usernamepassword
ALL_SERVICES_MESSAGEBUS_HOST: edgex-mqtt-broker
Expand Down Expand Up @@ -419,6 +420,7 @@ services:
condition: service_started
required: true
environment:
CLIENTS_SECURITY_PROXY_AUTH_HOST: security-proxy-auth
DATABASE_HOST: edgex-postgres
EDGEX_SECURITY_SECRET_STORE: "true"
MESSAGEBUS_AUTHMODE: usernamepassword
Expand Down Expand Up @@ -986,7 +988,7 @@ services:
deploy:
resources:
limits:
memory: "6353502339072"
memory: "6353435230208"
entrypoint:
- /edgex-init/secretstore_wait_install.sh
environment:
Expand All @@ -1010,7 +1012,7 @@ services:
STAGEGATE_WAITFOR_TIMEOUT: 60s
hostname: edgex-secret-store
image: openbao/openbao:2.1
memswap_limit: "6353502339072"
memswap_limit: "6353435230208"
networks:
edgex-network: null
ports:
Expand Down
6 changes: 4 additions & 2 deletions taf/docker-compose-taf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,7 @@ services:
entrypoint:
- /edgex-init/ready_to_run_wait_install.sh
environment:
ALL_SERVICES_CLIENTS_SECURITY_PROXY_AUTH_HOST: security-proxy-auth
ALL_SERVICES_DATABASE_HOST: edgex-postgres
ALL_SERVICES_MESSAGEBUS_AUTHMODE: usernamepassword
ALL_SERVICES_MESSAGEBUS_HOST: edgex-mqtt-broker
Expand Down Expand Up @@ -808,6 +809,7 @@ services:
condition: service_started
required: true
environment:
CLIENTS_SECURITY_PROXY_AUTH_HOST: security-proxy-auth
DATABASE_HOST: edgex-postgres
EDGEX_SECURITY_SECRET_STORE: "true"
MESSAGEBUS_AUTHMODE: usernamepassword
Expand Down Expand Up @@ -1615,7 +1617,7 @@ services:
deploy:
resources:
limits:
memory: "6353502339072"
memory: "6353435230208"
entrypoint:
- /edgex-init/secretstore_wait_install.sh
environment:
Expand All @@ -1639,7 +1641,7 @@ services:
STAGEGATE_WAITFOR_TIMEOUT: 60s
hostname: edgex-secret-store
image: openbao/openbao:2.1
memswap_limit: "6353502339072"
memswap_limit: "6353435230208"
networks:
edgex-network: null
ports:
Expand Down

0 comments on commit 71694cb

Please sign in to comment.