chore(python): update to 0.9.0#187
Conversation
There was a problem hiding this comment.
Arcjet Review — 🟢 Low Risk
Decision: Approved
Rationale: This PR is a routine version bump of the arcjet Python SDK from 0.8.0 to 0.9.0 in two example projects (FastAPI and Flask). The user-facing change is the graduation of experimental_detect_prompt_injection to detect_prompt_injection (stable API), with the import and call sites updated accordingly. Dockerfiles are switched from python3.10-alpine to python3.10-trixie-slim. No application logic, auth, secrets, or infrastructure code is touched — these are example apps. No security concerns identified.
Summary of Changes
Bumps the arcjet Python SDK from 0.8.0 to 0.9.0 in the FastAPI and Flask examples, renames experimental_detect_prompt_injection → detect_prompt_injection (now stable), and switches both example Dockerfiles from Alpine to Debian Trixie slim base images.
Escalation Triggers
- Dependency Changes: pyproject.toml files updated to pin arcjet 0.9.0
- CI/CD Pipeline: Dockerfile base image changed from alpine to trixie-slim in both example apps
Notes
Diff is small (~12 changed lines) and well within the 1000-line threshold. Loaded the security-review skill and found no issues: no secrets, no auth changes, no injection surface introduced, and the prompt-injection-detection rule semantics are unchanged (just an API rename from experimental to stable).
Path filtering: 2 files excluded by ignore paths. 6 of 8 files included in review.
Review: 95cf5cda | Model: anthropic/claude-opus-4-7 | Powered by Arcjet Review
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
Update python examples to 0.9.0 version of the Python SDK
Notably we had to switch from
astral/uv:python3.10-alpinetoastral/uv:python3.10-trixie-slimwhich appears to be an upstream change inalpine. I'll open an issue to track it in arcjet-py