GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(privacy): redact credentials at capture and memory-write boundaries by Phototonic · Pull Request #483 · tickernelz/opencode-mem

Conversation

@Phototonic

@Phototonic Phototonic commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Captured prompts and tool evidence could retain recognizable credentials in memory storage and capture-provider requests. This adds a shared deterministic sanitizer for recognizable credential formats while preserving explicit private-tag handling and useful surrounding context.

It covers pending prompts and evidence, capture-provider requests and fallback, generated summaries/tags, embedding inputs, explicit memory additions and supplied shared-client content/tag updates, Turso and plugin-created Markdown writes, and diagnostics. Redaction happens before truncation or JSON escaping. Conservative rules preserve hashes, IDs, ordinary code, obvious placeholders and bearer-authentication prose. No dependencies, additional AI calls or historical migration are introduced.

Protection is deliberately bounded: custom, all-letter and encoded secrets can be missed. This cannot protect original OpenCode traffic, erase historical data, or universally cover independent web API, import, Markdown reconciliation, profile and dreaming ingestion paths. Historical type-only updates retain their existing re-embedding behavior. This addresses a protection gap; no live user data or observed credential incident is involved.

Test plan

  • Exercised the change locally (or N/A for docs/meta-only)
  • Noted any follow-up or known limitations

Validation was performed in an isolated Linux cloud checkout at base a66d349f350b0f096b50040525b106cab16fdba5; the exact tested patch was transferred unchanged for publication. Tests were not rerun on the publishing desktop.

  • 45 focused privacy/boundary tests passed, including actual storage/provider boundaries, fallback, truncation, serialization and diagnostics.
  • bun test --timeout 30000: 1,140 passed, 4 skipped, 0 failed; 8,378 assertions.
  • Build, formatting, lint, typecheck and patch-apply checks passed.
  • A synthetic corpus of 134 credential-format/idempotence checks passed. Fixtures use fabricated credentials, not user data or production measurements.
  • The default five-second test timeout also failed on pristine upstream; repository timeout settings are unchanged. No Windows/macOS or live-provider validation is claimed.

Checklist

  • Branch is based on main (do not open PRs from commits already on main)
  • bun test passes (or N/A)
  • bun run typecheck passes (or N/A)
  • bun run check passes (format + lint + typecheck; or N/A)
  • Docs / README updated when behavior or contribution process changes

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Phototonic added 2 commits November 3, 2026 15:11
@Phototonic
fix(privacy): redact credentials at capture and memory-write boundaries
764d3a6
@Phototonic
test(capture): allow longer Windows recovery scenarios
659c004
@Phototonic
Phototonic marked this pull request as ready for review November 3, 2026 04:58
@EyJunge1
EyJunge1 merged commit f2163b5 into tickernelz:main Nov 3, 2026
7 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@EyJunge1 EyJunge1 mentioned this pull request Nov 3, 2026
chore(release): release v2.40.1 #484
Merged
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@Phototonic @EyJunge1
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.