Skip to content

JWE For Encryption, Custom Provider for Decryption? #113

@pavgup

Description

@pavgup

Heyyo! I've got a curious question, I'm working on scenarios where I'd like to use the public half of an RSA key to encrypt content with skopeo as the runner (e.g., skopeo copy --encryption-key jwe:mymagicprivkey.key oci:alpine oci:encrypted) and then use a custom provider to handle decryption (e.g., skopeo copy --decryption-key provider:mysimpleprovider oci:encrypted oci:decrypted) with a configuraiton that looks a little like:

{
    "key-providers": {
        "mysimpleprovider": {
            "cmd": {
                "path":"/bin/mysimpleprovider",
                "args": []
            }
        }
    }
} 

Naturally, when ocicrypt sees the encrypted content, it sees it with the jwe scheme and thusly finds no match to decrypt when the only option is mysimpleprovider.

Can I have a mismatched encryption/decryption scenario?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions