Skip to content

Increase private key length#37

Merged
hv-singh merged 1 commit intomainfrom
update-gcp-svc-account-creds
Mar 20, 2026
Merged

Increase private key length#37
hv-singh merged 1 commit intomainfrom
update-gcp-svc-account-creds

Conversation

@hv-singh
Copy link
Collaborator

Add some more characters to the private key. We're updating the GCP service account regex and the new pattern requires at least 64 characters after the -----BEGIN pem block header.

Why 64?
The purpose is to filter out trivially short content between -----BEGIN and -----END that isn't a real key. A real private key has a substantial base64-encoded body:

  • RSA 2048-bit (most common for GCP): ~1,680 characters
  • RSA 4096-bit: ~3,240 characters
  • EC P-256 (smallest viable): ~160 characters

@hv-singh hv-singh merged commit f9b7691 into main Mar 20, 2026
2 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