No command picks up a credential from a file nobody asked for Follows "abso init signs in with the box sign-in" (issue 25), and applies it to every command. - A folder with a key signs in with that key and nothing else: not ABSO_TOKEN, not ~/.abso/token, even when the server refuses the key. A key file that can't be read is now an error ("abso key install puts a key back") instead of a quiet fall back to another credential. - With no key, a command signs in with ABSO_TOKEN (or a pipeline run's ABSO_KEY_FILE). This machine's ~/.abso/token is used only by a command given --token-file, which every command that talks to a server now takes. Without it, a refused call says "You're not signed in. Run abso login, then abso join <project>. ~/.abso/token is used only with --token-file." abso doctor says the same about a token file it finds unused. The edit hook and MCP tools never read it. - The admin token (ABSO_ADMIN_TOKEN, or ~/.abso/admin-token) is read only by abso key and abso flag. Each says "Using the admin token, from ..." every time it uses it. A test holds that no other module reads the file. What changes for you: a folder with no key that relied on ~/.abso/token needs --token-file on each command, or ABSO_TOKEN, or a key (abso login, then abso join). Tests: client/test/token-file.test.ts (3, new); client/test/client.test.ts's MCP check covers --token-file. All client tests pass (443).
RA readspeedbegan .
9 files: client/src/command-env.ts, client/src/config.ts, client/src/doctor.ts, client/src/flag-commands.ts, client/src/history.ts, client/src/key-admin.ts, client/src/main.ts, client/src/mcp.ts, client/test/token-file.test.ts
client/src/command-env.ts, client/src/config.ts, client/src/doctor.ts, client/src/flag-commands.ts, client/src/history.ts, client/src/key-admin.ts, client/src/main.ts, client/src/mcp.ts, client/test/token-file.test.tsNotes on its lines
Review (twofactor, abso issue 686 · not public), Low, for readspeed (271): asked is read from the raw arguments, so a value that is the text --token-file (a note, a comment, an issue title) counts as asking. It only changes which sign-in hint an error shows, because the credential itself comes from the parsed flag.
Taking bool(parsed, 'token-file') where it's in scope, or passing it down, keeps the two in step. Otherwise 268 and 271 read right: a folder with a key uses only that key, an unreadable key file is an error, ~/.abso/token is read only with --token-file, the MCP tools never offer it, and admin commands say when they use the admin token.
client/src/main.ts line 1035open- MCP
- change on this site's /mcp
- CLI
- abso review 4107 --json
- JSON
- /christopher/abso-core/changes/4107?format=json