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

Use Key Provider to provide encryption key #67

Open
Dsolnik opened this issue Sep 8, 2022 · 4 comments
Open

Use Key Provider to provide encryption key #67

Dsolnik opened this issue Sep 8, 2022 · 4 comments

Comments

@Dsolnik
Copy link
Contributor

Dsolnik commented Sep 8, 2022

Would it be possible to give the key provider the option to specify the encryption key and protocols instead of just the KEK?

@stefanberger
Copy link
Collaborator

I am not quite sure what you mean. Is the 'encryption key' you mention the 'KEK' and now you want to choose whether to use gpg versus pkcs7/cms versus pkcs11 with that encryption key?

@lumjjb
Copy link
Collaborator

lumjjb commented Sep 9, 2022

you should be able to make the payload anything you want and program the keyprovider to unwrap that structure and do what you want with it.

@Dsolnik
Copy link
Contributor Author

Dsolnik commented Mar 16, 2023

@lumjjb, this is correct, we can do whatever we want with the annotation.

The key used to encrypt the layers is picked randomly (if none is specified on the command line) before being passed in to the ocicrypt key provider.

Ideally, I would want to have a provider for the key in addition to a provider for the KEK.

Does that make sense?

@Dsolnik
Copy link
Contributor Author

Dsolnik commented Mar 16, 2023

A better name for the current key provider would be KEK provider, I'm asking for something to provide the encryption key.

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

3 participants