Decouple the gateway name from the username so a tester redo never collides on the name #22

Open
opened 2026-06-08 16:32:01 +00:00 by mik-tf · 0 comments
Owner

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.

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.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_os_tfgrid_deployer#22
No description provided.