Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Make secrethub_generate idempotent #3

Open
SimonBarendse opened this issue Oct 13, 2018 · 0 comments
Open

Make secrethub_generate idempotent #3

SimonBarendse opened this issue Oct 13, 2018 · 0 comments

Comments

@SimonBarendse
Copy link
Member

Change request

Current behavior

When running a playbook with a secrethub_generate several times,
each time a new version of the secret is written.

Expected behavior

When running a playbook with a secrethub_generate several times,
only the first time a new version of the secret is written.

Proposal

When the secret already exists, no new secret is generated.

To still be able to rotate existing secrets, we add a boolean
rotate parameter with a default of false. When rotate is set, a
new version of the secret will be generated when the secret already
exists (current behavior).

The module will reflect in its return whether it has changed the
secret value.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant