Skip to content

Commit

Permalink
Enable secure logs
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasDev committed Sep 13, 2023
1 parent 995cf96 commit 9fcd09a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion naiserator-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ spec:
- host: smgcp-proxy.dev-fss-pub.nais.io
kafka:
pool: nav-dev
secureLogs:
enabled: true
env:
- name: HELSENETT_SCOPE
value: api://dev-fss.teamsykmelding.syfohelsenettproxy/.default
Expand All @@ -74,4 +76,4 @@ spec:
- name: LEGE_SUSPENSJON_PROXY_ENDPOINT_URL
value: https://smgcp-proxy.dev-fss-pub.nais.io
- name: LEGE_SUSPENSJON_PROXY_SCOPE
value: api://dev-fss.teamsykmelding.smgcp-proxy/.default
value: api://dev-fss.teamsykmelding.smgcp-proxy/.default
4 changes: 3 additions & 1 deletion naiserator-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ spec:
- host: smgcp-proxy.prod-fss-pub.nais.io
kafka:
pool: nav-prod
secureLogs:
enabled: true
env:
- name: HELSENETT_SCOPE
value: api://prod-fss.teamsykmelding.syfohelsenettproxy/.default
Expand All @@ -73,4 +75,4 @@ spec:
- name: LEGE_SUSPENSJON_PROXY_ENDPOINT_URL
value: https://smgcp-proxy.prod-fss-pub.nais.io
- name: LEGE_SUSPENSJON_PROXY_SCOPE
value: api://prod-fss.teamsykmelding.smgcp-proxy/.default
value: api://prod-fss.teamsykmelding.smgcp-proxy/.default
3 changes: 2 additions & 1 deletion src/main/kotlin/no/nav/syfo/services/RuleService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import no.nav.syfo.model.RuleInfo
import no.nav.syfo.model.RuleMetadata
import no.nav.syfo.model.Status
import no.nav.syfo.model.ValidationResult
import no.nav.syfo.objectMapper
import no.nav.syfo.pdl.service.PdlPersonService
import no.nav.syfo.rules.common.RuleResult
import no.nav.syfo.rules.dsl.TreeOutput
Expand Down Expand Up @@ -163,7 +164,7 @@ class RuleService(
.inc()

if (validationResult.status != Status.OK) {
secureLog.info("RuleResult for ${receivedSykmelding.sykmelding.id}: $result")
secureLog.info("RuleResult for ${receivedSykmelding.sykmelding.id}: ${objectMapper.writeValueAsString(result)}")
}

return validationResult
Expand Down

0 comments on commit 9fcd09a

Please sign in to comment.