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

legg til oppsett for idporten og maskinporten #3308

Merged
merged 1 commit into from
Oct 16, 2023
Merged

legg til oppsett for idporten og maskinporten #3308

merged 1 commit into from
Oct 16, 2023

Conversation

tronghn
Copy link
Contributor

@tronghn tronghn commented Oct 10, 2023

Spesialoppsett for Dolly som lever i dev men som trenger integrasjoner mot prod-tjenester.

/cc @krharum

Copy link
Contributor

@krharum krharum left a comment

Choose a reason for hiding this comment

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

Ser supert ut! 👍

@tronghn tronghn marked this pull request as ready for review October 16, 2023 07:57
@tronghn tronghn requested a review from a team as a code owner October 16, 2023 07:57
@krharum krharum merged commit 3dc4cd0 into navikt:master Oct 16, 2023
3 checks passed
@tronghn
Copy link
Contributor Author

tronghn commented Dec 12, 2024

Hvis dere skulle ha behov for å hente ut disse secretene på nytt for kopiering så er dette framgangsmåten:

For å hente ut secreten for maskinporten i prod:

kubectl config use-context prod-gcp
kubectl get secret -n dolly $(kubectl get maskinportenclient dolly -n dolly --template="{{.spec.secretName}}") -o json | jq -r '.data | map_values(@base64d) | keys[] as $k | "\($k)=\(.[$k])"'

For å hente ut secreten for idporten i prod:

kubectl config use-context prod-gcp
kubectl get secret -n dolly $(kubectl get idportenclient dolly -n dolly --template="{{.spec.secretName}}") -o json | jq -r '.data | map_values(@base64d) | keys[] as $k | "\($k)=\(.[$k])"'

Kopieres over til dev. Secretene for dev skal være tilgjengelig i https://console.nav.cloud.nais.io/team/dolly/secrets med navnene idporten-dolly-prod og maskinporten-dolly-prod.

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