redmine: redact api_key from the current-user payload #12

Merged
founder merged 1 commit from redmine-whoami-redact into main 2026-09-06 20:57:27 +00:00
Owner

Redmine's /users/current.json returns the caller's own api_key. RedmineAPIClient.GetCurrentUser (and so key-store-redmine whoami) now drops it: a resident must never see a raw credential in a tool result or CLI output, only the key file.

Found by the security-agent resident on its first task (Redmine #9). The MCP hub's redmine_whoami gets the same redaction in key.store (separate PR); the security-agent Redmine key gets rotated on the forge.

Test: TestGetCurrentUserRedactsAPIKey.

Redmine's `/users/current.json` returns the caller's own `api_key`. `RedmineAPIClient.GetCurrentUser` (and so `key-store-redmine whoami`) now drops it: a resident must never see a raw credential in a tool result or CLI output, only the key file. Found by the security-agent resident on its first task (Redmine #9). The MCP hub's `redmine_whoami` gets the same redaction in key.store (separate PR); the security-agent Redmine key gets rotated on the forge. Test: `TestGetCurrentUserRedactsAPIKey`.
Redmine's /users/current.json returns the caller's own api_key. The
RedmineAPIClient (and so key-store-redmine whoami) now drops it: a resident
must never see a raw credential in a tool result or CLI output, only the key
file. Found by the security-agent resident on its first task (Redmine #9);
the MCP hub's redmine_whoami gets the same redaction in key.store.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
founder deleted branch redmine-whoami-redact 2026-09-06 20:57:27 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
key-store/dispatch!12
No description provided.