Skip to content

CertType has no X509-DV-CLIENT, so client verification fails on every GoDaddy production TL payload #116

Open

Description

@scourtney-godaddy

BLUF: The Java SDK rejects every valid caller it checks against GoDaddy's production transparency log, because CertType (the enum the SDK reads each certificate's type into) has no X509-DV-CLIENT, the type every production registration carries. Separately, the version filter in the same method never matches, so the SDK checks every _ans-badge record for a host instead of the one for the caller's version.

Reproduce (main at 4db65b0, 2026-10-13):

  1. Fetch any production registration, such as the v1.0.9 registration of seo.webmesh.ai. Its payload.producer.event.attestations.identityCert.type is X509-DV-CLIENT.
  2. Call BadgeVerificationService.verifyClient with that agent's Identity Certificate (URI SAN ans://v1.0.9.seo.webmesh.ai).
  3. Result: FINGERPRINT_MISMATCH, expected=null. The SDK fails to deserialize the registration record, so no registration ever matches.

Cause: ans-sdk-transparency/src/main/java/com/godaddy/ans/sdk/transparency/model/CertType.java lists X509_DV_SERVER, X509_EV_CLIENT, X509_EV_SERVER, X509_OV_CLIENT and X509_OV_SERVER, but no X509_DV_CLIENT. Adding X509_DV_CLIENT("X509-DV-CLIENT") makes the same call match v1.0.9.

Version filter: with the enum patched, filterBadgesByVersion (BadgeVerificationService.java:656-661) compared 1.0.9 from the certificate with v1.0.9 from the _ans-badge record, found no match, and fell back to all records (:234-243). ANS-6 §6.2 says to select the record whose version equals the certificate's version. Because of the fallback, verifyClient rejects a caller whose version the zone no longer publishes only when the fingerprint fails to match, not because it picked the record by version.

Found while testing ANS verifiers against the webmesh.ai agents.

Activity

  1. jcrisp-godaddy commented on Oct 30, 2026

    @jcrisp-godaddy

    I'd like to take this one.

    Plan:

    • Add X509_DV_CLIENT("X509-DV-CLIENT") to CertType so production registration records deserialize.
    • Fix filterBadgesByVersion so the certificate version (1.0.9) matches the _ans-badge record version (v1.0.9), normalizing the v prefix on compare.
    • Per ANS-6 §6.2, when the caller's version has no matching record, return a not-found result instead of falling back to all valid badges. I'll keep an unversioned record as an accepted fallback for parity with the Go SDK.
    • Tests: deserialization of a real X509-DV-CLIENT payload shape, version filter with and without the v prefix, and the no-matching-version case producing not-found rather than FINGERPRINT_MISMATCH.

    Will open the PR with DCO sign-off and the AI-assistance disclosure per CONTRIBUTING.md.

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

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions