Repository navigation
feat(providers): warn instead of blocking plain HTTP endpoints - #106
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: db02736492
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| onChange={(event) => change({ baseUrl: event.target.value })} | ||
| placeholder="https://your-provider.example/v1" | ||
| /> | ||
| {isInsecureEndpoint(draft.baseUrl) && ( |
There was a problem hiding this comment.
Keep HTTP warnings visible when editing saved connections
When a custom or Azure API-key connection with a remote http:// endpoint is reopened for editing, its nonempty draft.baseUrl makes the surrounding Advanced Collapsible start closed, hiding this warning. A user can add or replace the visible API key and save without seeing the disclosure that the credential will travel unencrypted; show the warning for insecure saved endpoints while the section is collapsed or move it outside the collapsed content.
Useful? React with 👍 / 👎.
Summary
http://provider endpoints to be saved instead of rejecting every non-loopback HTTP URL.Why
The previous validation made public or LAN HTTP model servers unusable: users could not save the connection at all. A warning preserves the security signal without removing the user's ability to connect to a server they trust.
Behavior
https://...http://127.0.0.1:.../http://localhost:...http://192.168.1.20:.../ public HTTPThe warning states that API keys and conversation data are not encrypted in transit.
Tests
pnpm --filter @atd/desktop test— 139 tests passedpnpm --filter @atd/desktop typecheckpnpm exec oxlinton changed TypeScript files