Skip to content

docs: note credential-source:gcp and the jwt_key raw-PEM encoding rule - #36

Merged
gambe94 merged 1 commit into
mainfrom
docs/gcp-jwt-key-encoding-rule
Aug 20, 2026
Merged

gambe94 merged 1 commit into
mainfrom
docs/gcp-jwt-key-encoding-rule

Conversation

@gambe94

@gambe94 gambe94 commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • sf-org-login's reference entry in docs/claude-actions-reference.md predates PR feat(sf-org-login): add credential-source gcp, via new gcp-secret-get action #33 (credential-source: gcp) and didn't carry the encoding contract that action.yml's own comments already state.
  • Adds an explicit callout: the GCP secret's jwt_key field must be the raw PEM (this action base64-encodes it itself); a pre-encoded value fails with "Decoded JWT key is not a PEM private key".
  • Companion doc fix in gforce-google-infra (the actual seeding side, where this went wrong): Gforce-Innovation-Kft/gforce-google-infra#3

Context

Root-caused for real: salesforce-devhub's jwt_key was seeded from the base64-encoded key file instead of the raw PEM, breaking credential-source: gcp with exactly this error. Verified live via gcp-secret-get + sf-org-login runs from sf-develop-demo (WIF-trusted), confirmed via hash comparison against the local key files (no key material ever printed), and fixed by reseeding — this PR is the doc fix so it isn't seeded wrong again.

Test plan

  • npm run all passed (format, lint, typecheck, bundle, tests, dist:verify)
  • Docs-only change, no action/workflow behavior touched

🤖 Generated with Claude Code

sf-org-login's action.yml comment already states this; the reference doc
was written before PR #33 added credential-source:gcp and didn't carry it.
Root-caused for real against a live salesforce-devhub secret and a GitHub
Actions run — see gforce-google-infra's docs/SECRETS.md for the seeding
side of the same rule.
@gambe94
gambe94 merged commit b05306c into main Aug 20, 2026
2 checks passed
@gambe94
gambe94 deleted the docs/gcp-jwt-key-encoding-rule branch August 20, 2026 17:52
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