From 08d3ca27a2f59d7a481c2110625771b6a38c1cd4 Mon Sep 17 00:00:00 2001 From: Lauren Kemperman <117678574+lkemperman-cfa@users.noreply.github.com> Date: Wed, 28 Jun 2023 08:44:05 -0600 Subject: [PATCH] Add demo dev to security profile (#208) --- .github/workflows/deploy-staging.yaml | 2 -- .../org/ladocuploader/app/config/SecurityConfiguration.java | 2 +- src/main/java/org/ladocuploader/app/config/TestSecurity.java | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-staging.yaml b/.github/workflows/deploy-staging.yaml index cd16d68b5..b1e6a204b 100644 --- a/.github/workflows/deploy-staging.yaml +++ b/.github/workflows/deploy-staging.yaml @@ -48,8 +48,6 @@ jobs: 'ENCRYPTION_KEY=${{ secrets.ENCRYPTION_KEY }}' \ 'SPRING_DATASOURCE_USERNAME=${{ secrets.SPRING_DATASOURCE_USERNAME_STAGING }}' \ 'SPRING_DATASOURCE_PASSWORD=${{ secrets.SPRING_DATASOURCE_PASSWORD_STAGING }}' \ - 'DEFAULT_USER=${{ secrets.DEFAULT_USER_STAGING }}' \ - 'DEFAULT_PASSWORD=${{ secrets.DEFAULT_PASSWORD_STAGING }}' \ 'demo=true' draft-release: name: Draft a new release diff --git a/src/main/java/org/ladocuploader/app/config/SecurityConfiguration.java b/src/main/java/org/ladocuploader/app/config/SecurityConfiguration.java index 1426ec974..d338db6b7 100644 --- a/src/main/java/org/ladocuploader/app/config/SecurityConfiguration.java +++ b/src/main/java/org/ladocuploader/app/config/SecurityConfiguration.java @@ -12,7 +12,7 @@ @Configuration @EnableWebSecurity -@Profile({"dev", "demo", "prod"}) +@Profile({"prod"}) public class SecurityConfiguration { @Bean public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { diff --git a/src/main/java/org/ladocuploader/app/config/TestSecurity.java b/src/main/java/org/ladocuploader/app/config/TestSecurity.java index 112de84d9..65d2e6cf2 100644 --- a/src/main/java/org/ladocuploader/app/config/TestSecurity.java +++ b/src/main/java/org/ladocuploader/app/config/TestSecurity.java @@ -9,7 +9,7 @@ import org.springframework.security.web.SecurityFilterChain; @Configuration -@Profile("test") +@Profile({"test", "demo", "dev"}) public class TestSecurity { @Bean public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {