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 support for measuring an image without writing it to a repo #49

Open
allisonkarlitskaya opened this issue Dec 4, 2024 · 1 comment

Comments

@allisonkarlitskaya
Copy link
Collaborator

In short: cfsctl create-image without a repo. The only thing that this would produce is a fs-verity measurement (of the image) on stdout.

We need:

  • a new verb (but this would still requiring opening a repo); or
  • some kind of --without-repo mode (but this would break most other verbs)
@allisonkarlitskaya
Copy link
Collaborator Author

The main difficulty here is the selinux relabelling. In order to do that, we need to be able to open the selinux config from the repo in order to query the policy, but we can't do that without the repo because we don't have access to file contents.

We could somehow make an exception and store the necessary selinux files as inlines, or we could figure out a way to (re-)read the selinux config from the source directory directly. Both options are kinda gross.

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

No branches or pull requests

1 participant