Skip to content

Rescue x509_v2 fixes from 3006.x, part 1 - #70342

Merged
dwoz merged 12 commits into
saltstack:3008.xfrom
lkubb:fix-509v2
Oct 30, 2026
Merged

dwoz merged 12 commits into
saltstack:3008.xfrom
lkubb:fix-509v2

Conversation

@lkubb

@lkubb lkubb commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

What issues does this PR fix or reference?

Ref: #69955 and #69894

Merge requirements satisfied?

Commits signed with GPG?

Yes

@lkubb
lkubb requested a review from a team as a code owner October 1, 2026 22:40
@lkubb lkubb changed the title Rescue x509_v2 fixes from 3006.x Rescue x509_v2 fixes from 3006.x, part 1 Oct 1, 2026
@twangboy twangboy added this to the Argon v3008.5 milestone Oct 1, 2026
twangboy
twangboy previously approved these changes Oct 1, 2026
@twangboy twangboy added the test:full Run the full test suite label Oct 1, 2026
@lkubb lkubb mentioned this pull request Oct 1, 2026
3 tasks done
`cryptography.hazmat.asn1` was introduced in cryptography 44.0 and the
`Null`/`decode_der` helpers used here require >= 46. The salt-ssh target
on Ubuntu 22.04 / Debian 12 uses the system python's cryptography,
which is older and lacks the submodule entirely. Previously, this made
`salt.utils.x509` fail to import on those targets, which cascaded into
`salt.modules.x509_v2`'s `__virtual__` returning False with "Could not
load cryptography" and the SSH integration tests failing with
`'x509' __virtual__ returned False`.

Guard the import behind try/except and gate the `otherName` paths that
depend on it with a runtime check that raises a clear error.

This branch was previously deployed

1 inactive deployment
ci — 739e766e Deployed Oct 28, 2026 by dwoz via Build Onedir Packages / DEB (x86_64) #28009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:full Run the full test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants