alan-turing-institute / data-safe-haven

https://data-safe-haven.readthedocs.io
BSD 3-Clause "New" or "Revised" License
60 stars 15 forks source link

`dsh config available` is not showing deployed SREs #2278

Open cptanalatriste opened 2 hours ago

cptanalatriste commented 2 hours ago

:white_check_mark: Checklist

:computer: System information

:package: Packages

List of packages ```none Paste list of packages here ```

:no_entry_sign: Describe the problem

The SRE with ID testt2hdl is live and accessible over https://testt2hdl.prod5.turingsafehaven.ac.uk/. However, when listing deployed SREs using dsh config available we see the following:

┏━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ SRE Name   ┃ Deployed ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━┩
│ cgcdemosre │          │
│ edtest2p5  │          │
│ edtestp5   │          │
│ sbox123    │          │
│ testsre    │          │
│ testt2hdl  │          │
└────────────┴──────────┘

Notice no SRE is marked as deployed.

:deciduous_tree: Log messages

Relevant log messages ```none Your log details here ```

:recycle: To reproduce

Just run dsh config available from any account with production access. @dsj976 and @helendduncan were able to reproduce.

JimMadge commented 1 hour ago

Quite likely due to underscores in the SRE name being handling inconsistently. Retained in some places, changed to hyphens, stripped completely.