Skip to content

Commit 9d5d25a

Browse files
committed
Merge branch 'master' into change/opensearch_config_cleanup
# Conflicts: # apps/dolly-backend/src/main/resources/application-local.yml # apps/oppsummeringsdokument-service/src/main/resources/application-local.yml # libs/security-core/src/main/java/no/nav/testnav/libs/securitycore/domain/azuread/AzureNavClientCredential.java
2 parents a4e278a + cc262c9 commit 9d5d25a

File tree

195 files changed

+526
-717
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+526
-717
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
AZURE_APP_CLIENT_ID: ${sm://azure-app-client-id}
2+
AZURE_APP_CLIENT_SECRET: ${sm://azure-app-client-secret}
3+
TOKEN_X_CLIENT_ID: dev-gcp:dolly:testnav-adresse-service
4+
5+
spring:
6+
config:
7+
import: "sm://"

apps/amelding-service/src/main/resources/application-dev.yml apps/amelding-service/src/main/resources/application-local.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1+
AZURE_APP_CLIENT_ID: ${sm://azure-app-client-id}
2+
AZURE_APP_CLIENT_SECRET: ${sm://azure-app-client-secret}
3+
14
spring:
25
config:
36
import: "sm://"
4-
security:
5-
oauth2:
6-
resourceserver:
7-
aad:
8-
accepted-audience: ${sm://azure-app-client-id}, api://${sm://azure-app-client-id}
97

108
consumers:
119
oppsummeringsdokument-service:

apps/amelding-service/src/main/resources/logback-spring.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</root>
2323
</springProfile>
2424

25-
<springProfile name="dev">
25+
<springProfile name="local">
2626
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
2727
<encoder>
2828
<pattern>
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1+
AZURE_APP_CLIENT_ID: ${sm://azure-app-client-id}
2+
AZURE_APP_CLIENT_SECRET: ${sm://azure-app-client-secret}
3+
14
spring:
25
config:
36
import: "sm://"
47
flyway:
58
url: jdbc:h2:mem:testdb
69
username: sa
710
password:
8-
security:
9-
oauth2:
10-
resourceserver:
11-
aad:
12-
accepted-audience: ${sm://azure-app-client-id}, api://${sm://azure-app-client-id}
13-
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
AZURE_APP_CLIENT_ID: ${sm://azure-app-client-id}
2+
AZURE_APP_CLIENT_SECRET: ${sm://azure-app-client-secret}
3+
14
spring:
25
config:
36
import: "sm://"
@@ -9,8 +12,3 @@ spring:
912
url: r2dbc:postgresql://localhost:3306/testnav-app-tilgang-analyse-service-db
1013
username: testnav-app-tilgang-analyse-service
1114
password: ${DB_PASSWORD}
12-
security:
13-
oauth2:
14-
resourceserver:
15-
aad:
16-
accepted-audience: ${sm://azure-app-client-id}, api://${sm://azure-app-client-id}

apps/arbeidsforhold-service/src/main/resources/application-dev.yml

-8
This file was deleted.

apps/adresse-service/src/main/resources/application-local.yaml apps/arbeidsforhold-service/src/main/resources/application-local.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
TOKEN_X_CLIENT_ID: dev-gcp:dolly:testnav-adresse-service
1+
AZURE_APP_CLIENT_ID: ${sm://azure-app-client-id}
2+
AZURE_APP_CLIENT_SECRET: ${sm://azure-app-client-secret}
23

34
spring:
45
config:

apps/arbeidsforhold-service/src/main/resources/logback-spring.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</root>
2323
</springProfile>
2424

25-
<springProfile name="dev">
25+
<springProfile name="local">
2626
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
2727
<encoder>
2828
<pattern>

apps/batch-bestilling-service/src/main/resources/application-dev.yml

-12
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
AZURE_APP_CLIENT_ID: ${sm://azure-app-client-id}
2+
AZURE_APP_CLIENT_SECRET: ${sm://azure-app-client-secret}
3+
4+
spring:
5+
config:
6+
import: "sm://"
7+
8+
consumers:
9+
dolly-backend:
10+
url: https://dolly-backend.intern.dev.nav.no

apps/batch-bestilling-service/src/main/resources/logback-spring.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</root>
2323
</springProfile>
2424

25-
<springProfile name="dev">
25+
<springProfile name="local">
2626
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
2727
<encoder>
2828
<pattern>
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
AZURE_APP_CLIENT_ID: ${sm://azure-app-client-id}
2+
AZURE_APP_CLIENT_SECRET: ${sm://azure-app-client-secret}
13
CRYPTOGRAPHY_SECRET: DUMMY SUPER SECRET CRYPTOGRAPHY KEY THAT IS NOT SECURE
24
JWT_SECRET: DUMMY SUPER SECRET JWT KEY THAT IS NOT SECURE
3-
45
TOKEN_X_CLIENT_ID: dev-gcp:dolly:testnav-bruker-service-dev
5-
TOKENDINGS_URL: ${TOKEN_X_ISSUER}
6+
TOKENDINGS_URL: ${TOKEN_X_ISSUER}
7+
68
spring:
79
application:
810
name: testnav-bruker-service-dev
11+
config:
12+
import: "sm://"
913
flyway:
1014
url: jdbc:h2:mem:testdb
1115
username: sa
@@ -14,4 +18,4 @@ spring:
1418
consumers:
1519
testnav-person-organisasjon-tilgang-service:
1620
url: https://testnav-person-organisasjon-tilgang-service-dev.intern.dev.nav.no
17-
name: testnav-person-organisasjon-tilgang-service-dev
21+
name: testnav-person-organisasjon-tilgang-service-dev
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1+
AZURE_APP_CLIENT_ID: ${sm://azure-app-client-id}
2+
AZURE_APP_CLIENT_SECRET: ${sm://azure-app-client-secret}
3+
14
spring:
25
config:
36
import: "sm://"
4-
security:
5-
oauth2:
6-
resourceserver:
7-
aad:
8-
accepted-audience: ${sm://azure-app-client-id}, api://${sm://azure-app-client-id}
97

108
management:
119
endpoints:
@@ -15,4 +13,4 @@ management:
1513

1614
consumers:
1715
generer-navn-service:
18-
url: "https://generer-navn-service.intern.dev.nav.no"
16+
url: "https://generer-navn-service.intern.dev.nav.no"

apps/budpro-service/src/main/resources/logback-spring.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<configuration>
3-
<springProfile name="prod,dev">
3+
<springProfile name="prod">
44
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
55
<encoder class="no.nav.testnav.libs.servletcore.logging.TestnavLogbackEncoder">
66
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">

apps/dolly-backend/src/test/java/no/nav/dolly/bestilling/aareg/AaregConsumerTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
@ActiveProfiles("test")
4040
@ExtendWith(SpringExtension.class)
4141
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
42-
@TestPropertySource(locations = "classpath:application.yaml")
42+
@TestPropertySource(locations = "classpath:application.yml")
4343
@AutoConfigureWireMock(port = 0)
4444
class AaregConsumerTest {
4545

apps/dolly-backend/src/test/java/no/nav/dolly/bestilling/arenaforvalter/ArenaForvalterConsumerTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
@ActiveProfiles("test")
3636
@ExtendWith(SpringExtension.class)
3737
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
38-
@TestPropertySource(locations = "classpath:application.yaml")
38+
@TestPropertySource(locations = "classpath:application.yml")
3939
@AutoConfigureWireMock(port = 0)
4040
class ArenaForvalterConsumerTest {
4141

apps/dolly-backend/src/test/java/no/nav/dolly/bestilling/instdata/InstdataConsumerTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
@ActiveProfiles("test")
3838
@ExtendWith(SpringExtension.class)
3939
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
40-
@TestPropertySource(locations = "classpath:application.yaml")
40+
@TestPropertySource(locations = "classpath:application.yml")
4141
@AutoConfigureWireMock(port = 0)
4242
class InstdataConsumerTest {
4343

apps/dolly-backend/src/test/java/no/nav/dolly/bestilling/kontoregisterservice/KontoregisterConsumerTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
@ActiveProfiles("test")
4343
@ExtendWith(SpringExtension.class)
4444
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
45-
@TestPropertySource(locations = "classpath:application.yaml")
45+
@TestPropertySource(locations = "classpath:application.yml")
4646
@AutoConfigureWireMock(port = 0)
4747
class KontoregisterConsumerTest {
4848
private static final String IDENT = "12345678901";

apps/dolly-backend/src/test/java/no/nav/dolly/bestilling/krrstub/KrrstubConsumerTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
@ActiveProfiles("test")
4545
@ExtendWith(SpringExtension.class)
4646
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
47-
@TestPropertySource(locations = "classpath:application.yaml")
47+
@TestPropertySource(locations = "classpath:application.yml")
4848
@AutoConfigureWireMock(port = 0)
4949
class KrrstubConsumerTest {
5050

apps/dolly-backend/src/test/java/no/nav/dolly/bestilling/pensjonforvalter/PensjonforvalterConsumerTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
@ActiveProfiles("test")
3939
@ExtendWith(SpringExtension.class)
4040
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
41-
@TestPropertySource(locations = "classpath:application.yaml")
41+
@TestPropertySource(locations = "classpath:application.yml")
4242
@AutoConfigureWireMock(port = 0)
4343
class PensjonforvalterConsumerTest {
4444

apps/dolly-backend/src/test/java/no/nav/dolly/bestilling/sigrunstub/SigrunStubConsumerTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
@ActiveProfiles("test")
4242
@ExtendWith(SpringExtension.class)
4343
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
44-
@TestPropertySource(locations = "classpath:application.yaml")
44+
@TestPropertySource(locations = "classpath:application.yml")
4545
@AutoConfigureWireMock(port = 0)
4646
class SigrunStubConsumerTest {
4747

apps/dolly-backend/src/test/java/no/nav/dolly/bestilling/tpsmessagingservice/TpsMessagingConsumerTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
@ActiveProfiles("test")
4242
@ExtendWith(SpringExtension.class)
4343
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
44-
@TestPropertySource(locations = "classpath:application.yaml")
44+
@TestPropertySource(locations = "classpath:application.yml")
4545
@AutoConfigureWireMock(port = 0)
4646
class TpsMessagingConsumerTest {
4747

apps/dolly-frontend/src/main/resources/application-local.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
AZURE_APP_CLIENT_ID: ${sm://azure-app-client-id}
2+
AZURE_APP_CLIENT_SECRET: ${sm://azure-app-client-secret}
13
POST_LOGOUT_REDIRECT_URI: 'http://localhost:3000/login'
24
REDIS_HOST: localhost
35
TOKEN_X_ISSUER: dummy
@@ -13,8 +15,6 @@ spring:
1315
client:
1416
registration:
1517
aad:
16-
client-id: ${sm://azure-app-client-id}
17-
client-secret: ${sm://azure-app-client-secret}
1818
authorization-grant-type: authorization_code
1919
redirect-uri: 'http://localhost:3000/login/oauth2/code/{registrationId}'
2020
scope: openid, offline_access, ${sm://azure-app-client-id}/.default

apps/dollystatus/src/main/resources/logback-spring.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</root>
2323
</springProfile>
2424

25-
<springProfile name="dev">
25+
<springProfile name="local">
2626
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
2727
<encoder>
2828
<pattern>

apps/endringsmelding-frontend/src/main/resources/application-dev.yml apps/endringsmelding-frontend/src/main/resources/application-local.yml

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1+
AZURE_APP_CLIENT_ID: ${sm://azure-app-client-id}
2+
AZURE_APP_CLIENT_SECRET: ${sm://azure-app-client-secret}
3+
14
spring:
25
config:
36
import: "sm://"
4-
security:
5-
oauth2:
6-
client:
7-
registration:
8-
aad:
9-
client-id: ${sm://azure-app-client-id}
10-
client-secret: ${sm://azure-app-client-secret}
11-
scope: openid, ${sm://azure-app-client-id}/.default
127

138
consumers:
149
endringsmelding-service:

apps/endringsmelding-frontend/src/main/resources/logback-spring.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</root>
2323
</springProfile>
2424

25-
<springProfile name="dev">
25+
<springProfile name="local">
2626
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
2727
<encoder>
2828
<pattern>

apps/endringsmelding-service/src/main/resources/application-dev.yml apps/endringsmelding-service/src/main/resources/application-local.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1+
AZURE_APP_CLIENT_ID: ${sm://azure-app-client-id}
2+
AZURE_APP_CLIENT_SECRET: ${sm://azure-app-client-secret}
3+
14
spring:
25
config:
36
import: "sm://"
4-
security:
5-
oauth2:
6-
resourceserver:
7-
aad:
8-
accepted-audience: ${sm://azure-app-client-id}, api://${sm://azure-app-client-id}
97

108
consumers:
119
adresse-service:

apps/endringsmelding-service/src/main/resources/logback-spring.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</root>
2323
</springProfile>
2424

25-
<springProfile name="dev">
25+
<springProfile name="local">
2626
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
2727
<encoder>
2828
<pattern>

apps/faste-data-frontend/src/main/resources/application-dev.yml apps/faste-data-frontend/src/main/resources/application-local.yml

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1+
AZURE_APP_CLIENT_ID: ${sm://azure-app-client-id}
2+
AZURE_APP_CLIENT_SECRET: ${sm://azure-app-client-secret}
3+
14
spring:
25
config:
36
import: "sm://"
4-
security:
5-
oauth2:
6-
client:
7-
registration:
8-
aad:
9-
client-id: ${sm://azure-app-client-id}
10-
client-secret: ${sm://azure-app-client-secret}
11-
scope: openid, ${sm://azure-app-client-id}/.default
127

138
consumers:
149
testnorge-profil-api:

apps/faste-data-frontend/src/main/resources/logback-spring.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</root>
2323
</springProfile>
2424

25-
<springProfile name="dev">
25+
<springProfile name="local">
2626
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
2727
<encoder>
2828
<pattern>

apps/generer-arbeidsforhold-populasjon-service/src/main/resources/application-dev.yml apps/generer-arbeidsforhold-populasjon-service/src/main/resources/application-local.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1+
AZURE_APP_CLIENT_ID: ${sm://azure-app-client-id}
2+
AZURE_APP_CLIENT_SECRET: ${sm://azure-app-client-secret}
3+
14
spring:
25
config:
36
import: "sm://"
4-
security:
5-
oauth2:
6-
resourceserver:
7-
aad:
8-
accepted-audience: ${sm://azure-app-client-id}, api://${sm://azure-app-client-id}
97

108
consumers:
119
oppsummeringsdokument-service:

apps/generer-arbeidsforhold-populasjon-service/src/main/resources/logback-spring.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</root>
2323
</springProfile>
2424

25-
<springProfile name="dev">
25+
<springProfile name="local">
2626
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
2727
<encoder>
2828
<pattern>

apps/generer-navn-service/src/main/resources/application-dev.yml

-8
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
AZURE_APP_CLIENT_ID: ${sm://azure-app-client-id}
2+
AZURE_APP_CLIENT_SECRET: ${sm://azure-app-client-secret}
3+
4+
spring:
5+
config:
6+
import: "sm://"

0 commit comments

Comments
 (0)