RSA 2048 keys in KMS for signing GitHub App JWTs

Hi,

We’d like to use Infisical KMS to sign the JWTs for our GitHub App, so the app’s private key never has to live in our application.

The problem is that GitHub only issues RSA 2048 keys for GitHub Apps (we can’t bring our own key) and requires RS256. Infisical KMS currently supports RSA 4096 for sign/verify keys, so we can’t use it for this.

It would be great if KMS could:

- import an existing RSA 2048 private key as a sign/verify key, non-exportable

- sign with RSASSA_PKCS1V15_SHA_256 through the existing sign endpoint

Thanks!

Hey hey!

Thanks for raising this! I’ll flag it to the team and get back to you.

Jake