You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Simulate mode as non-root drops a file from the change set when its promise sets an owner #29
Run as non-root with --simulate=manifest (and so --simulate-json), a files promise that creates a file and sets owners => { "root" } logs Cannot set ownership on file ... (chown: Operation not permitted) and Errors encountered when actuating files promise. The file then appears in neither the text manifest nor the JSON change set, and cf-agent exits 0. A root run would create the file.
The same policy without the owner change lists the file, with uid set to the invoking user; neither report says so.
Pre-existing: the JSON writer inherits it from the change records. Reproduced 2026-09-30 on macOS with a build of #27 (4c7d20e1a), using CFENGINE_TEST_OVERRIDE_WORKDIR.
Possible direction: one WARNING at the start of a non-root simulate run, next to the existing "All changes in files will be made in the ... chroot" warning. It would say that owners reflect the invoking user and that ownership changes cannot be simulated.
Decision (operator, 2026-09-30): add one WARNING at the start of a non-root simulate run, saying that owners reflect the invoking user and that ownership changes cannot be simulated. It covers the text report and the JSON alike. It goes in its own small PR together with this bug, not in #27.
Activity
djbclark commentedon Sep 30, 2026
Decision (operator, 2026-09-30): add one WARNING at the start of a non-root simulate run, saying that owners reflect the invoking user and that ownership changes cannot be simulated. It covers the text report and the JSON alike. It goes in its own small PR together with this bug, not in #27.