Joining a machine: personal vs team is invisible and can't be chosen at approval #100
Loading…
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?
Joining a machine to yourself and joining it to a team look identical, and the person approving can't tell or choose.
illogicald join URL --team ID. Nothing tells you the flag exists except the Teams panel. With--teamit still prints "To add this machine ({name}) to your account" (crates/daemon/src/control.rs).teamfromGET /api/joins/{code}(crates/control/src/api.rsjoin_show), butshowJoin(web/src/control.ts) types it away.JoinPromptalways says "{name} asks to join your account with code …".set_daemon_teamis only called fromjoin_approve, and nothing says "leave, then join --team".Close it by
team. Say "{name} asks to join the team {team} (its members reach it by their role)" or "…your account (only your devices reach it)". Disable Approve with the reason for non-owners. Add one sentence on what approving grants.join_approvetaking the team. The CLI flag becomes a default rather than the only way.POST /api/joins/{code}/reject, so the daemon stops with "turned down on {device}".--team. Print "Waiting for approval (the code lasts 15 minutes)…".illogicald leave && illogicald join URL --team ID. Better, a Move to team… on a machine in Devices and machines (owner of both).Done when e2e covers: a team join shows the team; a non-owner can't approve; Cancel stops the daemon; a machine approved as a team machine shows under "Team X" in the host menu.
Shipped in v0.9.0 (main
feb6241): Join to: Just me / a team you own at approval, preselected by--team, signed by the approving device so control can't pick the team; Cancel rejects; non-owners see why. Not built: the optional Move to team… button in Devices and machines. Moving is documented asillogicald leave+join(docs/teams.md, docs/control.md).Move to… shipped in v0.9.1 (
005ac18): on each machine in Devices and machines, into a team you own, between teams, or back to just you. The device signsillogical machine move v1(daemon, team pin, time); control checks you own both sides; the daemon takes it only if its own account's device signed it and it's newer than the last move (no replays). Control deployed.