Skip to content

cleanup/deprecated_sm#4229

Merged
rfc3092 merged 6 commits into
masterfrom
cleanup/deprecated_sm
May 20, 2026
Merged

cleanup/deprecated_sm#4229
rfc3092 merged 6 commits into
masterfrom
cleanup/deprecated_sm

Conversation

@rfc3092

@rfc3092 rfc3092 commented May 19, 2026

Copy link
Copy Markdown
Contributor

tl;dr - sm:// er deprecated, sm@ er framtiden.

Fjerner også et par små warnings i data-transfer-objects som støyer.


This pull request updates the spring.config.import property in the application-local.yml (and one application-localdb.yml) files across multiple services. The value is changed from "sm://" to "sm@". This change is likely related to a required update in how Spring handles configuration imports, possibly due to a library or platform upgrade.

The most important changes are:

Configuration Import Update Across Services:

  • Changed spring.config.import from "sm://" to "sm@" in the following service configuration files to ensure compatibility with the latest Spring configuration standards:
    • apps/adresse-service/src/main/resources/application-local.yml
    • apps/altinn3-tilgang-service/src/main/resources/application-local.yml
    • apps/api-oversikt-service/src/main/resources/application-local.yml
    • apps/app-tilgang-analyse-service/src/main/resources/application-local.yml
    • apps/app-tilgang-analyse-service/src/main/resources/application-localdb.yml
    • apps/batch-bestilling-service/src/main/resources/application-local.yml
    • apps/bruker-service/src/main/resources/application-local.yml
    • apps/budpro-service/src/main/resources/application-local.yml
    • apps/dolly-backend/src/main/resources/application-local.yml
    • apps/dolly-frontend/src/main/resources/application-local.yml
    • apps/dolly-search-service/src/main/resources/application-local.yml
    • apps/endringsmelding-frontend/src/main/resources/application-local.yml
    • apps/endringsmelding-service/src/main/resources/application-local.yml
    • apps/faste-data-frontend/src/main/resources/application-local.yml
    • apps/generer-navn-service/src/main/resources/application-local.yml
    • apps/helsepersonell-service/src/main/resources/application-local.yml
    • apps/inntektsmelding-generator-service/src/main/resources/application-local.yml
    • apps/inntektsmelding-service/src/main/resources/application-local.yml
    • apps/jenkins-batch-status-service/src/main/resources/application-local.yml
    • apps/joark-dokument-service/src/main/resources/application-local.yml

This update is a straightforward but important change to maintain configuration compatibility and prevent potential issues with application startup or secret management.

@rfc3092 rfc3092 marked this pull request as ready for review May 19, 2026 14:12
@rfc3092 rfc3092 requested a review from a team as a code owner May 19, 2026 14:12
Copilot AI review requested due to automatic review settings May 19, 2026 14:12
@rfc3092

rfc3092 commented May 19, 2026

Copy link
Copy Markdown
Contributor Author

Erstatte sm:// med sm@

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates local Spring configuration to use the new Secret Manager import scheme (sm@) instead of the deprecated sm://, across a wide set of services/proxies. It also updates one local NAIS initializer to emit sm@... placeholders, and includes a couple of DTO/Jackson-related adjustments.

Changes:

  • Update spring.config.import from "sm://" to "sm@" in many application-local*.yml files.
  • Update local NAIS environment initializer to use sm@... placeholders.
  • Adjust DTO/Jackson code (enum deserializer generics/API call; Lombok builder defaults).

Reviewed changes

