Skip to content
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

step_ca_provisioner: Make idempotent (remove 'updated' state) #346

Open
maxhoesel opened this issue Oct 11, 2023 · 0 comments
Open

step_ca_provisioner: Make idempotent (remove 'updated' state) #346

maxhoesel opened this issue Oct 11, 2023 · 0 comments
Labels
enhancement New feature or improvement to an existing one roles Something affecting one or more roles
Milestone

Comments

@maxhoesel
Copy link
Collaborator

Right now, the step_ca_provisioner module has two possible states present and updated.
Present only creates provisioners while updated only updates existing ones.
This is a pretty thin wrap over the underlying CLI commands and doesn't really do what a user most likely wants: Ensure that a provisioner with the required parameters is present under all reasonable circumstances.

I suggest adding a simple comparsion logic to the step_ca_provisioner command, i.e. by comparing the provisioner config against provided values to check whether a provisioner needs to be updated.

@maxhoesel maxhoesel added enhancement New feature or improvement to an existing one roles Something affecting one or more roles labels Oct 11, 2023
@maxhoesel maxhoesel added this to the version-1 milestone Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement to an existing one roles Something affecting one or more roles
Projects
None yet
Development

No branches or pull requests

1 participant