Skip to content

new feature: refactor server-side PKI #67799

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

mattp-
Copy link
Contributor

@mattp- mattp- commented Mar 7, 2025

What does this PR do?

The end goal of this work is to support a non file/disk based interface for pub key management. Using the existing salt.cache interface allows to leverage existing implementations of other storage backends (ie mysql, postgres, redis, etc).

Of note, this will allow a common shared view of pub keys for multi-master setups.

To avoid a break-the-world scenario in this change, a fully backward compatible salt.cache.localfs_key_backcompat is provided as the new default that emulates the disk operations salt.key was doing before.

open discussion items:
- as is i've left master side pub/priv key as is to live in etc/salt/pki; it COULD be moved to the same interface if that's desired

Tests written?

Not yet, pushing to see what CI does

Commits signed with GPG?

Yes

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@mattp- mattp- requested a review from a team as a code owner March 7, 2025 18:35
@twangboy twangboy added the test:full Run the full test suite label May 7, 2025
twangboy
twangboy previously approved these changes May 7, 2025
@mattp-
Copy link
Contributor Author

mattp- commented May 7, 2025

@twangboy appreciate the approve but still working on this one 👍 have some unaccounted for work with the cluster mode i need to look at as well as the current failing tests (also need to add more coverage)

@twangboy twangboy changed the title new feature: refactor server-side PKI [WIP] new feature: refactor server-side PKI May 7, 2025
@twangboy
Copy link
Contributor

twangboy commented May 7, 2025

I added [WIP] to the beginning of the title of this PR. When you're done, remove the [WIP].

@mattp- mattp- changed the title [WIP] new feature: refactor server-side PKI new feature: refactor server-side PKI May 8, 2025
@mattp- mattp- closed this May 8, 2025
@mattp- mattp- reopened this May 8, 2025
@mattp-
Copy link
Contributor Author

mattp- commented May 8, 2025

@twangboy sorry had to remove the label, something weird is going on with the github actions; i need the tests to run but its being wonky. will keep poking at it

the end goal of this work is to support a non file/disk based interface
for pub key management. Using the existing salt.cache interface allows
us to leverage existing implementations of other storage backends (ie
mysql, postgres, redis, etc). Of note, this will allow a common shared
view of pub keys for multi-master setups.

To avoid a break-the-world scenario in this change, a fully backward
compatible salt.cache.localfs_key_backcompat is provided as the new
default that emulates the disk operations salt.key was doing before.

open discussion items:
- as is i've left master side pub/priv key as is to live in
  etc/salt/pki; it COULD be moved to the same interface if thats desired
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