There was an error while loading. Please reload this page.
1 parent 4d59b33 commit 06e7166Copy full SHA for 06e7166
1 file changed
src/policy.rs
@@ -120,6 +120,8 @@ pub fn normalize_destination(dest: &str) -> anyhow::Result<String> {
120
#[async_trait]
121
impl PolicyEngine for TomlPolicyEngine {
122
async fn evaluate(&self, ctx: &RequestContext) -> PolicyDecision {
123
+ // The leaf (end-entity) certificate is always first in the chain;
124
+ // remaining entries are intermediates used for chain-of-trust validation.
125
let Some(peer_cert_der) = ctx.peer_certificates.first() else {
126
return PolicyDecision::Deny {
127
reason: "no client certificate".into(),
0 commit comments