Decouple the gateway name from the username so a tester redo never collides on the name #22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Today the gateway name equals the tester username, so every provision or retry for a user reuses the same gateway name. If a previous attempt left an orphaned name contract, the next attempt fails with name already registered and onboarding blocks until it is cancelled by hand (the whack-a-mole we hit recovering one tester). Give each provision attempt a gateway name that is unique per attempt, for example the username plus the VM short id, stable for a given VM but never colliding across attempts, so leftover contracts become harmless and a user can be re-provisioned without manual cleanup. The OAuth app redirect_uri follows the gateway fqdn, so it updates with it. The tradeoff is a less clean URL (name-vmid.zone instead of name.zone), acceptable for robustness. Complements the derive-fqdn fix already on main.