Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #358 from communitiesuk/FLS-795-add-basic-auth
Browse files Browse the repository at this point in the history
FLS-795: Basic auth added
  • Loading branch information
hamzabinkhalid authored Nov 20, 2024
2 parents 52aec59 + 04cab6e commit d9cbeda
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions copilot/fsd-authenticator/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,50 @@ environments:
ALLOW_ASSESSMENT_LOGIN_VIA_MAGIC_LINK: true
count:
spot: 1
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
test:
variables:
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"
target_container: nginx
healthcheck:
path: /healthcheck
port: 8080
variables:
ALLOW_ASSESSMENT_LOGIN_VIA_MAGIC_LINK: true
count:
Expand All @@ -101,6 +137,17 @@ environments:
value: 80
requests: 30
response_time: 2s
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
prod:
http:
alias: authenticator.access-funding.levellingup.gov.uk
Expand Down

0 comments on commit d9cbeda

Please sign in to comment.