Skip to content

Commit

Permalink
ikke noe credentials-test i prod
Browse files Browse the repository at this point in the history
  • Loading branch information
alpet committed May 13, 2024
1 parent 629b24c commit 6baafdc
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ val signeringConfig = object : KeyStoreConfig {
override val keyStorePwd: String =
when (getEnvVar("NAIS_CLUSTER_NAME", "local")) {
"dev-fss" -> getEnvVar("KEYSTORE_PWD", "123456789") // Fixme burde egentlig hente fra dev vault context for å matche prod oppførsel
"prod-fss" -> Json.parseToJsonElement(
FileReader(
getEnvVar(
"KEYSTORE_PWD_FILE"
)
).readText()
).jsonObject["password"]!!.jsonPrimitive.content
else ->
Json.parseToJsonElement(
FileReader(
Expand Down

0 comments on commit 6baafdc

Please sign in to comment.