docs(#376): add secure HTTP client guidance to AGENTS.md - #421
docs(#376): add secure HTTP client guidance to AGENTS.md#421fullsend-ai-coder[bot] wants to merge 2 commits into
Conversation
Add a "Secure HTTP clients" subsection under "Go code" documenting required security properties for outbound HTTP clients. Points agents to the SSRF-hardened fetch package (internal/fetch/) and lists the mandatory protections when a custom client is needed: HTTPS-only, DNS pre-resolution with IP validation via netutil, IP-pinned DialContext, redirect blocking, explicit timeout, and response size limiting. Prohibits http.Get and http.DefaultClient for external URLs from configuration or user input. Closes #376
|
🤖 Finished Review · ✅ Success · Started 12:01 PM UTC · Completed 12:08 PM UTC |
Review — ApprovePR: docs(#376): add secure HTTP client guidance to AGENTS.md SummaryThis PR adds a well-structured "Secure HTTP clients" subsection under "Go code" in AGENTS.md, documenting SSRF hardening requirements for outbound HTTP clients. The change directly traces to issue #376 (retro from PR fullsend-ai#3002's iterative security fixes) and stays within its authorized scope. VerificationAll technical claims in the new documentation were verified against the current codebase:
Dimensions reviewed
Actionable follow-upPre-existing doc staleness (
Previous runReview — ApproveClean documentation PR that adds SSRF-hardened HTTP client guidance to AGENTS.md. All six referenced identifiers ( Verified
Low-severity notes
None of these block merge.
Previous run (2)Review — approveSummary: This PR adds well-written, technically accurate security guidance for outbound HTTP clients to AGENTS.md. Every claim in the documentation was verified against the actual source code in The PR deviates from issue #376 in two ways that are improvements: (1) it references Three low-severity gaps in the custom-client checklist are noted below as follow-up improvements. Findings
None of these gaps affect the accuracy of the existing guidance — they are additive improvements that would make the checklist more comprehensive. The PR is safe to merge as-is; these can be addressed in a follow-up. 🤖 Reviewed with fullsend
Labels: PR adds security-focused developer guidance documentation to AGENTS.md |
|
/fs-review |
|
🤖 Finished Review · ✅ Success · Started 1:18 PM UTC · Completed 1:25 PM UTC |
|
/fs-fix |
|
🤖 Finished Fix · ✅ Success · Started 1:51 PM UTC · Completed 2:00 PM UTC |
- Add Transport.Proxy bullet to custom-client checklist (proxy omission) - Fix bold formatting to use label-colon pattern for consistency Addresses review feedback on #421
🔧 Fix agent — iteration 1 (human-triggered)Addressed both low-severity review findings: added Transport.Proxy bullet to custom-client checklist and fixed bold formatting to use consistent label-colon pattern. Fixed (2):
Tests: passed Updated by fullsend fix agent |
|
/fs-review |
1 similar comment
|
/fs-review |
|
🤖 Finished Review · ✅ Success · Started 6:39 AM UTC · Completed 6:47 AM UTC |
Add a "Secure HTTP clients" subsection under "Go code" documenting required security properties for outbound HTTP clients. Points agents to the SSRF-hardened fetch package (internal/fetch/) and lists the mandatory protections when a custom client is needed: HTTPS-only, DNS pre-resolution with IP validation via netutil, IP-pinned DialContext, redirect blocking, explicit timeout, and response size limiting. Prohibits http.Get and http.DefaultClient for external URLs from configuration or user input.
Closes #376
Post-script verification
agent/376-secure-http-guidance)aa6585ddb3dff17dccfd4dba8b6c5c306275156a..HEAD)