Skip to content

config: declare CODEX_AUTH_JSON in secrets.allowed - #528

Merged
max-sixty merged 1 commit into
mainfrom
fix/issue-527
May 16, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/issue-527

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

Problem

uvx tend@latest check flags CODEX_AUTH_JSON as an unexpected repo-level secret — the repo-secret-allowlist check compares actual repo secrets against cfg.bot_token_secret + engine_auth_secrets + secrets.allowed, and .config/tend.yaml has no secrets.allowed declaration, so CODEX_AUTH_JSON falls outside the allowed set under the Claude harness.

The secret is consumed by codex-auth-refresh.yaml, which rotates the Codex OAuth token nightly. The refresh workflow's own comment block notes it is repo-scoped on purpose so consumer workflows can read it without declaring an environment, and commit fba319e ("write CODEX_AUTH_JSON as a repo secret, not env-scoped") locked that posture in deliberately.

Solution

Declare CODEX_AUTH_JSON in secrets.allowed in .config/tend.yaml, with a comment pointing to the workflow and security model.

This is purely a check-allowlist change — allowed_repo_secrets is only read by checks.py and is not used during workflow generation, so no regeneration is required.

Testing

  • Generator tests pass (pytest — 230 passed).
  • Simulated the check locally: with the new allowlist, the repo-secret-allowlist unexpected-set is empty against the current repo secrets (BOT_TOKEN, CLAUDE_CODE_OAUTH_TOKEN, CODEX_AUTH_JSON).
  • pre-commit (typos / yaml / actionlint) clean on the edited file.

Closes #527 — automated triage

Closes #527

CODEX_AUTH_JSON is consumed by codex-auth-refresh.yaml (a custom non-tend
workflow that rotates the Codex OAuth token nightly) and intentionally
lives at repo scope — the consumer-workflow design documented in commit
fba319e and in the refresh workflow's own comment block. Declare the
posture explicitly so `tend check` stops flagging it as drift.

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit 23c3c98 into main May 16, 2026
4 checks passed
@max-sixty
max-sixty deleted the fix/issue-527 branch May 16, 2026 07:10
@max-sixty max-sixty mentioned this pull request May 16, 2026
3 tasks
max-sixty added a commit that referenced this pull request May 16, 2026
## Summary

Release 0.0.22 — the last known Codex-harness blocker.

3 commits since 0.0.21:
- #525 — base64-encode `final_message` so the agent's output can't break
the `$GITHUB_OUTPUT` heredoc (every Codex run was exiting red *after*
the agent succeeded)
- #528 — declare `CODEX_AUTH_JSON` in `secrets.allowed`
- #529 — Codex in package/CLI descriptions; fix stale `.toml` ref

## Test plan

- [ ] CI green (test, test-worker, lint)
- [ ] After merge: tag `0.0.22`, PyPI publish, `uvx [email protected] --help`
works
- [ ] Regenerate tend's own workflows to `@0.0.22`

Co-authored-by: Claude <[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.

tend check: configuration drift on max-sixty/tend

2 participants