Skip to content

Conversation

@jakub-nt
Copy link
Contributor

@jakub-nt jakub-nt commented May 7, 2025

No description provided.

…y updates

Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com>
@jakub-nt jakub-nt force-pushed the cfbs-analyze-ignore-policy-update-files branch from 4406e93 to 0232a4d Compare May 7, 2025 16:42
@cf-bottom
Copy link

Thanks for submitting a pull request! Maybe @craigcomstock can review this?

Copy link
Contributor

@vpodzime vpodzime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@olehermanse olehermanse merged commit dd4e39a into cfengine:master May 12, 2025
11 checks passed
Copy link
Member

@nickanderson nickanderson left a 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",
Copy link
Member

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.

Copy link
Contributor

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" 😅

Copy link
Member

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.

Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants