Skip to content

Privacy hardening: index sidecars keep raw OCR text forever, and capture consent is off by default #266

Closed

Description

@TMHSDigital

Why it matters

Secrets that appear on screen end up in plain-text JSON next to recordings, outside the opt-in retention. Separately, a prompt-injected model can start a capture without the user knowing.

Evidence

Suggested approach

  • Mask secret-pattern matches (the same pattern find_text uses) before writing index sidecars, or store a masked copy plus a hash.
  • Include index sidecars in retention.
  • Document the regex-on-raw behaviour in the Privacy section.
  • Consider making consent the default whenever the client supports elicitation, with an env var to opt out.

Done when

Index sidecars contain no unmasked secret-pattern matches (with a test), retention can clean them up, and the consent default is decided and documented.

Activity

  1. added
    enhancement
    security
    privacy
    on Nov 1, 2026
  2. TMHSDigital commented on Nov 1, 2026

    @TMHSDigital
    OwnerAuthor

    Done in 4885870: index sidecars store screen text with secret-pattern matches masked, search_recording matches the masked text, and retention removes old *.index.json under SCREENCAST_HOME. Left open for the consent default: recommendation is to confirm captures by default whenever the client supports elicitation, keep fail-closed when SCREENCAST_CONFIRM_CAPTURE=1, and allow SCREENCAST_CONFIRM_CAPTURE=0 to opt out. That changes the env var's meaning, so it needs a maintainer call.

  3. TMHSDigital commented on Nov 15, 2026

    @TMHSDigital
    OwnerAuthor

    Consent default done in 544e206: SCREENCAST_CONFIRM_CAPTURE is now a mode. Unset/auto asks before each live capture in clients that support elicitation (no prompt in clients that cannot), 1/always keeps the old fail-closed behaviour, and 0/off never asks. The bundle option, server.json, README configuration, and Privacy section are updated, and consentLogging tests cover all three modes. Full suite passes (1161 tests). The sidecar masking and retention parts shipped in 4885870.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority: mediumprivacysecurity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions