Repository navigation
Prevent Cuiman app requests from bypassing the authenticated API proxy - #261
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
In our case confusing CORS errors appeared when the landing page (Path |
Hneuschmidt
approved these changes
Nov 13, 2026
There was a problem hiding this comment.
Fine! I have tested the changes with the Calvalus OGC-API processes service which triggered investigation of this issue with the landing page disabled. The changes fix app startup and emit a warning as intended.
Before (v0.4.0)
After (b59de38)
With the warning:
[...]/eozilla/cuiman/src/cuiman/app/launch.py:232: UserWarning: The service landing page returned HTTP 404. OGC API - Processes requires a landing page, but process discovery works. Continuing without service metadata; service conformance is unknown.
return await self._proxy_request(request, path)
pont-us
approved these changes
Nov 16, 2026
forman
deleted the
forman/258-cuiman_proxy_safeguards_and_diagnostics
branch
November 19, 2026 13:38
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.

Cuiman-launched apps could fail to connect when a processing service’s landing page returned HTTP 404, even when process discovery worked. Upstream redirects and changes submitted through the connection-error recovery dialog could also send browser requests outside Cuiman’s authenticated proxy, producing misleading CORS or authentication errors.
This PR improves connection recovery while keeping authentication managed by Python:
GET /returns 404, Cuiman checks/processesusing the authenticated client. A valid process list allows the app to continue with minimal service metadata. A Python warning and the service description identify the missing landing page without claiming service conformance./processescheck are reported. Invalid process-list responses leave the original landing-page 404 intact.Locationheader produce an actionable HTTP 502 response, with guidance about API URLs and reverse-proxy routing. Redirect targets and credentials are excluded from error messages.The landing-page fallback applies only to root GET requests through the app proxy. Explicit Python
get_capabilities()calls retain their existing behavior. The app does not currently request/conformance, and no conformance declarations are synthesized.Includes regression tests, updated documentation and changelog, and rebuilt frontend assets.
Checklist (strike out non-applicable):
CHANGES.mdCHANGES.mddocs/*