ADR-011 / Decision record
No hypervisor tags on guests
Proxmox checks tag permissions without pool context, so I identify environments by pool instead.
- Context
- Tags looked like the obvious way to mark which environment a guest belongs to.
- Decision
- Guests carry no hypervisor tags. The environment is identified by pool membership (and readable from the VMID band).
- Why
- Pool-scoped tokens were refused when setting tags. Reading the hypervisor's source showed why. Tag permissions are checked without pool context, so a pool-scoped token can never pass. The only fix would have been widening the token, which undoes ADR-008.
- Trade-off
- The environment isn't visible as a tag in the hypervisor UI. You read it from the pool or the ID band.
Notes
I’m keeping this one because of how it was found. The error looked like a misconfigured role. The actual answer was in the permission-check code path, and once I’d seen it, changing the design was clearly better than granting broader access.