Skip to content

docs: show Rampart as the sensitive info backend everywhere - #272

Merged
davidmytton merged 4 commits into
mainfrom
david/cursor/rampart-sensitive-info-docs-7d72
Oct 14, 2026
Merged

davidmytton merged 4 commits into
mainfrom
david/cursor/rampart-sensitive-info-docs-7d72

Conversation

@davidmytton

Copy link
Copy Markdown
Contributor

Every sensitive info example in the docs, docstrings, and examples now passes backend=rampart() from arcjet-sensitive-info-rampart, and Rampart is described as the recommended backend. References to the bundled WebAssembly backend and its custom detect callback are removed from user-facing docs. Library behaviour is unchanged.

  • README.md: the quick start, the sensitive information section, the LangChain examples, and the Guard examples all use Rampart and tell you to install arcjet[sensitive-info-rampart]. The "default backend detects four types" text and the custom detect callback example are gone, replaced by the full list of entity types Rampart detects.
  • sensitive-info-rampart/README.md: the package is described as the recommended backend instead of an opt-in alternative.
  • Public docstrings (detect_sensitive_info, SensitiveInfoEntityType, LocalDetectSensitiveInfo, SensitiveInfoConfig.backend, SensitiveInfoBackend, SENSITIVE_INFO_ENTITY_TYPES): the examples use rampart(), and the "default (WASM) backend" wording is removed.
  • Examples: every example that uses sensitive info (fastapi, flask, both LangChain apps, and the eight Guard adapter apps, including their verify.py harnesses) passes backend=rampart() and depends on arcjet[sensitive-info-rampart]. Committed lockfiles were regenerated.

When backend is omitted, the library still uses the WASM engine. Making Rampart the actual default would be a code change and is not part of this PR.

Open in Web Open in Cursor 

@socket-security

socket-security Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

All alerts resolved. Learn more about Socket for GitHub.

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

Ignoring alerts on:

  • pypi/arcjet-sensitive-info-rampart@1.4.0
  • pypi/arcjet-sensitive-info-rampart@1.4.0
  • pypi/filelock@4.0.12
  • pypi/filelock@4.0.12
  • pypi/fsspec@2026.9.0
  • pypi/fsspec@2026.9.0
  • pypi/hf-xet@1.7.0
  • pypi/hf-xet@1.7.0
  • pypi/hf-xet@1.7.0
  • pypi/hf-xet@1.7.0
  • pypi/hf-xet@1.7.0
  • pypi/hf-xet@1.7.0
  • pypi/hf-xet@1.7.0
  • pypi/hf-xet@1.7.0
  • pypi/hf-xet@1.7.0
  • pypi/hf-xet@1.7.0
  • pypi/hf-xet@1.7.0
  • pypi/hf-xet@1.7.0
  • pypi/hf-xet@1.7.0
  • pypi/hf-xet@1.7.0
  • pypi/hf-xet@1.7.0
  • pypi/hf-xet@1.7.0
  • pypi/hf-xet@1.7.0
  • pypi/huggingface-hub@1.33.0
  • pypi/huggingface-hub@1.33.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0
  • pypi/tomli@2.5.0

View full report

@davidmytton
davidmytton marked this pull request as ready for review October 14, 2026 16:39
@davidmytton

Copy link
Copy Markdown
Contributor Author

@SocketSecurity ignore-all

@arcjet-review arcjet-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arcjet Review — 🟢 Low Risk

Decision: Approved

Rationale: Documentation-only change: README, package README, docstrings, and example apps are updated to recommend and demonstrate the Rampart sensitive-info backend. Library behaviour is unchanged — no runtime code paths, validation, or defaults are modified. Example pyproject.toml files add the sensitive-info-rampart extra, which is a dependency surface change but limited to examples (not the published SDK's install metadata).

Summary of Changes

Switches all user-facing documentation and example apps to present Rampart (arcjet[sensitive-info-rampart], backend=rampart()) as the recommended sensitive-info backend. Updates README.md, sensitive-info-rampart/README.md, docstrings in _rules.py, _sensitive_info_backend.py, guard/_rules/_sensitive_info.py, and guard/_types.py, and modifies every example's main.py/verify.py/pyproject.toml to pass backend=rampart() and depend on the extra. Removes the custom detect callback example and 'default backend detects four types' wording from user-facing docs. The library still falls back to the WASM backend when backend is omitted — this PR does not change that default.

Escalation Triggers

  • Dependency Changes: Multiple pyproject.toml files in examples/ add the sensitive-info-rampart extra and a local [tool.uv.sources] entry. Scope is limited to example projects — the published SDK's dependency set is unaffected.

Notes

Diff is ~400 lines of substantive change spread across many files, well under the 1000-line threshold. No tests appear to have been updated, but no runtime behaviour was changed, so new test coverage isn't warranted. The author's own note that making Rampart the actual default would require a code change is accurate — this PR leaves the WASM fallback intact.

Path filtering: 9 files excluded by ignore paths. 37 of 46 files included in review.

Review: 17a9b071 | Model: anthropic/claude-opus-4-7 | Powered by Arcjet Review

Comment thread src/arcjet/_rules.py
Comment thread src/arcjet/guard/_types.py
Comment thread README.md
Co-authored-by: david <david@arcjet.com>
@davidmytton
davidmytton enabled auto-merge October 14, 2026 16:47
Co-authored-by: david <david@arcjet.com>
@arcjet-review arcjet-review Bot added the ready Ready to merge label Oct 14, 2026
@davidmytton
davidmytton added this pull request to the merge queue Oct 14, 2026
Merged via the queue into main with commit 929976c Oct 14, 2026
32 checks passed
@davidmytton
davidmytton deleted the david/cursor/rampart-sensitive-info-docs-7d72 branch October 14, 2026 18:12
@arcjet-review arcjet-review Bot removed the ready Ready to merge label Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants