Skip to content

Followup ssh_pki fixes#68839

Open
lkubb wants to merge 7 commits intosaltstack:masterfrom
lkubb:fix_ssh_pki
Open

Followup ssh_pki fixes#68839
lkubb wants to merge 7 commits intosaltstack:masterfrom
lkubb:fix_ssh_pki

Conversation

@lkubb
Copy link
Copy Markdown
Contributor

@lkubb lkubb commented Mar 20, 2026

What does this PR do?

Fixes several issues in the new ssh_pki modules.

Since they have never been released, I did not create bug reports/include changelog entries. I still added tests ofc.

What issues does this PR fix or reference?

No bug reports, only present in master

Previous Behavior

  • ssh_pki.create_private_key does not write pubkey as advertized
  • ssh_pki.certificate_managed does not respect copypath
  • ssh_pki.certificate_managed crashes when signing_private_key is hardcoded in the policy (analog to [3006.x] Fix x509_v2 local signing with signing policy #66416)
  • ssh_pki.certificate_managed_wrapper incorrectly passes arguments for file.managed
  • specifying not_after allows to exceed a policy's max_ttl (this is a critical bug)

New Behavior

  • ssh_pki.create_private_key writes pubkey as advertized
  • ssh_pki.certificate_managed respects copypath
  • ssh_pki.certificate_managed works correctly when signing_private_key is hardcoded in the policy
  • ssh_pki.certificate_managed_wrapper correctly passes arguments for file.managed
  • specifying not_after does not allow to exceed a policy's max_ttl

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

@dafyddj dafyddj added the test:full Run the full test suite label Mar 24, 2026
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.

2 participants