In transport/http/identity_test.go, TestIdentity compares the result from resolver.GetIdentity with &auth.AnonymousIdentity{}. That test is fragile, as the behavior of comparing pointers to zero-sized objects (which auth.AnonymousIdentity is) is not guaranteed (https://go.dev/ref/spec#Comparison_operators, bullet point 6).
This test, and presumably other clients of auth.IdentityResolvers, should use a type assertion instead of interface equality.
Replace
with
if _, ok := actual.(*auth.AnonymousIdentity); !ok {
(Or a sentinel value should be defined in auth instead of a sentinel type.)
We believe this test will fail in the upcoming go1.25 (~August 2025) because of optimizations that change the behavior of equality on pointer-to-zero-sized allocations.