Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(snowflake): private keys provided through a textarea not being no…
…rmalised properly (#106) # Description After normalisation private keys should look like this ``` -----BEGIN PRIVATE KEY----- sometext1 sometext2 sometext3 ... -----END PRIVATE KEY----- ``` A private key provided in a textarea element will look like this ``` -----BEGIN PRIVATE KEY----- sometext1 sometext2 sometext3 ... -----END PRIVATE KEY----- ``` Thus in `normalisePem` we are first replacing all new lines with spaces and then introducing new lines wherever it is needed. ## Linear Ticket resolves PRO-2869 ## Security - [x] The code changed/added as part of this pull request won't create any security issues with how the software is being used.
- Loading branch information