Skip to content

Security: ndycode/oc-codex-multi-auth

SECURITY.md

Security Policy

Reporting

Report security vulnerabilities privately through GitHub Security Advisories for this repository. Do not open a public issue for a vulnerability, credential leak, token-handling flaw, or exploit proof of concept.

Include:

  • the affected package version and OpenCode version;
  • the operating system and Node.js version;
  • a minimal reproduction or affected configuration;
  • whether credentials, request bodies, or local files were exposed.

Do not include real access tokens, refresh tokens, account email addresses, or unredacted prompt/response bodies in a report.

Supported versions

Security fixes ship on the latest published release line. Update before validating or reporting a bug:

npx -y oc-codex-multi-auth@latest update

Credential and data handling

  • Account pools live under ~/.opencode with restrictive local file permissions.
  • Credential writes use temporary files, flush, atomic rename, and parent-directory synchronization.
  • CODEX_KEYCHAIN=1 stores the account pool in the operating-system keychain. JSON rollback artifacts may remain until explicitly removed.
  • Logs and diagnostics redact credentials and email-like values, but human-facing tool and CLI text can show full account emails unless maskEmail is enabled. Enable maskEmail (CODEX_TUI_MASK_EMAIL=1) before sharing text output or screenshots, and enable maskEmailInQuotaDetails (CODEX_TUI_MASK_EMAIL_DETAILS=1) when quota details may be visible. Do not pass --include-sensitive or enable body logging in shared environments.
  • CODEX_PLUGIN_LOG_BODIES=1 can expose prompts, responses, and credential-bearing headers. Use it only for local debugging and delete the logs afterward.
  • OAuth uses the registered loopback callback on port 1455. Keep that port limited to local traffic.

Dependency scope

Runtime dependencies are audited in CI with development-only exceptions tracked by scripts/audit-dev-allowlist.js. Some upstream OpenCode and npm dependency-chain advisories may remain outside this repository's direct control; the package keeps current compatible upstream versions and records the residual state in CI.

Operational hardening

  • Keep Node.js at the version required by package.json or newer.
  • Do not share ~/.opencode across machines or untrusted users.
  • Use per-project pools only when the project boundary is intentional.
  • Review exported account backups before storing or transmitting them; they can contain credentials.
  • Treat custom rotation JavaScript as trusted code and validate it offline before enabling it.

There aren't any published security advisories