Skip to content

Commit 6e52f64

Browse files
VIA-345 SB Fix APIM timeout.
1 parent 750e21c commit 6e52f64

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

infrastructure/environments/test/fake-api/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ docker build --no-cache -t fake-api .
1919

2020
docker stop local-fake-api
2121

22-
docker run -d --rm -p 9123:9123 -e LOGIN_ROOT_URL="http://localhost:9123" -e ELID_DELAY_SECONDS=2 -e APIM_DELAY_SECONDS=10 --name local-fake-api fake-api
22+
docker run -d --rm -p 9123:9123 -e LOGIN_ROOT_URL="http://localhost:9123" -e ELID_DELAY_SECONDS=1 -e APIM_DELAY_SECONDS=1 --name local-fake-api fake-api
2323

2424
docker logs local-fake-api --follow | less +F # If you need to see what's going on in nginx
2525

src/utils/logger.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const currentLevel = process.env.PINO_LOG_LEVEL ?? "info";
77

88
const REDACT_KEYS: string[] = [
99
"**.validatedApiData.**",
10+
"APIM_KEY_ID",
1011
"APIM_PRIVATE_KEY",
1112
"CONTENT_API_KEY",
1213
"ELIGIBILITY_API_KEY",
@@ -25,6 +26,7 @@ const REDACT_KEYS: string[] = [
2526
"jti",
2627
"nhsNumber",
2728
"nhs_number",
29+
"privateKey",
2830
"role",
2931
"sub",
3032
"subjectToken",

0 commit comments

Comments
 (0)