Copilot reviewed 60 out of 60 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
proxies/yrkesskade-proxy/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
proxies/texas-proxy/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
proxies/synthdata-meldekort-proxy/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
proxies/sykemelding-proxy/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
proxies/pdl-proxy/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
proxies/nom-proxy/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
proxies/dolly-proxy/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
proxies/brregstub-reverse-proxy/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
proxies/arbeidssoekerregisteret-proxy/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
proxies/arbeidsplassencv-proxy/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
proxies/altinn3-tilgang-proxy/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
libs/testing/src/main/java/no/nav/dolly/libs/nais/NaisEnvironmentApplicationContextInitializer.java Update local NAIS env emulation to use sm@... placeholders (and NonNull import change).
libs/data-transfer-objects/src/main/java/no/nav/testnav/libs/dto/jackson/v1/CaseInsensitiveEnumDeserializer.java Tighten generics and change how enum text is read from the parser.
libs/data-transfer-objects/src/main/java/no/nav/testnav/libs/dto/ereg/v1/NAVSpesifikkInformasjon.java Ensure builder defaults preserve non-null nested period objects.
apps/varslinger-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/udi-stub/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/tps-messaging-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/tps-messaging-frontend/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/testnorge-statisk-data-forvalter/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/testnav-ident-pool/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/tenor-search-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/synt-vedtakshistorikk-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/sykemelding-api/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/profil-api/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/person-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/person-faste-data-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/pdl-lagre-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/pdl-forvalter/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/oversikt-frontend/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/orgnummer-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/organisasjon-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/organisasjon-mottak-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/organisasjon-forvalter/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/organisasjon-faste-data-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/organisasjon-bestilling-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/miljoer-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/levende-arbeidsforhold-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/levende-arbeidsforhold-scheduler/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/levende-arbeidsforhold-ansettelse/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/kodeverk-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/joark-dokument-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/jenkins-batch-status-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/inntektsmelding-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/inntektsmelding-generator-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/helsepersonell-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/generer-navn-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/faste-data-frontend/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/endringsmelding-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/endringsmelding-frontend/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/dolly-search-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/dolly-frontend/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/dolly-backend/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/budpro-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/bruker-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/batch-bestilling-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/app-tilgang-analyse-service/src/main/resources/application-localdb.yml Switch local Secret Manager import to sm@.
apps/app-tilgang-analyse-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/api-oversikt-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/altinn3-tilgang-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
apps/adresse-service/src/main/resources/application-local.yml Switch local Secret Manager import to sm@.
Comments suppressed due to low confidence (4)

apps/dolly-backend/src/main/resources/application-local.yml:14

  • This file still contains Secret Manager placeholders using the deprecated sm\:// scheme (e.g. for datasource passwords), even though spring.config.import was migrated to sm@. If sm:// is being phased out, these placeholders should be migrated to sm@... as well to avoid future startup failures.
    import: "sm@"
  flyway:
    url: jdbc:postgresql://localhost:5432/testnav-dolly-backend-local
    user: testnav-dolly-backend-local
    password: ${sm\://testnav-dolly-backend-local}

apps/organisasjon-forvalter/src/main/resources/application-local.yml:7

  • This file still contains Secret Manager placeholders using the deprecated sm\:// scheme (e.g. spring.datasource.password) while spring.config.import was updated to sm@. Consider migrating the remaining placeholders to sm@... as well so the file is fully compatible when sm:// support is removed.
    import: "sm@"
  datasource:
    url: jdbc:postgresql://localhost:5432/testnav-organisasjon-forvalter-local
    username: testnav-organisasjon-forvalter-local
    password: ${sm\://testnav-organisasjon-forvalter-local}

apps/pdl-forvalter/src/main/resources/application-local.yml:7

  • This file still contains Secret Manager placeholders using the deprecated sm\:// scheme for DB credentials while spring.config.import was migrated to sm@. Consider migrating the remaining placeholders to sm@... as well (there are additional sm\:// occurrences later in the file).
    proxies/pdl-proxy/src/main/resources/application-local.yml:7
  • This file still contains Secret Manager placeholders using the deprecated sm\:// scheme (e.g. app.elastic.username/password) while spring.config.import was migrated to sm@. Consider migrating the remaining placeholders to sm@... as well to avoid future breakage when sm:// support is removed.

Comment thread apps/testnav-ident-pool/src/main/resources/application-local.yml

@stigus stigus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 🤩

@krharum krharum left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@rfc3092 rfc3092 merged commit 8596cee into master May 20, 2026
380 of 381 checks passed
@rfc3092 rfc3092 deleted the cleanup/deprecated_sm branch May 20, 2026 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants