summaryrefslogtreecommitdiffstats
path: root/docker-compose
diff options
context:
space:
mode:
authorRuslan Kashapov <ruslan.kashapov@pantheon.tech>2021-03-11 14:15:49 +0200
committerRuslan Kashapov <ruslan.kashapov@pantheon.tech>2021-03-18 17:48:23 +0200
commitd8bcd1756df6bae0fc6b794ea4bf10a4e8b7e541 (patch)
treee0084416ef764ffa7b1add7e3fe97b096a3ea955 /docker-compose
parent6fb536c848cd48b0e0d821b27706469e8f30cc9c (diff)
Move web security configuration to application module
Issue-ID: CPS-288 Change-Id: Id244cde9ae9c87c27b69ed5a6a51772a4aef62fd Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
Diffstat (limited to 'docker-compose')
-rw-r--r--docker-compose/application.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/docker-compose/application.yml b/docker-compose/application.yml
index 9b841cb86..be4b688cf 100644
--- a/docker-compose/application.yml
+++ b/docker-compose/application.yml
@@ -34,6 +34,13 @@ spring:
change-log: classpath:changelog/changelog-master.yaml
labels: ${LIQUIBASE_LABELS}
+security:
+ # comma-separated uri patterns which do not require authorization
+ permit-uri: /manage/health/**,/manage/info,/swagger-ui/**,/swagger-resources/**,/v3/api-docs
+ auth:
+ username: ${CPS_USERNAME:cpsuser}
+ password: ${CPS_PASSWORD:cpsr0cks!}
+
# Actuator
management:
endpoints: