feat: add --chat-hook-allow-insecure to allow plain HTTP chat hook URLs - #27896
Conversation
|
@codex review |
Docs previewCheck off each page once it's been reviewed. If a page changes in a later push, its checkbox clears automatically so it gets a fresh look. Pages not yet wired into the docs navigation aren't listed here. |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
Security review of Done well
Suggestions
|
jdomeracki-coder
left a comment
There was a problem hiding this comment.
Non blocking suggestions in the comment above
|
Thanks for the review. Addressed the non-blocking suggestions in 779e11f and 31b466d:
|
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 31b466d84f
ℹ️ 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".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8126f28096
ℹ️ 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".
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Adds a hidden
--chat-hook-allow-insecure/CODER_CHAT_HOOK_ALLOW_INSECUREdeployment option (defaultfalse) that allows the chat lifecycle hook URL to use plain HTTP for any host.The HTTPS requirement is enforced at two points, and the flag relaxes both:
DeploymentValues.Validate()rejectshttphook URLs at startup, and the hook dispatcher'svalidateHookURLallowshttponly for loopback hosts. With the flag set, any-hosthttpis accepted; the host, fragment/userinfo, secret, and timeout checks are unchanged, and non-http(s) schemes still fail. This removes the need for an HTTPS reverse proxy when testing a hook consumer on a trusted network.Following security review feedback, the flag description and docs state that plain HTTP lets an on-path attacker forge hook responses (which control agent execution), and
coder serverlogs a startup warning (with a redacted hook URL) when hooks run over plain HTTP.Docs, generated API types, and the server config golden are updated accordingly.