Skip to content
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

Add file metadata cataloger #335

Closed
wagoodman opened this issue Mar 2, 2021 · 1 comment · Fixed by #339
Closed

Add file metadata cataloger #335

wagoodman opened this issue Mar 2, 2021 · 1 comment · Fixed by #339
Assignees
Labels
enhancement New feature or request

Comments

@wagoodman
Copy link
Contributor

Add a new "power-user" command configuration to capture metadata for each file in an image, including:

  • File content digests, with selectable digest algorithms (md5, sha1, sha256 at least)
  • File mode
  • UID
  • GID

Configuration should support:

  • Allow for enable/disable of the cataloger as a whole
  • Takes a scope option as configuration (default: bind to user config/default)
  • Should be able to specify zero or more digest algorithms (default: none)
  • Should be able to specify a list of globs to capture metadata information for (default: “**”)

JSON Presentation:

  • Adds a new “fileMetadata” section that is a list of objects, each object should have a file path, a layer, and the associated metadata.
@luhring
Copy link
Contributor

luhring commented Mar 3, 2021

One thought on the "Configuration should support" section: are all of these items necessary for the MVP of this feature? My understanding is we're intentionally not committing to how we're exposing this functionality to users yet; and instead, for now, our goal is to satisfy a need by one particular downstream consumer — Anchore Engine. If Anchore Engine doesn't need a given piece of configurability, I'd suggest we defer adding it for now, so that we don't introduce more dimensions we need to test, and more scope that takes our time in the short term.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants