Repository navigation
fix(cli): uploads send no account id; the server takes it from the login (#193867) - #626
Open
mayoalexander wants to merge 1 commit into
Open
mayoalexander wants to merge 1 commit into
mayoalexander wants to merge 1 commit into
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #193867, which moves the account a request acts as to the server side.
fl-api's
cloud-files/uploadalready takes the caller from the login token (RequestCaller::actingFor, #187931). A request that names nouser_idacts as the signed-in account. So the CLI no longer looks up or sends one incloud:upload,deliverorhive-send's upload step. That removes the way #193865 failed: a wrong or stale id causing "You may only act on your own account."iris loginand try again." instead of raw JSON.test/no-fixed-account.test.tsbansuser_idon these three requests.hive-send's task dispatch goes to iris-api, a different server, and is unchanged.Verified (hub, bun 1.3.11)
src/cli/cmd/fails the same 8 tests asmain, none new; the guard test passes.user_id(0 in the source) and returned acdn.heyiris.iolink filed under the signed-in account.🤖 Generated with Claude Code
https://claude.ai/code/session_01Jtb7WudoN4jCe3AMkAeWQj