From efb21ff842463f2335ade14698d244ea55937330 Mon Sep 17 00:00:00 2001 From: Hamza Bin Khalid <66220499+hamzabinkhalid@users.noreply.github.com> Date: Tue, 19 Nov 2024 08:51:54 +0000 Subject: [PATCH] Adding basic auth in test env --- copilot/fsd-authenticator/manifest.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/copilot/fsd-authenticator/manifest.yml b/copilot/fsd-authenticator/manifest.yml index b77ce75c..3526cf26 100755 --- a/copilot/fsd-authenticator/manifest.yml +++ b/copilot/fsd-authenticator/manifest.yml @@ -101,6 +101,22 @@ environments: ALLOW_ASSESSMENT_LOGIN_VIA_MAGIC_LINK: true count: spot: 2 + sidecars: + nginx: + port: 8087 + image: + location: xscys/nginx-sidecar-basic-auth + variables: + FORWARD_PORT: 8080 + CLIENT_MAX_BODY_SIZE: 10m + secrets: + BASIC_AUTH_USERNAME: /copilot/${COPILOT_APPLICATION_NAME}/${COPILOT_ENVIRONMENT_NAME}/secrets/BASIC_AUTH_USERNAME + BASIC_AUTH_PASSWORD: /copilot/${COPILOT_APPLICATION_NAME}/${COPILOT_ENVIRONMENT_NAME}/secrets/BASIC_AUTH_PASSWORD + http: + target_container: nginx + healthcheck: + path: /healthcheck + port: 8080 uat: http: alias: "authenticator.${COPILOT_ENVIRONMENT_NAME}.access-funding.test.levellingup.gov.uk"