Skip to content

feat(providers): warn instead of blocking plain HTTP endpoints - #106

Merged
JUNERDD merged 1 commit into
JUNERDD:mainfrom
Luohao-Yan:feat/provider-http-warning
Nov 9, 2026
Merged

JUNERDD merged 1 commit into
JUNERDD:mainfrom
Luohao-Yan:feat/provider-http-warning

Conversation

@Luohao-Yan

Copy link
Copy Markdown
Contributor

Summary

  • Allow http:// provider endpoints to be saved instead of rejecting every non-loopback HTTP URL.
  • Show an inline warning under the Base URL when plain HTTP is used outside loopback, so the user can make an informed choice.
  • Keep rejecting endpoints that embed credentials, queries or fragments.

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

Endpoint Save Warning
https://... yes no
http://127.0.0.1:... / http://localhost:... yes no
http://192.168.1.20:... / public HTTP yes yes

The warning states that API keys and conversation data are not encrypted in transit.

Tests

  • pnpm --filter @atd/desktop test — 139 tests passed
  • pnpm --filter @atd/desktop typecheck
  • pnpm exec oxlint on changed TypeScript files

@vercel

vercel Bot commented Nov 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
atd-agent Skipped Skipped Nov 9, 2026 8:48am UTC

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T08:52:07.595767Z db02736 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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) && (

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@JUNERDD
JUNERDD merged commit 23cc579 into JUNERDD:main Nov 9, 2026
10 checks passed

This branch was previously deployed

1 inactive deployment
Preview — db027364 Deployed Nov 9, 2026 by vercel[bot]
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