Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Evidence Commands

The evidence command group manages local evidence files and syncs them to the Pretorin platform.

Create Local Evidence

pretorin evidence create ac-02 fedramp-moderate \
  --name "RBAC Configuration" \
  --description "Role-based access control in Azure AD"

Creates a markdown file under evidence/<framework>/<control>/ with YAML frontmatter containing metadata (control ID, framework, name, type, status).

List Local Evidence

# List all local evidence
pretorin evidence list

# Filter by framework
pretorin evidence list --framework fedramp-moderate

Push Evidence to Platform

pretorin evidence push

Pushes local evidence files to the platform using find-or-create upsert logic. Exact matches are reused and reported separately.

Requires an active single scope from pretorin context set, unless both --system and --framework are provided explicitly.

Search Platform Evidence

# Search by control
pretorin evidence search --control-id ac-02 --framework-id fedramp-moderate

# Search by system
pretorin evidence search --system "My Application" --framework-id fedramp-moderate --limit 100

Upsert Evidence

Find-or-create evidence and link it to a control:

pretorin evidence upsert ac-02 fedramp-moderate \
  --name "RBAC Configuration" \
  --description "Role mapping in IdP" \
  --type configuration

This searches for an exact match on (name + description + type + control + framework) within the active system scope. If found, it reuses the existing item; otherwise, it creates a new one. It then ensures the evidence is linked to the specified control.

Evidence Types

Valid evidence types:

TypeDescription
policy_documentPolicy or procedure document (default)
screenshotScreenshot evidence
screen_recordingScreen recording
log_fileLog file extract
configurationConfiguration file or setting
test_resultTest output or report
certificateCertificate or attestation document
attestationSigned attestation
code_snippetCode excerpt
repository_linkLink to source repository
scan_resultSecurity scan output
interview_notesInterview or assessment notes
otherOther evidence type

Markdown Quality Requirements

Evidence descriptions must be auditor-ready markdown:

  • No markdown headings (#, ##, etc.)
  • At least one rich markdown element (fenced code block, table, list, or link)
  • No markdown images (temporarily disabled pending platform image upload support)

These requirements are validated before push/upsert operations.