Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change/opensearch_config_cleanup #3693

Merged
merged 11 commits into from
Dec 13, 2024
Merged

Conversation

rfc3092
Copy link
Contributor

@rfc3092 rfc3092 commented Dec 11, 2024

Fjernet bruk av en unødvendig secret knyttet til OpenSearch, og har omformattert referanser til config for å matche et pattern:

  • Config som normalt kommer fra NAIS (les: system environment) DEFINERES_SOM_DETTE øverst i .yml.
  • Config som tilhører Spring, applikasjonen eller andre rammeverk defineres.som: dette i .yml.

Det er avdekket noe problemer knyttet til ClientCredential - har skrevet opp en TODO i no.nav.testnav.libs.securitycore.domain.azuread.AzureNavClientCredential slik at det i hvert fall er beskrevet kodenært. Vurderer at dette krever en større omskrivning helt utenfor scope av denne PRen, evt. et tonn av unødvendige dummy-verdier i application-test.yml. Løst her med SPeL.

Som en konsekvens vil alle applikasjoner som mangler AZURE_APP_CLIENT_[ID|SECRET] heretter feile ved oppstart, med melding om hva som mangler i config.

- Client credentials are now manually asserted to be non-null.
# Conflicts:
#	apps/dolly-backend/src/main/resources/application-local.yml
#	apps/oppsummeringsdokument-service/src/main/resources/application-local.yml
#	libs/security-core/src/main/java/no/nav/testnav/libs/securitycore/domain/azuread/AzureNavClientCredential.java
@rfc3092 rfc3092 marked this pull request as ready for review December 11, 2024 16:37
@rfc3092 rfc3092 requested a review from a team as a code owner December 11, 2024 16:37
@rfc3092 rfc3092 mentioned this pull request Dec 12, 2024
Copy link
Contributor

@stigus stigus left a comment

Choose a reason for hiding this comment

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

Nice 👍

@rfc3092 rfc3092 merged commit ce0806d into master Dec 13, 2024
37 checks passed
@rfc3092 rfc3092 deleted the change/opensearch_config_cleanup branch December 13, 2024 11:01
stigus added a commit that referenced this pull request Dec 16, 2024
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.

2 participants