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(certificate): properly throw errors when parsing certificate from the vault #14212

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ms2008
Copy link
Contributor

@ms2008 ms2008 commented Jan 22, 2025

Summary

get_certificate was not handling certificate parsing errors after a vault update. This fixes it.

Checklist

  • The Pull Request has tests
  • A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
  • There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Issue reference

Fix FTI-6392

… the

vault

`get_certificate` was not handling certificate parsing errors after a
vault update. This fixes it.
@github-actions github-actions bot added core/proxy cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee labels Jan 22, 2025
@ms2008 ms2008 marked this pull request as ready for review January 22, 2025 04:27
@liverpool8056
Copy link
Contributor

Although the PR is straight enough to understand and seems not bring any side effects, do we need a test case for it?

@ms2008
Copy link
Contributor Author

ms2008 commented Jan 23, 2025

Although the PR is straight enough to understand and seems not bring any side effects, do we need a test case for it?

@liverpool8056 This change does not affect behavior; it only affects the error log output for easy troubleshooting. Therefore, I don't think it's necessary to add tests for this minor change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee core/proxy size/XS skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants