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

Fixing idempotence issues of new ACL system + improved handling of properties #480

Merged
merged 5 commits into from
May 23, 2019

Conversation

marius-meissner
Copy link
Contributor

@marius-meissner marius-meissner commented May 21, 2019

Fixes #479 and improves handling of some properties (better tracking of modifications).

SecretID of token is not displayed for security reasons. Anyway this property may be only set upon creation, so no modification tracking needed.

Feedback is highly welcome.

@marius-meissner
Copy link
Contributor Author

Travis checks seem to fail randomly, as Consul seems to be unavailable:

Connection refused by API after 10 tries

@solarkennedy Is there a way to show the Consul log in case of a failure?

@NFarrington
Copy link

I can confirm this has fixed my use-case for the issue I reported in #479 🙂

I have spotted one other remaining idempotency issue - marking a policy or token as 'ensure => absent' always causes a notification, such as Notice: /Stage[main]/Consul_token[my-token]/ensure: removed, even if the token has already been removed

Thanks for your work on the original feature and this fix, it's helped me a lot!

@marius-meissner
Copy link
Contributor Author

@NFarrington Thanks for the feedback!
I just adjusted the creation checks and added an acceptance test.
Could you please verify again?

@NFarrington
Copy link

All checks out on my end, looks good 👍

@solarkennedy
Copy link
Contributor

Thanks @SkydiveMarius for the followup. Nice to catch these type of bugs before we make a release.
Thanks for reporting @NFarrington, just be careful using this from master :)

@solarkennedy solarkennedy merged commit d63ae13 into voxpupuli:master May 23, 2019
spuder pushed a commit to spuder/puppet-consul that referenced this pull request Feb 25, 2020
Fixing idempotence issues of new ACL system + improved handling of properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New 1.4+ ACL support is not idempotent
3 participants