Skip CA certificates during mTLS client certificate authentication#1279
Skip CA certificates during mTLS client certificate authentication#1279
Conversation
Motivation: The `ApplicationCertificateAuthorizer` previously had code to skip CA certificates commented out with a TODO note to uncomment after fixing `SignedCertificateExtension` to generate end-entity certificates. Now that the extension has been fixed, the filtering logic can be enabled. Modifications: - Uncomment the `basicConstraints` check in `ApplicationCertificateAuthorizer` to skip CA certificates and only extract identity from leaf (end-entity) certificates Result: - mTLS authentication now correctly ignores CA certificates in the peer certificate chain and only uses end-entity (leaf) certificates for application identity extraction.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughUncommented the X.509 basic-constraints check in the certificate authorizer to always skip CA certificates during peer-certificate iteration. Updated two test files to pass an additional Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip CodeRabbit can generate a title for your PR based on the changes.Add |
Motivation:
The
ApplicationCertificateAuthorizerpreviously had code to skip CA certificates commented out with a TODO note to uncomment after fixingSignedCertificateExtensionto generate end-entity certificates. Now that the extension has been fixed, the filtering logic can be enabled.Modifications:
basicConstraintscheck inApplicationCertificateAuthorizerto skip CA certificates and only extract identity from leaf (end-entity) certificatesResult: