Skip to content

fix(cli): uploads send no account id; the server takes it from the login (#193867) - #626

Open
mayoalexander wants to merge 1 commit into
mainfrom
fix/193867-cli-no-user-id
Open

mayoalexander wants to merge 1 commit into
mainfrom
fix/193867-cli-no-user-id

Conversation

@mayoalexander

Copy link
Copy Markdown

Part of #193867, which moves the account a request acts as to the server side.

fl-api's cloud-files/upload already takes the caller from the login token (RequestCaller::actingFor, #187931). A request that names no user_id acts as the signed-in account. So the CLI no longer looks up or sends one in cloud:upload, deliver or hive-send's upload step. That removes the way #193865 failed: a wrong or stale id causing "You may only act on your own account."

  • A 401 now reads "You are not signed in. Run iris login and try again." instead of raw JSON.
  • test/no-fixed-account.test.ts bans user_id on these three requests.
  • hive-send's task dispatch goes to iris-api, a different server, and is unchanged.

Verified (hub, bun 1.3.11)

  • Typecheck: passes.
  • Tests: src/cli/cmd/ fails the same 8 tests as main, none new; the guard test passes.
  • Real upload on this commit: sends no user_id (0 in the source) and returned a cdn.heyiris.io link filed under the signed-in account.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Jtb7WudoN4jCe3AMkAeWQj

…gin (#193867)

fl-api's cloud-files upload resolves the caller from the token
(RequestCaller::actingFor, #187931): a request that names no user_id acts
as the signed-in account. Proven on production 2026-11-18 (file 2715).
cloud:upload, deliver and hive-send no longer look up or send user_id, so a
wrong or stale id can no longer cause 'You may only act on your own
account'. A 401 now says 'You are not signed in. Run iris login'. The guard
test bans user_id on these three requests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Jtb7WudoN4jCe3AMkAeWQj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant