Skip to content

feat(api): return 426 for unknown socket API routes#124

Open
LaurenceJJones wants to merge 1 commit into
fosrl:devfrom
LaurenceJJones:feature/api-stale-socket-catchall
Open

feat(api): return 426 for unknown socket API routes#124
LaurenceJJones wants to merge 1 commit into
fosrl:devfrom
LaurenceJJones:feature/api-stale-socket-catchall

Conversation

@LaurenceJJones

@LaurenceJJones LaurenceJJones commented May 29, 2026

Copy link
Copy Markdown
Contributor

Community Contribution License Agreement

By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.

Description

Add a catch-all handler so clients can detect a stale Olm daemon after CLI upgrade instead of ambiguous Go 404 responses (fosrl/pangolin#3092).

How to test?

When a newer client interacts with the olm socket api it will be returned status 426 "upgrade required" which we will inform the clients that they need to restart the tunnel connection. This is a edge case found in fosrl/pangolin#3092 but we shouldnt rely on status 404 since that is vauge (could be a legit status code that we want EG: ssh into a resource, resource not found?) and olm should return a distinct code for catch all routes.

Add a catch-all handler so clients can detect a stale Olm daemon after
CLI upgrade instead of ambiguous Go 404 responses (fosrl/pangolin#3092).
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