Skip to content

Commit

Permalink
Merge pull request #820 from communitiesuk/FLS-795-make-basic-auth-cr…
Browse files Browse the repository at this point in the history
…eds-consistent

FLS-795: Make basic auth creds consistent
  • Loading branch information
hamzabinkhalid authored Nov 20, 2024
2 parents 9f972f9 + b7d60ff commit 173ca17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions copilot/post-award/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ environments:
CLIENT_MAX_BODY_SIZE: 10m
PROXY_READ_TIMEOUT: 180s
secrets:
BASIC_AUTH_USERNAME: /copilot/${COPILOT_APPLICATION_NAME}/${COPILOT_ENVIRONMENT_NAME}/secrets/POST_AWARD_BASIC_AUTH_USERNAME
BASIC_AUTH_PASSWORD: /copilot/${COPILOT_APPLICATION_NAME}/${COPILOT_ENVIRONMENT_NAME}/secrets/POST_AWARD_BASIC_AUTH_PASSWORD
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
dev:
http:
alias: ["find-monitoring-data.${COPILOT_ENVIRONMENT_NAME}.access-funding.test.levellingup.gov.uk", "submit-monitoring-data.${COPILOT_ENVIRONMENT_NAME}.access-funding.test.levellingup.gov.uk"]
Expand Down Expand Up @@ -143,5 +143,5 @@ environments:
CLIENT_MAX_BODY_SIZE: 10m
PROXY_READ_TIMEOUT: 180s
secrets:
BASIC_AUTH_USERNAME: /copilot/${COPILOT_APPLICATION_NAME}/${COPILOT_ENVIRONMENT_NAME}/secrets/POST_AWARD_BASIC_AUTH_USERNAME
BASIC_AUTH_PASSWORD: /copilot/${COPILOT_APPLICATION_NAME}/${COPILOT_ENVIRONMENT_NAME}/secrets/POST_AWARD_BASIC_AUTH_PASSWORD
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
4 changes: 2 additions & 2 deletions tests/e2e_tests/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ def _read_aws_parameter_store_value(self, parameter):
def HTTP_BASIC_AUTH(self) -> HttpCredentials:
return {
"username": self._read_aws_parameter_store_value(
f"/copilot/pre-award/{self.e2e_env}/secrets/POST_AWARD_BASIC_AUTH_USERNAME"
f"/copilot/pre-award/{self.e2e_env}/secrets/BASIC_AUTH_USERNAME"
),
"password": self._read_aws_parameter_store_value(
f"/copilot/pre-award/{self.e2e_env}/secrets/POST_AWARD_BASIC_AUTH_PASSWORD"
f"/copilot/pre-award/{self.e2e_env}/secrets/BASIC_AUTH_PASSWORD"
),
}

Expand Down

0 comments on commit 173ca17

Please sign in to comment.