-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
71548: security: prevent PEM decoding errors by careful newline insertation r=catj-cockroach a=catj-cockroach Fixes #71588 > Previously, we assumed that the Tenant CA certificate and the CA > certificate would not be the same, and that they would be saved as > files with an end of file newline character. > > This change adds support for not loading the Tenant CA Certificate > if it will just be a second copy of the CA certificate. > > This change also adds a helper function to concatenate certificates > with a newline separating each, to ensure that the easiest way to > make a certificate bundle is the correct way. > > Release note: bugfix for certificate loading logic The bug in question was introduced in #71248 (and back ported in #71402). Co-authored-by: Cat J <87989074+catj-cockroach@users.noreply.github.com>
- Loading branch information
Showing
3 changed files
with
69 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters