Skip to content

Commit

Permalink
feat: WIP: fetch secret from AWS Secrets Manager
Browse files Browse the repository at this point in the history
  • Loading branch information
wolverian committed Oct 18, 2024
1 parent 7c01419 commit dfae667
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
23 changes: 23 additions & 0 deletions server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>io.awspring.cloud</groupId>
<artifactId>spring-cloud-aws-dependencies</artifactId>
<version>3.2.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
Expand All @@ -52,6 +59,14 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>io.awspring.cloud</groupId>
<artifactId>spring-cloud-aws-starter-secrets-manager</artifactId>
</dependency>
<dependency>
<groupId>io.awspring.cloud</groupId>
<artifactId>spring-cloud-aws-starter</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
Expand Down Expand Up @@ -90,6 +105,14 @@
<groupId>software.amazon.awssdk</groupId>
<artifactId>cloudwatchlogs</artifactId>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>sso</artifactId>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>ssooidc</artifactId>
</dependency>

<dependency>
<groupId>org.jetbrains.kotlin</groupId>
Expand Down
5 changes: 4 additions & 1 deletion server/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ springdoc.swagger-ui.url=/open-api.yaml
springdoc.swagger-ui.csrf.enabled=true
springdoc.api-docs.enabled=false

kitu.kotoutumiskoulutus.koealusta.wstoken=${KIELITESTI_TOKEN}
spring.config.import=aws-secretsmanager:kielitesti-token
logging.level.io.awspring.cloud=debug

kitu.kotoutumiskoulutus.koealusta.wstoken=${kielitesti-token}
kitu.kotoutumiskoulutus.koealusta.scheduling.enabled=false

kitu.oppijanumero.username=
Expand Down

0 comments on commit dfae667

Please sign in to comment.