Home devices: sign in from the Windows login with a key the machine can't export (ROMAINE-46, BAO-2) #104
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
queue
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/auth!104
Loading…
Reference in a new issue
No description provided.
Delete branch "romaine-46-home-devices"
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?
Work packages: https://openproject.romaine.life/wp/ROMAINE-46 and https://openproject.romaine.life/wp/BAO-2
A home PC (or the NAS) registers once with the public half of a key it can't export (a TPM key under Nelson's Windows user), then trades a short assertion signed with that key for a token, with no browser.
POST /api/auth/device/enrollneeds a user sign-in from the last 10 minutes and refuses device and bot tokens.POST /api/auth/device/tokenreturns either the same 24h user token/api/auth/cli/user-tokenmints (plus adeviceclaim, for the at menu), or, withaudience: "openbao", a 5-minute federation-shaped token withsub=device:<user id>/<device>and no role or email, so no first-party consumer accepts it. Errors carry a distinctreason(device_not_registered,device_revoked, …); devices are listed and revocable on /admin; every enroll, exchange and revoke is logged and counted (auth_device_total).drizzle/0004-device.sql(expand only) is applied before this image rolls.