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

Sidecar usability improvements #757

Open
4 tasks
jcushman opened this issue Nov 24, 2024 · 2 comments
Open
4 tasks

Sidecar usability improvements #757

jcushman opened this issue Nov 24, 2024 · 2 comments
Labels
c2patool Issues related to c2patool cli status: not prioritized

Comments

@jcushman
Copy link

Goal

I'm working on an archiving project where I need to write provenance chains for arbitrary files. I was hoping to use c2patool to sign these files via the sidecar support. I hoped that something like this would work:

c2patool myfile -s <some params> -- write the sidecar to myfile.c2pa.
c2patool myfile myfile.c2pa -- validate myfile using myfile.c2p.

I found a few issues doing this, some bigger than others.

Sidecar usability issues

  • -s accepts arbitrary file extensions, but not no file extension. Signing a file without an extension results in "Error: Missing extension output".
  • No way to specify sidecar output file path. Sidecar is mandatorily written to output path with .c2pa.
  • c2patool -s writes a mandatory copy of the original input file (Add test_embed_with_ingredient_err #134)
  • No (documented) way to verify a file with a sidecar. Once you have a sidecar it's not clear what to do with it to validate the file.

I'm not sure the cleanest way to sort this out, but maybe it's just that -s needs to take a file path. Something like:

  • c2patool myfile -m manifest.json -s myfile.c2pa: write signature to sidecar
  • c2patool myfile -s myfile.c2pa: verify signature from sidecar

I hope this is helpful -- it's my first time trying the tool so I may be confused.

@jcushman
Copy link
Author

Oh, I'm also not clear how sidecar support works with multiple/repeated signatures, but I didn't get far enough to experiment with that.

@scouten-adobe scouten-adobe transferred this issue from contentauth/c2patool Dec 11, 2024
@mauricefisher64
Copy link
Collaborator

-s does not take any parameters. The sidecar will have the same name and same location as the output asset except with a .c2pa extension.
Sidecar validation is automatic if there is no manifest in the asset and their is a file with the same name with a .c2pa extension in the same folder.

@gpeacock gpeacock added status: not prioritized c2patool Issues related to c2patool cli labels Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c2patool Issues related to c2patool cli status: not prioritized
Projects
None yet
Development

No branches or pull requests

3 participants