Skip to content

Idea: alias --cert-email as --cert-identity/--cert-san #108

Closed

Description

@woodruffw

Breaking this out for discussion from #107: --cert-email can be misleading when the OIDC identity in question isn't an email, but rather a GitHub workflow or other URL. We could provide CLI aliases that make this clearer.

cc @di for thoughts.

Activity

  1. added
    enhancement
    component:cli
    component:verification
    on Jun 2, 2022
  2. jku commented on Jun 6, 2022

    @jku
    Member

    Related: Github workflow certificate uses six other extensions in addition to SAN -- they must think verifying those have value, and the extensions there do seem useful. Other systems likely have different extensions they include.

    So observations:

    • A more generic --cert-extension <id> <value> could be useful (there are some potential problems with more complex datatypes but for the GitHub example this would work fine)
    • --cert-identity or --cert-san probably still makes sense as a more readable short hand for this specific case
  3. woodruffw commented on Jun 6, 2022

    @woodruffw
    MemberAuthor

    Related: Github workflow certificate uses six other extensions in addition to SAN -- they must think verifying those have value, and the extensions there do seem useful. Other systems likely have different extensions they include.

    Yep. We've added the OIDs for those extensions in #117. We need to figure out which set of CLI options we should expose for them, which will involve some coordination with cosign...

  4. woodruffw commented on Jun 6, 2022

    @woodruffw
    MemberAuthor

    Opened sigstore/cosign#1964 for cosign's side.

  5. woodruffw commented on Jun 6, 2022

    @woodruffw
    MemberAuthor
    • A more generic --cert-extension <id> <value> could be useful (there are some potential problems with more complex datatypes but for the GitHub example this would work fine)

    I think this is a good idea, although we probably want to think about the UX -- having <id> be a dotted-string is probably not ideal, so we'll probably want a standard set of human-friendly names that cosign and sigstore-python share.

  6. jku commented on Jun 7, 2022

    @jku
    Member

    You must have noticed this already but since it's not written anywhere:

    We previously discussed that --cert-email might already work to verify whatever fields are in SAN: this is untrue as cryptography API has different types for different kinds of SANs. In practice san_ext.value.get_values_for_type(RFC822Name) will only return the SANs that are emails, not URIs like the GitHub identifier.

  7. woodruffw commented on Jun 7, 2022

    @woodruffw
    MemberAuthor

    Yeah, this is an unfortunate case where cryptography is more correct in a way that causes more work for us 🙂

    We won't make any movement here until we get some consensus with cosign on sigstore/cosign#1964, so I'll follow up with some design thoughts there.

  8. woodruffw commented on Nov 3, 2022

    @woodruffw
    MemberAuthor

    It looks like cosign has merged partial support for --cert-identity, so we should probably go ahead and do the same.

    See: sigstore/cosign#2056

  9. added a commit that references this issue on Nov 3, 2022
    41b018b
  10. added a commit that references this issue on Mar 19, 2024
    85a96dd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    component:clicomponent:verificationenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions