Skip to content

NO-JIRA: Fix base64 encoding for rendered CA bundles#2895

Open
kyrtapz wants to merge 1 commit intoopenshift:masterfrom
kyrtapz:std_base64_encode
Open

NO-JIRA: Fix base64 encoding for rendered CA bundles#2895
kyrtapz wants to merge 1 commit intoopenshift:masterfrom
kyrtapz:std_base64_encode

Conversation

@kyrtapz
Copy link
Contributor

@kyrtapz kyrtapz commented Jan 30, 2026

Kubernetes requires standard base64 encoding.
I haven't found it stated anywhere explicitly but it is using golang JSON marshaling for []byte and it relies on std encoding/decoding: https://github.com/golang/go/blob/master/src/encoding/json/decode.go#L949

While I think the fix is correct this never broke in the past because we are encoding PEM encoded certificate producing a compatible result.

Kubernetes requires standard base64 encoding.
Using URL encoding breaks when applying certain certificates.

Signed-off-by: Patryk Diak <pdiak@redhat.com>
@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 30, 2026
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 30, 2026

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 30, 2026
@coderabbitai
Copy link

coderabbitai bot commented Jan 30, 2026

Important

Review skipped

Auto reviews are limited based on label configuration.

🚫 Review skipped — only excluded labels are configured. (1)
  • do-not-merge/work-in-progress

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Comment @coderabbitai help to get the list of available commands and usage tips.

@kyrtapz
Copy link
Contributor Author

kyrtapz commented Feb 2, 2026

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 2, 2026
@kyrtapz
Copy link
Contributor Author

kyrtapz commented Feb 2, 2026

/retest

@kyrtapz kyrtapz changed the title Fix base64 encoding for rendered CA bundles NO-JIRA: Fix base64 encoding for rendered CA bundles Feb 2, 2026
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Feb 2, 2026
@openshift-ci-robot
Copy link
Contributor

@kyrtapz: This pull request explicitly references no jira issue.

Details

In response to this:

Kubernetes requires standard base64 encoding.
I haven't found it stated anywhere explicitly but it is using golang JSON marshaling for []byte and it relies on std encoding/decoding: https://github.com/golang/go/blob/master/src/encoding/json/decode.go#L949

While I think the fix is correct this never broke in the best because we are mostly encoding PEM encoded certificate producing a compatible result.

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.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 2, 2026

@kyrtapz: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-ovn-ipsec-step-registry d8c71aa link true /test e2e-ovn-ipsec-step-registry
ci/prow/4.22-upgrade-from-stable-4.21-e2e-azure-ovn-upgrade d8c71aa link false /test 4.22-upgrade-from-stable-4.21-e2e-azure-ovn-upgrade
ci/prow/e2e-aws-ovn-upgrade-ipsec d8c71aa link true /test e2e-aws-ovn-upgrade-ipsec
ci/prow/hypershift-e2e-aks d8c71aa link true /test hypershift-e2e-aks
ci/prow/security d8c71aa link false /test security
ci/prow/e2e-metal-ipi-ovn-ipv6-ipsec d8c71aa link true /test e2e-metal-ipi-ovn-ipv6-ipsec

Full PR test history. Your PR dashboard.

Details

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 kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants