Skip to content

fix(coinbase): accept the downloaded ECDSA key file; stop steering to Ed25519 - #84

Merged
ralyodio merged 1 commit into
masterfrom
fix/coinbase-ecdsa-keyfile
Nov 11, 2026
Merged

ralyodio merged 1 commit into
masterfrom
fix/coinbase-ecdsa-keyfile

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

Coinbase App / Advanced Trade accepts ECDSA (ES256) keys only. Per https://docs.cdp.coinbase.com/coinbase-app/authentication-authorization/api-key-authentication: "Ed25519 (EdDSA) keys are NOT supported. You must use ES256". kid/sub are the full organizations/{org}/apiKeys/{key} name. #75's labels steered users to Ed25519.

  • Paste the whole downloaded key JSON into one field; the name comes from it (a full name beats a bare UUID in the name field)
  • PKCS#8 BEGIN PRIVATE KEY PEMs no longer get rewrapped as EC (which corrupted them)
  • Labels/hints updated

Tests: coinbase-pem + pair-discovery 12/12, tsc clean.

🤖 Generated with Claude Code

… Ed25519

Coinbase App / Advanced Trade accepts ES256 (ECDSA) keys only ('Ed25519
(EdDSA) keys are NOT supported'), with kid/sub = the full
organizations/{org}/apiKeys/{key} name. Settings labels from #75 asked for
an Ed25519 'key ID' + 'Secret' and called EC keys legacy.

- COINBASE_API_PRIVATE_KEY takes the whole downloaded key JSON file
  (name/id + privateKey); the key name is read from it, and a full name
  beats a bare UUID typed in the name field
- PKCS#8 'BEGIN PRIVATE KEY' PEMs are no longer rewrapped as EC PRIVATE KEY
- plugin labels/hints: paste the key file; create the key as ECDSA

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

ThreatCrush Security Scan

7 finding(s)

MEDIUM: 7

Severity Rule Location
MEDIUM js-timing-unsafe-mac-compare apps/daemon/src/user-config.ts:491
MEDIUM js-unescaped-html-sink apps/web/src/app/layout.tsx:126
MEDIUM js-unescaped-html-sink apps/web/src/app/page.tsx:435
MEDIUM js-open-redirect apps/web/src/app/store/install-button.tsx:53
MEDIUM js-unescaped-html-sink apps/web/src/components/pit-footer.tsx:17
MEDIUM js-dynamic-code-execution packages/core/src/runtime-cache.ts:248
MEDIUM js-dynamic-code-execution packages/core/src/runtime-cache.ts:268

Snippets are redacted; ThreatCrush never prints matched credential material.

@ralyodio
ralyodio merged commit e2e7a49 into master Nov 11, 2026
7 checks passed
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