Skip to content

bug-report-py 3.0.1: a refusal of the app is a 502 through the proxy; lists default to the app's own reports - #29

Merged
kenatleap merged 1 commit into
mainfrom
fix/proxy-3.0.1
Nov 14, 2026
Merged

kenatleap merged 1 commit into
mainfrom
fix/proxy-3.0.1

Conversation

@kenatleap

Copy link
Copy Markdown
Collaborator

These two fixes come from the review of seal's move to the central store.

1. A refusal of the app is a 502.

  • The problem: when the central service refused an app's token (401, or a 403 for an untrusted app), the proxy passed that status straight back. A seal laptop reads a 401 from its hosted app as "your station pass was refused": it signs the operator out and holds the report for good.
  • The fix: the service's guard now marks its own refusals with X-Leap-Trust-Refusal: 1, and the proxy turns only marked 401/403s into a generic 502 (the real status and body are logged). The laptop outbox retries a 502.
  • Unchanged: a not-admin 403 and the sign-in-to-vote 401 pass through as before. A pre-3.0.1 service sends no marker, so it passes through too, which is why the central service must run 3.0.1.

2. Lists default to the app's own reports. A list with no app query gets app=<the proxy's app>; an explicit app is kept. Without this, seal's queue and badge would show every app's reports once a second app moves in.

Tests (rerun by the coordinator in a fresh venv): Python 349 + CLI 7, e2e 96, Node 188/17/63, none failing. Each new test fails with its fix removed (T4): the mapping, the marker and the app default.

Tag backends-v3.0.1 after merge.

🤖 Generated with Claude Code

… a list asks for the app's own reports

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@kenatleap
kenatleap enabled auto-merge (squash) November 14, 2026 23:47
@kenatleap
kenatleap merged commit d4f9cfd into main Nov 14, 2026
1 check passed
@kenatleap
kenatleap deleted the fix/proxy-3.0.1 branch November 14, 2026 23:50
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.

2 participants