Use GCP Cloud KMS asymmetric signing keys to sign and verify payloads

domain: cloud.google.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Create an asymmetric signing key in Cloud KMS, selecting a signing algorithm (e.g., RSA_SIGN_PKCS1_2048_SHA256 or EC_SIGN_P256_SHA256) and protection level
  2. Grant the signing service account roles/cloudkms.signerVerifier on the key; for verify-only workloads, grant roles/cloudkms.verifier
  3. Compute the digest of the data to sign using the algorithm's hash function locally, then call the :asymmetricSign endpoint with the digest — never send the full payload to KMS for signing
  4. Retrieve the public key with :getPublicKey and distribute it (or its certificate) to verifying parties; the private key never leaves KMS
  5. Verifiers use the public key and a standard crypto library to verify the signature locally without calling KMS
  6. Implement key version pinning: verifiers must use the public key corresponding to the key version that was active at signing time; store the key version reference alongside signatures

Known gotchas

Related routes

Sign container images with a cloud KMS-backed key (not keyless Fulcio signing) using cosign and verify against that key in a deploy pipeline
docs.sigstore.dev · 5 steps · unrated
Encrypt and decrypt data with GCP Cloud KMS symmetric keys using key rings
cloud.google.com · 6 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans