Skip to content

test: add trust-boundary property tests and state the reporting channel - #373

Draft
ffroliva wants to merge 11 commits into
mainfrom
test/0.11.0-t0.7-fuzz-security
Draft

ffroliva wants to merge 11 commits into
mainfrom
test/0.11.0-t0.7-fuzz-security

Conversation

@ffroliva

@ffroliva ffroliva commented Dec 5, 2026

Copy link
Copy Markdown
Owner

Summary

Task 0.7 of the 0.11.0 plan (#367): property tests at the trust boundary and the vulnerability reporting channel.

  • tests/fuzz/test_trust_boundary_fuzz.py (new): Hypothesis property tests for extract_request_host (never raises;
    an accepted host re-joined as a Host value extracts to the same host) and parse_mode (never raises; an accepted
    mode parses to itself). Each runs in under one second. Later tasks add the serialized-origin and Link parser
    properties to the same file.
  • SECURITY.md: private vulnerability reporting is enabled, so the "Report a vulnerability" button on the Security tab
    is the reporting channel; the placeholder-issue route is removed; reports are acknowledged within 7 days.
  • tests/docs/test_procurement_docs.py: the reporting-section test pins the new text.

This pull request is stacked on the 0.11.0 integration branch (#368, #369, #370); review the last commit.

Red evidence

Change Test Red on the previous text
reporting channel and acknowledgement window tests/docs/test_procurement_docs.py::test_security_policy_has_private_reporting_route RED (assertion under tests/)

The property tests guard behaviour that already holds; they pass on the previous code by design.

Repository settings (maintainer, not changed by this pull request)

  • CodeQL default setup query suite extended:
    gh api -X PATCH repos/ffroliva/sharpit/code-scanning/default-setup -f query_suite=extended.
  • Secret scanning: non-provider patterns and validity checks on.
  • A decision on a required-review policy for a single-maintainer repository.
  • The OpenSSF Best Practices badge.

After merge, the Scorecard alert states are read and recorded; no alert is reported as closed before the next
Scorecard run.

Verification

uv run ruff check, uv run ruff format --check, uv run pyright (0 errors);
uv run pytest -q -n 4 tests/fuzz tests/docs.

This branch has not been deployed

No deployments
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.

1 participant