Skip to content

--simulate-json: optionally include manifest-full's unchanged (kept) files #31

Open

Description

@djbclark

Follow-up to #27; not scheduled.

--simulate-json writes only the change set. --simulate=manifest-full additionally lists files the policy touched and found already compliant, read from CHROOT_KEPT_LIST_FILE. That list is available when the JSON is written, so it can be added. This was a scope choice, not a technical limit.

Cost and design questions:

  1. About 20–30 lines.
  2. Each kept file needs a SHA-256, and there could be many.
  3. A separate unchanged array, or "change": "unchanged" entries mixed into files? The separate array keeps "every entry in files is a change" true.

First, check whether tendcf needs this. For example, does its approval or audit flow need to see what the policy verified, not only what it would change? If not, leave it until someone upstream asks.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions