Skip to content

DOC: Describe the backend input validation and trust boundary - #3342

Open
varunj-msft wants to merge 5 commits into
microsoft:mainfrom
varunj-msft:varunj-msft/10765-Trust-Boundary-Docs
Open

varunj-msft wants to merge 5 commits into
microsoft:mainfrom
varunj-msft:varunj-msft/10765-Trust-Boundary-Docs

Conversation

@varunj-msft

@varunj-msft varunj-msft commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adds an "Input Validation and Trust Boundary" section to pyrit/backend/README.md, after "Request Limits". It lists what the backend checks before it uses request values: request limits, component parameters, file values and blob URLs, the configuration routes and target settings that need an administrator, and the HTTP target upload folder. It says who counts as an API caller and an administrator in Entra and local mode, and lists the intentional exceptions under the model that API callers are trusted operators: network destinations, server credentials used by targets created without a key, shared registered components, prompt content, stored file types, unauthenticated GET /api/media, trusted initializers, and the parameters that may name local folders.

It covers behavior added in #3050, #3061, #3172, #3173, #3174, #3212, and #3247, along with older backend behavior that was not written down. Scoping server credentials for caller-chosen endpoints is tracked separately; this PR only documents the current behavior.

Tests and Documentation

Documentation only.

  • pytest -n 4 --dist=loadfile tests/unit/backend/test_authentication_policy.py tests/unit/backend/test_auth_middleware.py tests/unit/backend/test_auth_route.py tests/unit/backend/test_configuration_routes.py tests/unit/backend/test_converter_service.py tests/unit/backend/test_mappers.py tests/unit/backend/test_media_persistence.py tests/unit/backend/test_media_route.py tests/unit/backend/test_scorer_routes.py tests/unit/backend/test_scorer_service.py tests/unit/backend/test_target_service.py: 696 passed, 4 skipped.

No JupyText changes.

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