Skip to content

fix(api): guard OpenAPI auth fallback origin - #71

Merged
patricksmill merged 2 commits into
mainfrom
cursor/critical-bug-management-eed4
Sep 28, 2026
Merged

patricksmill merged 2 commits into
mainfrom
cursor/critical-bug-management-eed4

Conversation

@cursor

@cursor cursor Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Summary

OpenAPI discovery now only attaches configured auth headers to candidate URLs that match the resolved OpenAPI origin (scheme, host, and port). This prevents HTTP-configured clients from sending credentials to HTTPS fallback services while preserving authenticated same-origin discovery.

Crate(s)

  • romm-api
  • romm-cli
  • romm-tui
  • docs / CI only

Checklist

  • cargo +stable fmt --all -- --check passes
  • Both scoped clippy runs pass: cargo +stable clippy -p romm-api --all-features -- -D warnings and cargo +stable clippy -p romm-api --no-default-features -- -D warnings
  • Scoped tests pass: cargo +stable test -p romm-api (API-only security fix)
  • PR title uses Conventional Commits with the right scope for the changelog
  • No secrets, tokens, or personal config in the diff
  • User-facing changes documented in the relevant docs/*.md if needed (not needed for this internal security guard)
Open in Web View Automation 

cursoragent and others added 2 commits September 28, 2026 16:30
Co-authored-by: Patrick Mill <patricksmill@users.noreply.github.com>
Co-authored-by: Patrick Mill <patricksmill@users.noreply.github.com>
@patricksmill
patricksmill marked this pull request as ready for review September 28, 2026 20:30
@patricksmill
patricksmill force-pushed the cursor/critical-bug-management-eed4 branch from ae91a17 to 64cefe3 Compare September 28, 2026 20:30
@patricksmill
patricksmill merged commit cce55f6 into main Sep 28, 2026
@patricksmill
patricksmill deleted the cursor/critical-bug-management-eed4 branch September 28, 2026 20:30
@github-actions github-actions Bot mentioned this pull request Sep 28, 2026
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