Remove the old tt02 AKS egress range after the Sweden Central move

Open Beginner friendly
#1,917 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
67/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
terraform

Research direction

Wait for Digdir to confirm the tt02 move is complete on the testmiljø status page, then check Grafana and verify OED still reaches its database and Service Bus. In Altinn/dd-infrastructure, edit infra/altinn-digdir-oed-tt02-rg/terraform.tfvars: remove the old aks entry and the keep-old-entry comment on aks-swedencentral. Review the Terraform plan against the expected two destroyed firewall rules and one updated Service Bus rule.

Written by the indexing model from the issue text.

Description

Background

In #1914 (PR Altinn/dd-infrastructure#117) we added the new outbound range for the Altinn Apps tt02 cluster in Sweden Central (172.130.12.192/28). We kept the old Norway East range so OED would keep working until the move was done.

Wait for Digdir to say the tt02 move is done before doing this. Digdir will post on the testmiljø status page before they remove the old addresses. The move is tentatively planned for week 48.

Change

The change goes in Altinn/dd-infrastructure. All file paths below are in that repo.

In infra/altinn-digdir-oed-tt02-rg/terraform.tfvars, remove the old aks entry from static_whitelist:

  {
    name     = "aks"
    start_ip = "51.13.16.142"
    end_ip   = "51.13.16.143"
  },

Also remove the comment on the aks-swedencentral entry that says to keep the old entry.

Before you remove it

  • In tt02 Grafana (Altinn > Public IPs > Outbound IP), check that digdir-tt02-aks-prefix4 no longer lists 51.13.16.142/31.
  • Check that OED in tt02 still reaches its database and Service Bus after the move.

Expected plan

  • 2 destroyed: the aks firewall rule on dd-test-pg and on oed-test-authz-pg
  • 1 updated in place: dd-test-sbn loses 51.13.16.142 and 51.13.16.143 from ip_rules

Prod (altinn-digdir-oed-rg) gets its own notice and new addresses from Digdir later. That is out of scope here.

Dominant language
No language data
Stars
5
Forks
2
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Altinn/oed

All issues in Altinn/oed

Similar issues

More DevOps issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.