From 9b3d5a336c6efc26496758f570130cad703bb79d Mon Sep 17 00:00:00 2001 From: geir-waagboe Date: Wed, 13 Nov 2024 09:55:49 +0100 Subject: [PATCH] IS-2812: Gi AAP tilgang til Kafka-topic og vedlegg-api --- .nais/kafka/dialogmelding.yaml | 3 +++ .nais/naiserator-dev.yaml | 2 ++ .nais/naiserator-prod.yaml | 2 ++ src/main/kotlin/no/nav/syfo/Environment.kt | 2 ++ 4 files changed, 9 insertions(+) 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"),