Skip to content

jarvisctl keys: issue, revoke and list per-tenant API keys - #115

Merged
warheart1984-ctrl merged 4 commits into
mainfrom
feat/jarvisctl-keys
Oct 18, 2026
Merged

warheart1984-ctrl merged 4 commits into
mainfrom
feat/jarvisctl-keys

Conversation

@warheart1984-ctrl

Copy link
Copy Markdown
Owner

RFC phase 1 leftover: the box-side wrappers for per-tenant API keys. Schema v10 is already live with key authentication off; this only adds the operator tooling.

  • deploy/mint/bin/keys.sh + jarvisctl keys ...: pepper-init, tenant-create, key-create, key-revoke, tenant-status, tenants, keys, status. Runs python -m app.tenant_keys in the migrate container as the migrator, as the host user, pepper mounted read-only (never a value, never on a command line).
  • Tokens are never printed: key-create requires --out NAME and writes secrets/issued-keys/NAME.token (mode 600, dir 700, never overwritten). The pepper is created once (mode 600, never overwritten, value not shown). Every argument is validated before Docker is touched (exit 2).
  • Issuing a key does not turn key authentication on (JARVIS_KEY_TENANTS stays a separate, explicit step; documented in docs/tenant_keys.md and deploy/mint/README.md).

Tests: tests/test_deploy_keys.py (44, fake docker); seven mutants (overwrite checks, pepper passed by value, tenant regex, mode check, printing the pepper, wrong user) each caught. Also checked against a throwaway Postgres with the real v10-main image in a read-only container: token file is mode 600 owned by the host user, an existing file is refused without leaving a key row, a missing pepper fails closed. Nothing was run on the live box.

🤖 Generated with Claude Code

…ox (tokens to a mode-600 file, never printed)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-18T20:53:55.227990Z b41a87e New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 40e77690cf

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread deploy/mint/bin/keys.sh Outdated
…Codex on #115)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7e7836aef6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread deploy/mint/bin/keys.sh Outdated
Comment thread deploy/mint/bin/keys.sh Outdated
…are 'unavailable', never zero (Codex on #115)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c0f04f33fb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread deploy/mint/bin/keys.sh
…perator copy never changes owner (Codex P1 on #115)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@warheart1984-ctrl
warheart1984-ctrl merged commit 307cfdf into main Oct 18, 2026
3 checks passed
@warheart1984-ctrl
warheart1984-ctrl deleted the feat/jarvisctl-keys branch October 18, 2026 22:48
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