Skip to content

Restrict .thinktank/ result file permissions to prevent credential exposure #24

@that-github-user

Description

@that-github-user

Summary

Result JSON files in .thinktank/ include full agent.output and agent.error fields, which may contain:

  • Claude API debug logs
  • Stderr from failed builds (could include secrets/env vars)
  • Sensitive code content

Files are written with default permissions (world-readable on Unix).

Proposed fix

  1. Write files with mode: 0o600 (owner read/write only)
  2. Consider option to strip stdout/stderr from saved results (--no-output flag)
  3. Add warning to README that .thinktank/ may contain sensitive info
  4. Ensure .thinktank/ is in the default .gitignore (already done ✓)

Severity

Medium — files are gitignored but still accessible on the filesystem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions