Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: support parsing PEM from multiple blocks #2110

Merged
merged 1 commit into from
Mar 11, 2023
Merged

Conversation

moolen
Copy link
Member

@moolen moolen commented Mar 9, 2023

Fixes #2109

Before this PR it was required that the first PEM block contains the certificate, everything else gets ignored.
This PR parses all PEM blocks and returns the first certificate found.

Before this PR it was required that the first PEM block contains the
certificate.
This PR parses all PEM blocks and returns the first certificate found.

Signed-off-by: Moritz Johner <beller.moritz@googlemail.com>
@moolen moolen requested a review from a team as a code owner March 9, 2023 21:29
@moolen moolen requested review from gusfcarvalho and removed request for a team March 9, 2023 21:29
@sonarcloud
Copy link

sonarcloud bot commented Mar 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@gusfcarvalho
Copy link
Member

/approve

@moolen moolen merged commit c20fc5b into main Mar 11, 2023
@moolen moolen deleted the mj-fix-azure-pemcert branch March 11, 2023 12:08
limistah pushed a commit to Onboardbase/external-secrets that referenced this pull request Mar 14, 2023
Before this PR it was required that the first PEM block contains the
certificate.
This PR parses all PEM blocks and returns the first certificate found.

Signed-off-by: Moritz Johner <beller.moritz@googlemail.com>
Signed-off-by: Aleem Isiaka <aleemisiaka@gmail.com>
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.

PushSecret - Order of textual encoding instances in PEM for Azure KeyVault
2 participants