Skip to content

Strip text from x509 certificate before creating the secret bsc#1259720#817

Open
cbosdo wants to merge 1 commit into
uyuni-project:mainfrom
cbosdo:cert-cleanup
Open

Strip text from x509 certificate before creating the secret bsc#1259720#817
cbosdo wants to merge 1 commit into
uyuni-project:mainfrom
cbosdo:cert-cleanup

Conversation

@cbosdo

@cbosdo cbosdo commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

What does this PR change?

Some characters in the secret content are supposed to mess up with podman secret's internal JSON input. Stripping the text form from the certificate sanitizes the input.

Test coverage

  • Unit tests were added

  • DONE

Links

Issue(s): https://github.com/SUSE/spacewalk/issues/30077
Port: https://github.com/SUSE/uyuni-tools/pull/225

  • DONE

Changelogs

Make sure the changelogs entries you are adding are compliant with https://github.com/uyuni-project/uyuni/wiki/Contributing#changelogs and https://github.com/uyuni-project/uyuni/wiki/Contributing#uyuni-projectuyuni-repository

If you don't need a changelog check, please mark this checkbox:

  • No changelog needed

If you uncheck the checkbox after the PR is created, you will need to re-run changelog_test (see below)

Before you merge

Check How to branch and merge properly!

…720)

Some characters in the secret content are supposed to mess up with
podman secret's internal JSON input. Stripping the text form from the
certificate sanitizes the input.
@sonarqubecloud

sonarqubecloud Bot commented Jul 2, 2026

Copy link
Copy Markdown

@cbosdo cbosdo requested a review from mbussolotto July 2, 2026 09:28
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.

1 participant