text:S6706 Generic Public Key Crypto Check - BEGIN PRIVATE KEY not being matched

Hi @spiltcoffee ,

thanks for raising the issue you’re having, and thanks for already looking into the code.

You’re right, the addition of the space was a deliberate choice.
Due to technical reasons, we needed to differentiate the secret with a GCP secret.

At the time of implementation, we concluded that adding the space was a safe choice. Apparently, for you, it’s not working as intended.

I will collaborate with our Security Team to find a better solution.
You can track the effort in this ticket: S6706 should raise when there is no whitespace at the end of the first line.

Best,
Jonas

1 Like