Skip to content

Commit

Permalink
EY-3389 srvbarnepensjon -> srvetterlatte (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
ingleivj authored Apr 15, 2024
1 parent 1f37584 commit e5d6dd3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions apps/etterlatte-proxy/.nais/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ spec:
vault:
enabled: true
paths:
- kvPath: "serviceuser/data/dev/srvbarnepensjon"
mountPath: "/secrets/srvbarnepensjon"
- kvPath: "serviceuser/data/dev/srvetterlatte"
mountPath: "/secrets/srvetterlatte"
azure:
application:
enabled: true
Expand Down
4 changes: 2 additions & 2 deletions apps/etterlatte-proxy/.nais/prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ spec:
vault:
enabled: true
paths:
- kvPath: "serviceuser/data/prod/srvbarnepensjon"
mountPath: "/secrets/srvbarnepensjon"
- kvPath: "serviceuser/data/prod/srvetterlatte"
mountPath: "/secrets/srvetterlatte"
azure:
application:
enabled: true
Expand Down
8 changes: 4 additions & 4 deletions apps/etterlatte-proxy/import-vault-token.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env sh

if test -f /secrets/srvbarnepensjon/username;
if test -f /secrets/srvetterlatte/username;
then
export SERVICEUSER_USERNAME=$(cat /secrets/srvbarnepensjon/username)
export SERVICEUSER_USERNAME=$(cat /secrets/srvetterlatte/username)
fi

if test -f /secrets/srvbarnepensjon/password;
if test -f /secrets/srvetterlatte/password;
then
export SERVICEUSER_PASSWORD=$(cat /secrets/srvbarnepensjon/password)
export SERVICEUSER_PASSWORD=$(cat /secrets/srvetterlatte/password)
fi
2 changes: 1 addition & 1 deletion apps/etterlatte-proxy/src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ simuleringOppdrag {
}

serviceuser {
name = "srvbarnepensjon"
name = "srvetterlatte"
password = "srv-password"
name = ${?SERVICEUSER_USERNAME}
password = ${?SERVICEUSER_PASSWORD}
Expand Down

0 comments on commit e5d6dd3

Please sign in to comment.