-
Notifications
You must be signed in to change notification settings - Fork 13
cfbs-analyze: ignore generated files controlling CFEngine policy updates #224
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
cfbs-analyze: ignore generated files controlling CFEngine policy updates #224
Conversation
…y updates Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com>
4406e93 to
0232a4d
Compare
|
Thanks for submitting a pull request! Maybe @craigcomstock can review this? |
vpodzime
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
nickanderson
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bah, I thought i submitted my review, but it was just pending.
| ".github/", | ||
| # CFEngine policy distribution generated files: | ||
| "cf_promises_release_id", | ||
| "cf_promises_validated", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, those file are generated. But, in fact I would call this out as a warning I guess.
If those files are present in /var/cfengine/masterfiles on an installed host fine, expected. But, if those files are for example in the root of your repo and you were deploying it to hosts then it would cause an active problem with policy distribution and updates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. But how can we tell? Normally, I'd say "check for these files, if they are present, it's a live set on a hub" 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, probably a bit difficult / out of scope for cfbs analyze. Just looking at you using it yesterday, you copied the folder to a tmp dir before running analyze, so not really a good way of knowing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, the only place that they are expected is WORKDIR/masterfiles. So, cfbs could try to call cf-promises or something to drive where workdir is (and assume /var/cfengine/mastefiles or I guess perhaps /etc/cfengine/masterfiles would be the FHS location).
It's really unlikely for that to happen in a cfbs managed policy set, we can let it go. cfbs convert when it exists won't make them part of the policy set.
No description provided.