Skip to content

Commit

Permalink
From Vault to SM for varslinger-service.
Browse files Browse the repository at this point in the history
  • Loading branch information
rfc3092 committed Oct 21, 2024
1 parent 9e7da50 commit 760cd6b
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 23 deletions.
1 change: 0 additions & 1 deletion apps/varslinger-service/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Swagger finnes under [/swagger](https://testnav-varslinger-service.intern.dev.na
## Lokal kjøring
Ha naisdevice kjørende og kjør deretter VarslingerServiceApplicationStarter med følgende argumenter:
```
-Dspring.cloud.vault.token=[kopier token fra vault]
-Dspring.profiles.active=dev
```

Expand Down
3 changes: 0 additions & 3 deletions apps/varslinger-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@ dependencies {
implementation "no.nav.testnav.libs:security-core"
implementation "no.nav.testnav.libs:servlet-core"
implementation "no.nav.testnav.libs:servlet-security"
implementation "no.nav.testnav.libs:vault"

implementation "org.springframework.cloud:spring-cloud-starter-bootstrap" // TODO remove legacy bootstrap config

implementation "org.springframework.cloud:spring-cloud-vault-config-databases"

implementation "org.springframework.boot:spring-boot-starter-security"
implementation "org.springframework.boot:spring-boot-starter-data-jpa"
implementation "org.springframework.boot:spring-boot-starter-oauth2-resource-server"
Expand Down
1 change: 0 additions & 1 deletion apps/varslinger-service/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ includeBuild '../../libs/database'
includeBuild '../../libs/security-core'
includeBuild '../../libs/servlet-core'
includeBuild '../../libs/servlet-security'
includeBuild '../../libs/vault'

develocity {
buildScan {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

spring:
config:
import: "sm://"
h2:
console:
enabled: true
Expand All @@ -15,7 +17,10 @@ spring:
properties:
hibernate:
dialect: org.hibernate.dialect.H2Dialect
security:
oauth2:
resourceserver:
aad:
accepted-audience: ${sm://azure-app-client-id}, api://${sm://azure-app-client-id}
tokenx:
accepted-audience: dev-gcp:dolly:testnav-varslinger-service-dev
4 changes: 0 additions & 4 deletions apps/varslinger-service/src/main/resources/bootstrap.yml

This file was deleted.

4 changes: 0 additions & 4 deletions apps/varslinger-service/src/test/resources/bootstrap.yml

This file was deleted.

0 comments on commit 760cd6b

Please sign in to comment.