René's URL Explorer Experiment


Title: chore: forbid direct response body JSON decode in codersdk by dylanhuff-at-coder · Pull Request #27859 · coder/coder · GitHub

Open Graph Title: chore: forbid direct response body JSON decode in codersdk by dylanhuff-at-coder · Pull Request #27859 · coder/coder

X Title: chore: forbid direct response body JSON decode in codersdk by dylanhuff-at-coder · Pull Request #27859 · coder/coder

Description: Secure environments for developers and their agents - chore: forbid direct response body JSON decode in codersdk by dylanhuff-at-coder · Pull Request #27859 · coder/coder

Open Graph Description: Add a ruleguard rule forbidding direct json.NewDecoder(res.Body).Decode(...) on *http.Response in codersdk packages, so new typed endpoints use codersdk.ReadBodyAsJSON and keep returning structured...

X Description: Add a ruleguard rule forbidding direct json.NewDecoder(res.Body).Decode(...) on *http.Response in codersdk packages, so new typed endpoints use codersdk.ReadBodyAsJSON and keep returning structured...

Opengraph URL: https://github.com/coder/coder/pull/27859

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:901fb7d1-6a60-7514-b833-37a746effe74
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBBD0:269AD9:182992D:20455C1:6B0148B0
html-safe-nonce0422c3fe812c08a16240d6a0033df38b92991c8e41d0299cc822edd4f82733d3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkQwOjI2OUFEOToxODI5OTJEOjIwNDU1QzE6NkIwMTQ4QjAiLCJ2aXNpdG9yX2lkIjoiODk5MDMwNTgzNDg3ODQyNDgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5f0e37bc432d70f2e2f30731e3aa62c9c299c68bf90060f60f5608e475be6718
hovercard-subject-tagpull_request:4205643310
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/coder/coder/27859/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/742a5126ed45d274b6a4f61cd576a2ee7a971eb10d9cb06b64abac0a1feb6eaf/coder/coder/pull/27859
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/742a5126ed45d274b6a4f61cd576a2ee7a971eb10d9cb06b64abac0a1feb6eaf/coder/coder/pull/27859
og:image:altAdd a ruleguard rule forbidding direct json.NewDecoder(res.Body).Decode(...) on *http.Response in codersdk packages, so new typed endpoints use codersdk.ReadBodyAsJSON and keep returning structured...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedylanhuff-at-coder
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-cache
go-importgithub.com/coder/coder git https://github.com/coder/coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id440752086
octolytics-dimension-repository_nwocoder/coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440752086
octolytics-dimension-repository_network_root_nwocoder/coder
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/coder/coder/pull/27859#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F27859
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F27859
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/pull/27859
Reloadhttps://github.com/coder/coder/pull/27859
Reloadhttps://github.com/coder/coder/pull/27859
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests469 (469)https://github.com/coder/coder/pulls
Discussionshttps://github.com/coder/coder/discussions
Actionshttps://github.com/coder/coder/actions
Projectshttps://github.com/coder/coder/projects
Security and quality49 (49)https://github.com/coder/coder/security
Insightshttps://github.com/coder/coder/insights
https://github.com/coder/coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
mainhttps://github.com/coder/coder/tree/main
dylan/plat-378-ruleguard-json-decodehttps://github.com/coder/coder/tree/dylan/plat-378-ruleguard-json-decode
Conversationhttps://github.com/coder/coder/pull/27859
Commits2 (2)https://github.com/coder/coder/pull/27859/commits
Checkshttps://github.com/coder/coder/pull/27859/checks
Files changedhttps://github.com/coder/coder/pull/27859/files
chore: forbid direct response body JSON decode in codersdkhttps://github.com/coder/coder/pull/27859#top
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
mainhttps://github.com/coder/coder/tree/main
dylan/plat-378-ruleguard-json-decodehttps://github.com/coder/coder/tree/dylan/plat-378-ruleguard-json-decode
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
Aug 4, 2026https://github.com/coder/coder/pull/27859#issue-5063143887
Please reload this pagehttps://github.com/coder/coder/pull/27859
#27804https://github.com/coder/coder/pull/27804
#27857https://github.com/coder/coder/pull/27857
#27858https://github.com/coder/coder/pull/27858
#27044https://github.com/coder/coder/issues/27044
refactor(codersdk): use ReadBodyAsJSON in typed endpoints #27857https://github.com/coder/coder/pull/27857
refactor(codersdk): use shared error helpers in chat endpoints #27858https://github.com/coder/coder/pull/27858
chore: forbid direct response body JSON decode in codersdk #27859https://github.com/coder/coder/pull/27859
@dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
Please reload this pagehttps://github.com/coder/coder/pull/27859
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
Aug 4, 2026https://github.com/coder/coder/pull/27859#issuecomment-5182396630
PLAT-378https://linear.app/codercom/issue/PLAT-378
Please reload this pagehttps://github.com/coder/coder/pull/27859
https://github.com/dylanhuff-at-coder
https://github.com/apps/graphite-app
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
Aug 4, 2026https://github.com/coder/coder/pull/27859#issuecomment-5182397974
Please reload this pagehttps://github.com/coder/coder/pull/27859
chore: forbid direct response body JSON decode in codersdk #27859https://github.com/coder/coder/pull/27859
https://app.graphite.com/github/pr/coder/coder/27859?utm_source=stack-comment-icon
(View in Graphite)https://app.graphite.com/github/pr/coder/coder/27859?utm_source=stack-comment-view-in-graphite
refactor(codersdk): use shared error helpers in chat endpoints #27858https://github.com/coder/coder/pull/27858
https://app.graphite.com/github/pr/coder/coder/27858?utm_source=stack-comment-icon
refactor(codersdk): use ReadBodyAsJSON in typed endpoints #27857https://github.com/coder/coder/pull/27857
https://app.graphite.com/github/pr/coder/coder/27857?utm_source=stack-comment-icon
fix: add codersdk JSON response decoder for typed API endpoints #27804https://github.com/coder/coder/pull/27804
https://app.graphite.com/github/pr/coder/coder/27804?utm_source=stack-comment-icon
Graphitehttps://graphite.dev?utm-source=stack-comment
stackinghttps://stacking.dev/?utm_source=stack-comment
Please reload this pagehttps://github.com/coder/coder/pull/27859
refactor(codersdk): use ReadBodyAsJSON in typed endpoints #27857 https://github.com/coder/coder/pull/27857
fix: add codersdk JSON response decoder for typed API endpoints #27804 https://github.com/coder/coder/pull/27804
refactor(codersdk): use shared error helpers in chat endpoints #27858 https://github.com/coder/coder/pull/27858
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
Aug 4, 2026https://github.com/coder/coder/pull/27859#event-28964485739
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
force-pushedhttps://github.com/coder/coder/compare/d348fe3f6d016543d6fc43770bf66eb83da79d78..f41adacfd4587ee2bcfa79c5663cb3c996727d1b
d348fe3https://github.com/coder/coder/commit/d348fe3f6d016543d6fc43770bf66eb83da79d78
f41adachttps://github.com/coder/coder/commit/f41adacfd4587ee2bcfa79c5663cb3c996727d1b
Compare https://github.com/coder/coder/compare/d348fe3f6d016543d6fc43770bf66eb83da79d78..f41adacfd4587ee2bcfa79c5663cb3c996727d1b
August 5, 2026 17:52https://github.com/coder/coder/pull/27859#event-29025294314
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
force-pushedhttps://github.com/coder/coder/compare/c50480e007ad224d1cf25cad12b0c9da19b70958..8708970f98541e5575410ac6b3e0577fb9eda55c
c50480ehttps://github.com/coder/coder/commit/c50480e007ad224d1cf25cad12b0c9da19b70958
8708970https://github.com/coder/coder/commit/8708970f98541e5575410ac6b3e0577fb9eda55c
Compare https://github.com/coder/coder/compare/c50480e007ad224d1cf25cad12b0c9da19b70958..8708970f98541e5575410ac6b3e0577fb9eda55c
August 5, 2026 17:52https://github.com/coder/coder/pull/27859#event-29025294893
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
Aug 5, 2026 https://github.com/coder/coder/pull/27859#ref-commit-76ae643
https://github.com/dylanhuff-at-coder
refactor(codersdk): use ReadBodyAsJSON in typed endpoints (https://github.com/coder/coder/commit/76ae64391a78adf9077e04fcd1b79206ffb5dd00
#27857https://github.com/coder/coder/pull/27857
)https://github.com/coder/coder/commit/76ae64391a78adf9077e04fcd1b79206ffb5dd00
76ae643https://github.com/coder/coder/commit/76ae64391a78adf9077e04fcd1b79206ffb5dd00
#27804https://github.com/coder/coder/pull/27804
#27858https://github.com/coder/coder/pull/27858
#27859https://github.com/coder/coder/pull/27859
#27044https://github.com/coder/coder/issues/27044
@dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
force-pushedhttps://github.com/coder/coder/compare/8708970f98541e5575410ac6b3e0577fb9eda55c..c8446386d1019b181d7af4f610291f39b7ab8d63
8708970https://github.com/coder/coder/commit/8708970f98541e5575410ac6b3e0577fb9eda55c
c844638https://github.com/coder/coder/commit/c8446386d1019b181d7af4f610291f39b7ab8d63
Compare https://github.com/coder/coder/compare/8708970f98541e5575410ac6b3e0577fb9eda55c..c8446386d1019b181d7af4f610291f39b7ab8d63
August 5, 2026 20:31https://github.com/coder/coder/pull/27859#event-29032538301
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
Aug 5, 2026 https://github.com/coder/coder/pull/27859#ref-commit-ed10064
https://github.com/dylanhuff-at-coder
refactor(codersdk): use shared error helpers in chat endpoints (https://github.com/coder/coder/commit/ed10064748101088290170faa3bf8115e4c38c84
#27858https://github.com/coder/coder/pull/27858
)https://github.com/coder/coder/commit/ed10064748101088290170faa3bf8115e4c38c84
ed10064https://github.com/coder/coder/commit/ed10064748101088290170faa3bf8115e4c38c84
#27857https://github.com/coder/coder/pull/27857
#27859https://github.com/coder/coder/pull/27859
#27044https://github.com/coder/coder/issues/27044
@dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
August 5, 2026 21:41https://github.com/coder/coder/pull/27859#event-29035486769
https://github.com/dylanhuff-at-coder
chore: forbid direct response body JSON decode in codersdkhttps://github.com/coder/coder/pull/27859/commits/ca750d8e34a9cd23cb4bd32ecc7e899b0c04a889
ca750d8https://github.com/coder/coder/pull/27859/commits/ca750d8e34a9cd23cb4bd32ecc7e899b0c04a889
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
force-pushedhttps://github.com/coder/coder/compare/f41adacfd4587ee2bcfa79c5663cb3c996727d1b..ca750d8e34a9cd23cb4bd32ecc7e899b0c04a889
f41adachttps://github.com/coder/coder/commit/f41adacfd4587ee2bcfa79c5663cb3c996727d1b
ca750d8https://github.com/coder/coder/commit/ca750d8e34a9cd23cb4bd32ecc7e899b0c04a889
Compare https://github.com/coder/coder/compare/f41adacfd4587ee2bcfa79c5663cb3c996727d1b..ca750d8e34a9cd23cb4bd32ecc7e899b0c04a889
August 5, 2026 21:48https://github.com/coder/coder/pull/27859#event-29035730836
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
August 5, 2026 21:50https://github.com/coder/coder/pull/27859#event-29035812832
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
BobbyHohttps://github.com/BobbyHo
August 5, 2026 22:20https://github.com/coder/coder/pull/27859#event-29036926590
https://github.com/BobbyHo
BobbyHohttps://github.com/BobbyHo
Aug 5, 2026https://github.com/coder/coder/pull/27859#issuecomment-5198361121
coder/codersdk/licenses.gohttps://github.com/coder/coder/blob/ca750d8e34a9cd23cb4bd32ecc7e899b0c04a889/codersdk/licenses.go#L108-L111
ca750d8https://github.com/coder/coder/commit/ca750d8e34a9cd23cb4bd32ecc7e899b0c04a889
#27044https://github.com/coder/coder/issues/27044
#1https://github.com/coder/coder/pull/1
Please reload this pagehttps://github.com/coder/coder/pull/27859
https://github.com/BobbyHo
BobbyHohttps://github.com/BobbyHo
Aug 5, 2026 https://github.com/coder/coder/pull/27859#pullrequestreview-4869514768
View reviewed changes https://github.com/coder/coder/pull/27859/files/ca750d8e34a9cd23cb4bd32ecc7e899b0c04a889
BobbyHohttps://github.com/BobbyHo
https://github.com/coder/coder/pull/27859#pullrequestreview-4869514768
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/27859
https://github.com/dylanhuff-at-coder
chore: address review feedback on codersdk decode rulehttps://github.com/coder/coder/pull/27859/commits/f48321e58983ae6ddd21c9e13b561c0d411b684a
f48321ehttps://github.com/coder/coder/pull/27859/commits/f48321e58983ae6ddd21c9e13b561c0d411b684a
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
Aug 5, 2026https://github.com/coder/coder/pull/27859#issuecomment-5198639269
coder/codersdk/licenses.gohttps://github.com/coder/coder/blob/ca750d8e34a9cd23cb4bd32ecc7e899b0c04a889/codersdk/licenses.go#L108-L111
ca750d8https://github.com/coder/coder/commit/ca750d8e34a9cd23cb4bd32ecc7e899b0c04a889
#27044https://github.com/coder/coder/issues/27044
#1https://github.com/coder/coder/pull/1
f48321ehttps://github.com/coder/coder/commit/f48321e58983ae6ddd21c9e13b561c0d411b684a
Please reload this pagehttps://github.com/coder/coder/pull/27859
https://github.com/BobbyHo
BobbyHohttps://github.com/BobbyHo
August 5, 2026 23:43https://github.com/coder/coder/pull/27859#event-29039473812
https://github.com/BobbyHo
BobbyHohttps://github.com/BobbyHo
Aug 5, 2026 https://github.com/coder/coder/pull/27859#pullrequestreview-4869722106
View reviewed changes https://github.com/coder/coder/pull/27859/files/f48321e58983ae6ddd21c9e13b561c0d411b684a
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
9b27d12https://github.com/coder/coder/commit/9b27d129297449390ae0ebebaf99770c52f8a72f
Aug 6, 2026https://github.com/coder/coder/pull/27859#event-29075734491
Please reload this pagehttps://github.com/coder/coder/pull/27859
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
August 6, 2026 15:03https://github.com/coder/coder/pull/27859#event-29075736799
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Aug 6, 2026https://github.com/coder/coder/pull/27859#event-29075743550
https://github.co/hiddenchars
https://github.com/coder/coder/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F27859
https://github.com/BobbyHo
BobbyHo https://github.com/BobbyHo
https://github.com/coder/coder/pull/27859/files/f48321e58983ae6ddd21c9e13b561c0d411b684a
Please reload this pagehttps://github.com/coder/coder/pull/27859
https://github.com/dylanhuff-at-coder
dylanhuff-at-coder https://github.com/dylanhuff-at-coder
Please reload this pagehttps://github.com/coder/coder/pull/27859
https://github.com/dylanhuff-at-coder
https://github.com/BobbyHo
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.