mirror of
https://github.com/nestriness/nestri.git
synced 2026-11-12 10:22:33 +02:00
A session the issuer minted for the installer exists to make one call: POST /machine/install-token. The installer runs on a machine that may not belong to the person who approved it, so anything else that session could do with the account is exposure with no use. The auth middleware now refuses a token whose audience is `installer` on every other route with 403 `forbidden`, "This sign-in can only add a host". It is checked once, in the middleware, so a route added later cannot forget it. Tokens for every other audience behave as before.