Skip to content

fix(utils): accept loopback http relay URLs - #337

Merged
gosunuts merged 1 commit into
mainfrom
fix/loopback-http-portal-url
Aug 28, 2026
Merged

fix(utils): accept loopback http relay URLs#337
gosunuts merged 1 commit into
mainfrom
fix/loopback-http-portal-url

Conversation

@gosunuts

Copy link
Copy Markdown
Member

relay-server --portal-url http://127.0.0.1:<api-port> exited with relay url must use https and never reached the localhost development-certificate path.

Loopback http:// URLs now rewrite to https:// in NormalizeRelayURL. Public http:// relay URLs stay rejected.

Tests: TestNormalizeRelayURLRewritesLoopbackHTTP, TestNormalizeRelayURLRejectsNonLoopbackHTTP.

Replay of the original command no longer fails at URL normalize; the next error is the documented missing embedded frontend (make build-frontend).

Closes #336

Post-Deploy Monitoring & Validation

No production relay impact. Confirm a loopback http://127.0.0.1 portal-url starts past URL normalize. If a non-loopback http:// relay URL is accepted, revert.

Loopback http --portal-url died in NormalizeRelayURL before
the localhost development certificate path. Rewrite loopback
http to https. Non-loopback http is still rejected.

Closes #336
@coderabbitai

coderabbitai Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 3 minutes.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: e579bb16-3041-410b-b602-182fef20d75d

📥 Commits

Reviewing files that changed from the base of the PR and between cfb06ea and 1ebdbd2.

📒 Files selected for processing (2)
  • utils/relayurl_test.go
  • utils/utils.go

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gosunuts
gosunuts merged commit d895ac1 into main Aug 28, 2026
7 checks passed
@gosunuts
gosunuts deleted the fix/loopback-http-portal-url branch August 28, 2026 04:58
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.

Loopback http --portal-url never reaches localhost dev certificates

1 participant