Skip to content

raia Command · Section

Data Protection

PII security scan, original file retention, Markdown encryption, download verification.

Command documents four protection settings for document content: a PII security scan on conversion, a retention setting for original files once Markdown exists, optional organization-level Markdown encryption, and two-factor verification on downloads. These describe settings and documented intent; check results in your own project before relying on them.

In this section

  • Understand how PII scanning masks content and where findings live.
  • Configure how long original files are retained before the sweep.
  • Decide whether to enable Markdown encryption and how to backfill.
  • Manage the download verification window and read download audit logs.
01

What's inside

  1. 01

    Security Scan (PII & secrets)

    Conversion to Markdown is documented to start a PII scan that runs global rules plus project overrides. Rules marked destructive (by default SSN, credit card, API keys, email and phone) are documented to replace the stored Markdown with a masked copy. Open the file's PII panel and preview to confirm what was masked; pattern rules can miss or over-match, so do not treat a scan as proof that no PII remains. Heuristic rules (generic_secret, shannon_high, digits_only_strict) only record findings.

  2. 02

    Managing scan rules and findings

    Open Security Scan from the project menu. Global rules are read-only defaults; project admins add, edit, or disable project-scoped overrides, The New rule dialog shows Name, Description, Category, Severity, Regex pattern, Flags, Validator, Replacement (redaction token) and Enabled. The file drawer's PII panel lists findings, with a Scan History dropdown covering the last 25 runs, and /projects/:id/security-scan/runs shows every run with status, timings, and counts. Rescan all files or Rescan flagged backfills older content; org admins have a resumable PII Backfill panel.

    Open Security Scan to review scan runs. Use Rescan flagged or Rescan all files when appropriate, then inspect the findings and document content before deciding that sensitive information is protected.
    1. Highlight 1: View scan runs
    2. Highlight 2: Rescan flagged
    3. Highlight 3: Rescan all files
  3. 03

    New rule: identity

    In the project’s Security Scan settings, click Add rule. In New rule, enter Name and Description so your administrator can recognize its purpose. For example, name a fictional rule Northstar reference code. Continue through the matching and options fields before saving.

    Enter a recognizable Name and Description for the new rule, then continue to the matching fields.
    1. Highlight 1: Name
    2. Highlight 2: Description
  4. 04

    New rule: matching

    Review Category and Severity with your administrator. Enter the approved Regex pattern for the content you intend to match; check it against fictional examples before applying it to customer documents.

    Choose Category and Severity, then enter the approved Regex pattern for the content to match.
    1. Highlight 1: Category
    2. Highlight 2: Severity
    3. Highlight 3: Regex pattern
  5. 05

    New rule: options

    Review Flags, Validator, Replacement (redaction token) and Enabled. Complete the required fields so Save becomes available; use Cancel if you are not ready to apply the rule. Review with your administrator before saving or rescanning. Afterwards, inspect the intended findings and converted content rather than assuming the rule worked.

    Review Flags, Validator, Replacement (redaction token) and Enabled before completing and saving the rule.
    1. Highlight 1: Flags
    2. Highlight 2: Validator
    3. Highlight 3: Replacement (redaction token) and Enabled
    Flags and Validator for the rule's Regex pattern. Review these options with the rule owner.
    1. Highlight 1: Flags (for example g)
    2. Highlight 2: Validator
    Replacement (redaction token), Enabled, and the Cancel and Save buttons. Save stays disabled until the required fields are valid.
    1. Highlight 1: Replacement (redaction token)
    2. Highlight 2: Enabled
    3. Highlight 3: Cancel and Save (Save disabled until valid)
  6. 06

    Original file retention

    Once a file has Markdown and a completed PII scan, the original binary is swept from Storage after the organization's retention window — default 30 days, any positive number of days, 0 for immediate, or Keep forever. The documented hourly sweep deletes the original, records the deletion time and logs the run; it is described as leaving the Markdown in place. Check the file's badge and storage view to confirm. The Download original button then shows an 'Original deleted (retention)' badge, and storage totals still reflect the original size.

  7. 07

    Document (Markdown) encryption

    An opt-in setting described as a second layer on top of infrastructure encryption. The product documentation describes AES-256-GCM encryption of document Markdown with a per-organization data key wrapped by a master key, decrypted on the server when content is read. Ask raia for current security documentation and confirm the scope of encryption before relying on it for your organization’s requirements. Enable it in Organization Settings — owners and admins must acknowledge that lost keys mean unrecoverable content — then run Backfill existing markdown, a resumable batched job.

  8. 08

    Two-factor verification for downloads

    On by default; owners and admins can turn it off for their organization. When it is on, a download request without a valid verification window is refused on the server and the app asks for a 6-digit emailed code (use Resend code if it doesn't arrive), opening a time-boxed window (default 15 minutes, configurable 1–120). Codes expire after 10 minutes, lock out after 5 failed attempts, and are rate-limited per user and per IP. It covers original downloads, bulk signed-URL and source ZIPs, Markdown downloads, project and folder Markdown ZIPs, merged Markdown, and exports — single-file in-app previews stay ungated.

  9. 09

    Download audit logging

    Every download is recorded server-side with the acting user, file, and timestamp — including signed-URL and bulk ZIP paths. View them from Project Activity or the organization activity trail.

  10. 10

    Tables protection boundary

    Tables run a separate privacy review before agent visibility can be enabled. High- or critical-severity findings require an editor to review the masked finding and explicitly acknowledge the risk. Document Markdown encryption does not cover Table rows in this release, so Command displays that limitation during Table import when encryption is enabled.

Trade-offs to plan for

PII masking is destructive with no Markdown-level undo — recovery means re-converting from the original binary, which the retention sweep may have already removed. And with Markdown encryption on, SQL keyword search cannot match encrypted document bodies; file name, metadata, and label search are unaffected.
03

Related