itamae-kitchen / itamae

Configuration management tool inspired by Chef, but simpler and lightweight. Formerly known as Lightchef.
https://itamae.kitchen/
MIT License
1.12k stars 125 forks source link

file: add support for sensitive files #325

Closed terceiro closed 3 years ago

terceiro commented 3 years ago

sensitive files will not get changes to their contents logged.

unasuke commented 3 years ago

@terceiro That's a good idea. In my opinion, print "diff existing but not show content because it's sensitive" in show_content_diff is more friendly. What do you think about it? 👀

https://github.com/itamae-kitchen/itamae/blob/0d60ce7baa411f12ba2bb16c5f39dbd0a29d3566/lib/itamae/resource/file.rb#L158-L179

terceiro commented 3 years ago

@unasuke yes I agree, that is better. Modified the PR accordingly.

unasuke commented 3 years ago

Released as v1.11.0