cryptography icon indicating copy to clipboard operation
cryptography copied to clipboard

verification: WIP client verification skeleton

Open woodruffw opened this issue 1 year ago • 3 comments

Still WIP -- the public APIs are not fully filled in yet. Outstanding tasks:

  • [x] Fill in build_client_verifier
  • [x] Add and implement ClientVerifier.verify
  • [ ] Unit tests (including limbo tests?)

Closes #10276.

woodruffw avatar Feb 04 '24 13:02 woodruffw

That makes sense to me

On Sun, Feb 4, 2024, 4:20 PM William Woodruff @.***> wrote:

@.**** commented on this pull request.

In src/cryptography/hazmat/bindings/_rust/x509.pyi https://github.com/pyca/cryptography/pull/10345#discussion_r1477441539:

  • ) -> tuple[
  •    x509.Name, x509.SubjectAlternativeName | None, list[x509.Certificate]
    
  • ]: ...

Named type makes sense!

Re: subject: in that case, perhaps client verification should enforce the presence of a SAN? That should be trivial to do.

— Reply to this email directly, view it on GitHub https://github.com/pyca/cryptography/pull/10345#discussion_r1477441539, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAAGBGNRZWSBXWE4IGIEZDYR73QLAVCNFSM6AAAAABCY4GHUGVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTQNRRGU3DCOBQGE . You are receiving this because you commented.Message ID: @.***>

alex avatar Feb 04 '24 21:02 alex

PS: Yes, there should be limbo tests for this. In principle the schema was designed in a way to incorporate them.

alex avatar Feb 10 '24 01:02 alex

I'll work on the limbo tests for this shortly (✈️)

woodruffw avatar Feb 11 '24 14:02 woodruffw

For tracking: https://github.com/C2SP/x509-limbo/pull/196 has the initial client cases. I'm going to poke at email NC handling in a separate PR first, and then align those tests here.

woodruffw avatar Feb 26 '24 20:02 woodruffw

Email NC bits are merged, so I'll take another poke at this tonight or tomorrow.

woodruffw avatar Feb 28 '24 00:02 woodruffw

This will be at 100% coverage once https://github.com/C2SP/x509-limbo/pull/221 lands. After that, I'll also look at filtering the set of subjects returned by the API to just ones that we currently have NC support for.

woodruffw avatar Mar 05 '24 03:03 woodruffw

This should be good for a review!

woodruffw avatar Mar 20 '24 17:03 woodruffw