Skip to content

fix(#893,#860): reword shipped credential text to drop literal env-var names - #896

Merged
fdaviddpt merged 1 commit into
mainfrom
fix/893-text
Oct 3, 2026
Merged

fdaviddpt merged 1 commit into
mainfrom
fix/893-text

Conversation

@fdaviddpt

Copy link
Copy Markdown
Contributor

Part of #893 and #860 -- this pull request does not resolve either issue on its own.

The Anthropic directory scan's "Uses a credential from the user's machine" finding keys on shipped TEXT, not just code. #894 (merged) already stopped reading REMEMBER_OAUTH_TOKEN / haiku.oauth_token for authentication and moved the recovery OAuth token to a plugin.json userConfig option, but shipped prose still named the old mechanism literally. This rewords that prose into plain language with the same disclosed substance, no literal env-var or API-key names, so the release gate #893 is building does not have this text to flag.

What changed (one commit, no code logic)

  • README.md credential section -- drop literal REMEMBER_OAUTH_TOKEN / ANTHROPIC_API_KEY / CODEX_API_KEY from prose; keep haiku.oauth_token / haiku.anthropic_api_key (config-key names, not env vars, already excluded from this finding).
  • changelog.d/870.fixed.md -- drop literal REMEMBER_OAUTH_TOKEN + claude setup-token, point at /plugin -> remember -> Configure.
  • changelog.d/860.changed.md -- reworked to drop REMEMBER_OAUTH_TOKEN / CLAUDE_CODE_OAUTH_TOKEN, substance kept.
  • config.example.json -- drop literal REMEMBER_OAUTH_TOKEN from the comment block.
  • tests/test_readme_discloses_854.py -- updated _REQUIRED_NAMES, extending the file's own Take the optional OAuth token through plugin.json userConfig (sensitive) to clear the directory's MCP_FORWARDS_CREDENTIAL_ENV warning #860-era precedent for CLAUDE_CODE_OAUTH_TOKEN to these three names.

Tests

Text-only change, no behavior to red/green via TDD. Ran green after editing:
python3 -m pytest tests/test_readme_discloses_854.py tests/test_config_flatten_cache_eval_removed_864.py -q -> 39 passed.
Fuller sweep of every test file referencing the touched files/strings -> 439 passed, 1 skipped (pre-existing, unrelated).
python3 .oss/assemble_changelog.py --check -> passed, 16 fragments.
Full repo pytest not run locally (CI is the full-suite gate per this repo's CLAUDE.md).

Review

Two spawned reviewers (Explore, oss:auditor), both clean/no-findings across all classes. Tree snapshot before/after both spawns: clean, untouched.

Note

CHANGELOG.md's own already-released history sections (e.g. the #860-era line naming REMEMBER_OAUTH_TOKEN/ANTHROPIC_API_KEY, and an older #751-era CODEX_API_KEY mention) still contain these literal names, but are out of scope here: the release tree ships only the LATEST CHANGELOG section, assembled fresh from changelog.d/*.md by the v0.39.0 fold, not the accumulated history.

Co-Authored-By: Claude Sonnet 5 [email protected]

[AI-generated]

…r names

The directory scan's "reads a credential from the user's machine" finding
keys on shipped TEXT, not just code. #894 already stopped reading
REMEMBER_OAUTH_TOKEN/haiku.oauth_token for authentication; this rewords the
prose that still names REMEMBER_OAUTH_TOKEN, ANTHROPIC_API_KEY and
CODEX_API_KEY in README.md, config.example.json and two changelog
fragments (870.fixed.md, 860.changed.md) into plain language, keeping the
same disclosure substance without the literal identifiers. Updates
test_readme_discloses_854.py's required-names list to match, following
the #860 precedent already set there for CLAUDE_CODE_OAUTH_TOKEN.

No code logic changes.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@fdaviddpt
fdaviddpt merged commit 75c7abb into main Oct 3, 2026
16 checks passed
@fdaviddpt
fdaviddpt deleted the fix/893-text branch October 3, 2026 10:51
fdaviddpt added a commit that referenced this pull request Oct 3, 2026
* docs(trap.d): log round-1 release-audit findings for v0.39.0

Non-blocking findings from the v0.39.0 gate-3 audit (dispatch token
rel39-1791025656-14116): doctor.sh's NOTICE grep reads log history rather
than current presence (#894), two docs sweeps that missed stale
REMEMBER_OAUTH_TOKEN advice (#894), and a README line overstating the
new recovery token's isolation from nested claude -p sessions (#896).
All rank `misreports` -- non-blocking per skills/manager/phases/findings.md.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* docs(trap.d): log round-2 release-audit findings for v0.39.0

Two new findings from round 2 of the v0.39.0 gate-3 audit (dispatch token
rel39-1791028178-23675-r2): haiku.py's auth-failure warning misattributes
which credential actually died (#870/#894 composition), and README.md's
cache-file disclosure still names the pre-v2 filename (#873/#875
composition). Both rank `misreports` -- non-blocking.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

---------

Co-authored-by: Claude Sonnet 5 <[email protected]>
fdaviddpt added a commit that referenced this pull request Oct 6, 2026
…ed, 4 filed as 3 tracking issues) (#921)

Promoted: the two #898 bash-subprocess-test pitfalls (Git Bash reglobs its own
argv on Windows; a one-line/block extraction regex must try the specific form
first) into one new paths rule, bash-subprocess-test-pitfalls.md.

Declined, already fixed by later rounds of #860/#898: the Codex-fallback
deprecation wording, the auth-failure misattribution, the doctor.sh legacy-token
NOTICE section, the README token-isolation overstatement, the lib-lock.sh eval
widening, and the legacy-token read-error swallow -- all moot now that the
userConfig recovery-token mechanism was removed entirely.

Declined, still true, filed as tracking issues: #918 (stale haiku.oauth_token /
REMEMBER_OAUTH_TOKEN wording across hooks.d, lib-memory-dir.sh, log.sh and two
docs pages), #919 (_check_url_in_comment has no heredoc-boundary tracking), #920
(the #902 REMEMBER_DIR guard's three gaps -- bootstrap-dirs.sh bypass, swallowed
FATAL, UNC paths wrongly refused). The README cache-filename fragment cites the
existing #888 instead of a duplicate.

Part of #860, #870, #875, #891, #894, #896, #898, #902

Co-authored-by: Claude Sonnet 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant