Skip to content

Commit

Permalink
Flytter secret til console managed secret
Browse files Browse the repository at this point in the history
  • Loading branch information
thburnett committed Oct 10, 2024
1 parent 27d6992 commit cbe7b0f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 21 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/smtp-transport-deploy-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
- dev/**
paths:
- smtp-transport/**
- .nais/smtp-transport-dev.yaml
- .github/workflows/smtp-transport-deploy-dev.yaml

env:
MODULE_NAME: "smtp-transport"
Expand Down Expand Up @@ -69,15 +71,6 @@ jobs:
id-token: write
steps:
- uses: "actions/checkout@v4"

- name: "Deploy secret to DEV"
uses: "nais/deploy/actions/deploy@v2"
env:
"APIKEY": "${{ secrets.NAIS_DEPLOY_APIKEY }}"
"CLUSTER": "dev-fss"
"RESOURCE": ".nais/smtp-router-secrets.yaml"
"VAR": "smtpPassword=${{ secrets.SMTP_PASSWORD }}"

- name: "Deploy to DEV"
uses: "nais/deploy/actions/deploy@v2"
env:
Expand Down
10 changes: 0 additions & 10 deletions .nais/smtp-router-secrets.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .nais/smtp-transport-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
ingresses:
- "https://smtp-transport.intern.dev.nav.no"
envFrom:
- secret: smtp-router-secrets
- secret: smtp-transport-secrets
env:
- name: SMTP_POP3_FACTORY_PORT
value: "110"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import org.junit.jupiter.api.Test

class PasientlisteServiceTest {


@Test
fun `Should throw exception if SSN from certificate does not match SSN from message`() {
val sendIndRequest = validSendInRequest.value
Expand Down

0 comments on commit cbe7b0f

Please sign in to comment.