NO-JIRA: Fix base64 encoding for rendered CA bundles#2895
NO-JIRA: Fix base64 encoding for rendered CA bundles#2895kyrtapz wants to merge 1 commit intoopenshift:masterfrom
Conversation
Kubernetes requires standard base64 encoding. Using URL encoding breaks when applying certain certificates. Signed-off-by: Patryk Diak <pdiak@redhat.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kyrtapz The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Important Review skippedAuto reviews are limited based on label configuration. 🚫 Review skipped — only excluded labels are configured. (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the
✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
|
/hold cancel |
|
/retest |
|
@kyrtapz: This pull request explicitly references no jira issue. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@kyrtapz: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Kubernetes requires standard base64 encoding.
I haven't found it stated anywhere explicitly but it is using golang JSON marshaling for
[]byteand it relies on std encoding/decoding: https://github.com/golang/go/blob/master/src/encoding/json/decode.go#L949While I think the fix is correct this never broke in the past because we are encoding PEM encoded certificate producing a compatible result.