Skip to content

TLS: allow specification of both type and value for SAN matcher #18259

Closed

Description

@yanavlasov

Presently SAN matcher just specifies values that can be matched against DNS, URI, EMAIL and IP elements of SAN. However it is not possible to restrict this to specific types. I.e. check DNS:www.google.com or URI:https://www.google.com

This may allow certificate validation bypasses, where a signed certificate with malformed e-mail SAN www.google.com can be used to bypass intended check for DNS SAN.

This proposal is to update certificate matching API to include both type and value.

Activity

  1. added
    enhancement
    triage
    and removed
    triage
    on Sep 24, 2021
  2. yanavlasov commented on Sep 24, 2021

    @yanavlasov
    ContributorAuthor
  3. added
    help wanted
    and removed
    enhancement
    on Sep 25, 2021
  4. mattklein123 commented on Sep 25, 2021

    @mattklein123
    Member

    SGTM

  5. ggreenway commented on Sep 27, 2021

    @ggreenway
    Member

    SGTM

  6. mathetake commented on Sep 28, 2021

    @mathetake
    Member

    +1

    SPIFFE validator is manually ignoring non-URI SANs and check only URL SANs so it would be nice we can use the new API there as well.

  7. pradeepcrao commented on Sep 29, 2021

    @pradeepcrao
    Contributor

    I will work on fixing this (in case no one else is actively working on a fix).

  8. adisuissa commented on Jan 10, 2022

    @adisuissa
    Contributor

    Fixed by #18628, closing.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions