Repository navigation
Conversation
SECURITY.md gives the SDK its own reporting channels, timeline and reporter credit rules, matching the Infrahub security policy. .oss-scanner/ holds the Dockerfile and threat model that Anthropic's OSS Scanner uses to build the SDK offline and scope its reports. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UwJNFsrR4GjFKkZ17VBq8S
Deploying infrahub-sdk-python with
|
| Latest commit: |
a54339e
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://b1fc09aa.infrahub-sdk-python.pages.dev |
| Branch Preview URL: | https://feat-gracious-sagan-wfzuii.infrahub-sdk-python.pages.dev |
…ubric uv run tried to sync the environment in the offline scan, and the rubric rated a Jinja2 sandbox escape as both critical and high. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…files Anthropic's OSS Scanner now reads report_guidelines.md and patch_guidelines.md for how reports and patches should look, and keeps threat_model.md for scope and severity. The guidelines name the facts each report must state, and point patches at the SDK's async/sync, test, branch and changelog conventions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
We plan to enroll the SDK in Anthropic's OSS Scanner, a free service that scans open-source projects for vulnerabilities. To enroll, the project needs:
SECURITY.mdor a similar file. Anthropic checks this before sending reports. The SDK has noSECURITY.mdtoday.The enrollment itself is a separate pull request on anthropics/oss-scanner. It pins the
stablebranch, so this PR has to merge first.What changed
SECURITY.md: same reporting channels, timeline and reporter credit rules as the Infrahub security policy, with the GitHub advisory link pointing to this repo. Server vulnerabilities are sent to the Infrahub policy..oss-scanner/Dockerfile: Python 3.14.10,uv sync --all-groups --all-extras, then runs the unit tests without failing the build, as Anthropic's template recommends.UV_NO_SYNCandUV_OFFLINEkeepuv runfrom trying to sync during the offline scan..oss-scanner/threat_model.md: what the SDK does, where untrusted input enters, what is trusted by design (Python code and Jinja2 template files from Git repositories), what is out of scope, and a severity rubric..oss-scanner/report_guidelines.md: the layout of a report and the facts it must state, such as what the attacker controls and whether the proof of concept was run..oss-scanner/patch_guidelines.md: how big a fix should be, the same fix in the async and sync clients, and the SDK's code, test, branch and changelog conventions.How to review
Please check these points in particular:
threat_model.md. It is a proposal and decides which reports reach us, because we only receive high and critical.How to test
Ran Anthropic's own
tools/checkon this branch: it clones the branch, builds the Dockerfile, adds the scanner's layer (Claude Code, debuggers, compilers) and checks that the image starts without a network. Result:infrahub-sdk-python builds, with 2063 unit tests passed during the build.Then, in the finished image, with no network, 2 CPUs and 8 GB (the scanner's agent machine):
The test session's network goes through a proxy, so the local run differed from Anthropic's in three places: the Python base image also trusted the proxy's certificate and used Debian's mirror over HTTPS, a local registry served that one image, and builds used the host network as in the scanner's build machines.
tools/checkand the Dockerfile ran unchanged.Markdown lint:
rumdl check SECURITY.md .oss-scanner/*.mdpasses.When squash merging, remove the session link line from the first commit's message.
Checklist
Generated by Claude Code