File tree 4 files changed +13
-5
lines changed
batch-bestilling-service/src/main/java/no/nav/registre/testnorge/batchbestillingservice/config
dolly-frontend/src/main/java/no/nav/dolly/web/config
miljoer-service/src/main/java/no/nav/registre/testnorge/miljoerservice/config
oversikt-frontend/src/main/java/no/nav/testnav/apps/oversiktfrontend/config
4 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import org .springframework .context .annotation .Configuration ;
4
4
import org .springframework .context .annotation .Profile ;
5
+ import org .springframework .lang .NonNull ;
5
6
import org .springframework .vault .annotation .VaultPropertySource ;
6
7
import org .springframework .vault .authentication .ClientAuthentication ;
7
8
import org .springframework .vault .authentication .TokenAuthentication ;
13
14
@ Configuration
14
15
@ Profile ("dev" )
15
16
@ VaultPropertySource (value = "secret/dolly/lokal" , ignoreSecretNotFound = false )
16
- @ VaultPropertySource (value = "secret/.common/tokenx/dev/app-1" , ignoreSecretNotFound = false )
17
17
public class DevConfig extends AbstractVaultConfiguration {
18
18
19
- private static final String VAULT_TOKEN = "spring.cloud.vault.token" ;
19
+ private static final String VAULT_TOKEN = "spring.cloud.vault.token" ;
20
20
21
21
@ Override
22
+ @ NonNull
22
23
public VaultEndpoint vaultEndpoint () {
23
24
return VaultEndpoint .create ("vault.adeo.no" , 443 );
24
25
}
25
26
26
27
@ Override
28
+ @ NonNull
27
29
public ClientAuthentication clientAuthentication () {
28
30
if (System .getenv ().containsKey ("VAULT_TOKEN" )) {
29
31
System .setProperty (VAULT_TOKEN , System .getenv ("VAULT_TOKEN" ));
Original file line number Diff line number Diff line change 2
2
3
3
import org .springframework .context .annotation .Configuration ;
4
4
import org .springframework .context .annotation .Profile ;
5
+ import org .springframework .lang .NonNull ;
5
6
import org .springframework .vault .annotation .VaultPropertySource ;
6
7
import org .springframework .vault .authentication .ClientAuthentication ;
7
8
import org .springframework .vault .authentication .TokenAuthentication ;
12
13
13
14
@ Configuration
14
15
@ Profile ("local" )
15
- @ VaultPropertySource (value = "secret/.common/tokenx/dev/app-1" , ignoreSecretNotFound = false )
16
16
@ VaultPropertySource (value = "secret/dolly/lokal" , ignoreSecretNotFound = false )
17
17
public class LocalVaultConfig extends AbstractVaultConfiguration {
18
18
19
19
private static final String VAULT_TOKEN = "spring.cloud.vault.token" ;
20
20
21
21
@ Override
22
+ @ NonNull
22
23
public VaultEndpoint vaultEndpoint () {
23
24
return VaultEndpoint .create ("vault.adeo.no" , 443 );
24
25
}
25
26
26
27
@ Override
28
+ @ NonNull
27
29
public ClientAuthentication clientAuthentication () {
28
30
if (System .getenv ().containsKey ("VAULT_TOKEN" )) {
29
31
System .setProperty (VAULT_TOKEN , System .getenv ("VAULT_TOKEN" ));
Original file line number Diff line number Diff line change 2
2
3
3
import org .springframework .context .annotation .Configuration ;
4
4
import org .springframework .context .annotation .Profile ;
5
+ import org .springframework .lang .NonNull ;
5
6
import org .springframework .vault .annotation .VaultPropertySource ;
6
7
import org .springframework .vault .authentication .ClientAuthentication ;
7
8
import org .springframework .vault .authentication .TokenAuthentication ;
13
14
@ Configuration
14
15
@ Profile ("dev" )
15
16
@ VaultPropertySource (value = "secret/dolly/lokal" , ignoreSecretNotFound = false )
16
- @ VaultPropertySource (value = "secret/.common/tokenx/dev/app-1" , ignoreSecretNotFound = false )
17
17
public class DevConfig extends AbstractVaultConfiguration {
18
18
19
19
private static final String VAULT_TOKEN = "spring.cloud.vault.token" ;
20
20
21
21
@ Override
22
+ @ NonNull
22
23
public VaultEndpoint vaultEndpoint () {
23
24
return VaultEndpoint .create ("vault.adeo.no" , 443 );
24
25
}
25
26
26
27
@ Override
28
+ @ NonNull
27
29
public ClientAuthentication clientAuthentication () {
28
30
if (System .getenv ().containsKey ("VAULT_TOKEN" )) {
29
31
System .setProperty (VAULT_TOKEN , System .getenv ("VAULT_TOKEN" ));
Original file line number Diff line number Diff line change 2
2
3
3
import org .springframework .context .annotation .Configuration ;
4
4
import org .springframework .context .annotation .Profile ;
5
+ import org .springframework .lang .NonNull ;
5
6
import org .springframework .vault .annotation .VaultPropertySource ;
6
7
import org .springframework .vault .authentication .ClientAuthentication ;
7
8
import org .springframework .vault .authentication .TokenAuthentication ;
13
14
@ Configuration
14
15
@ Profile ("dev" )
15
16
@ VaultPropertySource (value = "secret/dolly/lokal" , ignoreSecretNotFound = false )
16
- @ VaultPropertySource (value = "secret/.common/tokenx/dev/app-1" , ignoreSecretNotFound = false )
17
17
public class DevConfig extends AbstractVaultConfiguration {
18
18
19
19
private static final String VAULT_TOKEN = "spring.cloud.vault.token" ;
20
20
21
21
@ Override
22
+ @ NonNull
22
23
public VaultEndpoint vaultEndpoint () {
23
24
return VaultEndpoint .create ("vault.adeo.no" , 443 );
24
25
}
25
26
26
27
@ Override
28
+ @ NonNull
27
29
public ClientAuthentication clientAuthentication () {
28
30
if (System .getenv ().containsKey ("VAULT_TOKEN" )) {
29
31
System .setProperty (VAULT_TOKEN , System .getenv ("VAULT_TOKEN" ));
You can’t perform that action at this time.
0 commit comments