diff --git a/.nais/kafka/dialogmelding.yaml b/.nais/kafka/dialogmelding.yaml index 164d929..fa38519 100644 --- a/.nais/kafka/dialogmelding.yaml +++ b/.nais/kafka/dialogmelding.yaml @@ -34,3 +34,6 @@ spec: - team: disykefravar application: dvh-sykefravar-airflow-kafka access: read + - team: aap + application: dokumentinnhenting + access: read diff --git a/.nais/naiserator-dev.yaml b/.nais/naiserator-dev.yaml index 206a7b3..01fc244 100644 --- a/.nais/naiserator-dev.yaml +++ b/.nais/naiserator-dev.yaml @@ -45,6 +45,8 @@ spec: inbound: rules: - application: isbehandlerdialog + - application: dokumentinnhenting + namespace: aap outbound: external: - host: "login.microsoftonline.com" diff --git a/.nais/naiserator-prod.yaml b/.nais/naiserator-prod.yaml index 6a1421e..9ec27f9 100644 --- a/.nais/naiserator-prod.yaml +++ b/.nais/naiserator-prod.yaml @@ -45,6 +45,8 @@ spec: inbound: rules: - application: isbehandlerdialog + - application: dokumentinnhenting + namespace: aap outbound: external: - host: "login.microsoftonline.com" diff --git a/src/main/kotlin/no/nav/syfo/Environment.kt b/src/main/kotlin/no/nav/syfo/Environment.kt index b7dda15..6fc4216 100644 --- a/src/main/kotlin/no/nav/syfo/Environment.kt +++ b/src/main/kotlin/no/nav/syfo/Environment.kt @@ -45,8 +45,10 @@ data class Environment( val serviceuserUsername: String = getEnvVar("SERVICEUSER_USERNAME"), val serviceuserPassword: String = getEnvVar("SERVICEUSER_PASSWORD"), private val isbehandlerdialogApplicationName: String = "isbehandlerdialog", + private val dokumentinnhentingApplicationName: String = "dokumentinnhenting", val systemAPIAuthorizedConsumerApplicationNames: List = listOf( isbehandlerdialogApplicationName, + dokumentinnhentingApplicationName, ), val smtssApiUrl: String = getEnvVar("SMTSS_URL"), val smtssClientId: String = getEnvVar("SMTSS_CLIENT_ID"),