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

Allow for Regex in CertSubjectEmailVerifier #299

Open
dave-tucker opened this issue Sep 18, 2023 · 0 comments · May be fixed by #300
Open

Allow for Regex in CertSubjectEmailVerifier #299

dave-tucker opened this issue Sep 18, 2023 · 0 comments · May be fixed by #300
Labels
enhancement New feature or request

Comments

@dave-tucker
Copy link

Description

In the cosign binary you can use --certificate-identity-regexp and --certifcate-oidc-issuer-regex to provide a regular expression for identity (email) or issuer. It would be great if we can do this from sigstore-rs also.

@dave-tucker dave-tucker added the enhancement New feature or request label Sep 18, 2023
dave-tucker added a commit to dave-tucker/sigstore-rs that referenced this issue Sep 18, 2023
This allows for either an exact match (via StringVerifier) or
it allows for a regular expression match (via RegexVerifier).

This supports the use case of trusting signatures from a
collection of email addresses e.g .*@redhat.com and or from a
collection of issuers.

Fixes: sigstore#299

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
dave-tucker added a commit to dave-tucker/sigstore-rs that referenced this issue Sep 18, 2023
This allows for either an exact match (via StringVerifier) or
it allows for a regular expression match (via RegexVerifier).

This supports the use case of trusting signatures from a
collection of email addresses e.g .*@redhat.com and or from a
collection of issuers.

Fixes: sigstore#299

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
dave-tucker added a commit to dave-tucker/sigstore-rs that referenced this issue Sep 20, 2023
This allows for either an exact match [StringVerifier::ExactMatch]
or it allows for a regular expression [StringVerifier::Regex]

This supports the use case of trusting signatures from a
collection of email addresses e.g .*@redhat.com and or from a
collection of issuers.

Fixes: sigstore#299

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
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.

1 participant