onepassword-operator icon indicating copy to clipboard operation
onepassword-operator copied to clipboard

Keep reconciling after initial Secret creation

Open michaelniemand opened this issue 1 year ago • 2 comments

Summary

After a secret has been initially created, the operator should keep reconciling to re-create a Secret if it has been deleted or changed

Use cases

The secret is always there and the app is kept in a workable state; even if someone deletes or manually changes the secret

Proposed solution

I am no programmer but there needs to be a loop that constantly reconciles onepassword items (desired state) and k8s secret objects (actual state)

Is there a workaround to accomplish this today?

delete and re-create the onepassword item

References & Prior Work

external-secrets does this

michaelniemand avatar Oct 25 '23 16:10 michaelniemand

ok it seems the secret did get recreated 10 hours after deleting it OP Item: lastTransitionTime: "2023-10-25T16:16:57Z" Secret: creationTimestamp: "2023-10-26T06:14:34Z"

So the reconciliation period appears to be 10 hours? It would be great if that was configurable!

michaelniemand avatar Oct 26 '23 07:10 michaelniemand

Have you checked the operator.pollingInterval parameter? The documentation is available here.

I encountered the same issue, but by reducing the polling interval, I noticed that my password changes take effect more quickly. I've opened an issue to propose adding information about this parameter to the documentation (#179 ).

fdaligand avatar Nov 24 '23 10:11 fdaligand