From a17e0994d1d4e7bec49e216ca9a968b201b29971 Mon Sep 17 00:00:00 2001 From: Adarsh A Date: Tue, 17 Oct 2023 12:29:49 +0530 Subject: [PATCH] fix: issue in loading password from application.properties Signed-off-by: Adarsh A --- .../org/owasp/wrongsecrets/challenges/docker/Challenge41.java | 2 +- src/main/resources/application.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/owasp/wrongsecrets/challenges/docker/Challenge41.java b/src/main/java/org/owasp/wrongsecrets/challenges/docker/Challenge41.java index 73e412b8c..7abdfc7a1 100644 --- a/src/main/java/org/owasp/wrongsecrets/challenges/docker/Challenge41.java +++ b/src/main/java/org/owasp/wrongsecrets/challenges/docker/Challenge41.java @@ -26,7 +26,7 @@ public class Challenge41 extends Challenge { private final String password; - public Challenge41(ScoreCard scoreCard, @Value("{challenge41_password}") String password) { + public Challenge41(ScoreCard scoreCard, @Value("${challenge41password}") String password) { super(scoreCard); this.password = password; } diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 1a6fec0d3..8191dac0c 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -60,6 +60,7 @@ challenge15ciphertext=qcyRgfXSh0HUKsW/Xb5LnuWt9DgU8tQJfluR66UDDlmMgVWCGEwk1qxKCi challenge25ciphertext=dQMhBe8oLxIdGLcxPanDLS++srED/x05P+Ph9PFZKlL2K42vXi7Vtbh3/N90sGT087W7ARURZg== challenge26ciphertext=gbU5thfgy8nwzF/qc1Pq59PrJzLB+bfAdTOrx969JZx1CKeG4Sq7v1uUpzyCH/Fo8W8ghdBJJrQORw== challenge27ciphertext=gYPQPfb0TUgWK630tHCWGwwME6IWtPWA51eU0Qpb9H7/lMlZPdLGZWmYE83YmEDmaEvFr2hX +challenge41password=UEBzc3dvcmQxMjM= management.endpoint.health.probes.enabled=true management.health.livenessState.enabled=true management.health.readinessState.enabled=true @@ -111,4 +112,3 @@ default_aws_value_challenge_9=ACTUAL_ANSWER_CHALLENGE9 default_aws_value_challenge_10=ACTUAL_ANSWER_CHALLENGE10 default_aws_value_challenge_11=ACTUAL_ANSWER_CHALLENGE_11 K8S_ENV=Heroku(Docker) -challenge41_password=UEBzc3dvcmQxMjM=