Skip to content

add mTLS for the salt api#69441

Open
bochi wants to merge 2 commits into
saltstack:masterfrom
bochi:api-mtls
Open

add mTLS for the salt api#69441
bochi wants to merge 2 commits into
saltstack:masterfrom
bochi:api-mtls

Conversation

@bochi

@bochi bochi commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds optional mutual TLS (client certificate validation) to the rest_cherrypy API
Three new rest_cherrypy options:

ssl_ca_certs — file or directory with the trust-anchor PEM certificates

  • ssl_cert_reqs — peer verification policy, one of CERT_NONE (default),
    CERT_OPTIONAL or CERT_REQUIRED.
  • ssl_allowed_cn — optional list of allowed Subject CN values.

What issues does this PR fix or reference?

Fixes
No fixes, its a feature

New Behavior

Support for mTLS Auth either in addition to existing auth or seperate.

Merge requirements satisfied?

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

Commits signed with GPG?

No

@bochi bochi requested a review from a team as a code owner June 12, 2026 18:32
@dwoz dwoz added the test:full Run the full test suite label Jun 12, 2026
@dwoz dwoz added this to the Potassium v3009.0 milestone Jun 12, 2026
- Rename changelog/api-mtls.added.md to changelog/69441.added.md
  to match the PR number naming convention enforced by the
  Check Changelog Entries hook.
- Strip trailing whitespace from the ssl_allowed_cn docstring in
  salt/netapi/rest_cherrypy/app.py.
- Add blank line after module docstring in
  tests/pytests/unit/netapi/cherrypy/test_ssl_cn_filter.py per
  black formatting.

Co-authored-by: Stefan Bogner <bochi@users.noreply.github.com>
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