We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fef5bf commit df0d986Copy full SHA for df0d986
ic-agent/src/agent/mod.rs
@@ -949,10 +949,11 @@ impl Agent {
949
}
950
951
fn verify_cert_timestamp(&self, cert: &Certificate) -> Result<(), AgentError> {
952
+ // Verify that the certificate is not older than ingress expiry
953
+ // Certificates with timestamps in the future are allowed
954
let time = lookup_time(cert)?;
955
if (OffsetDateTime::now_utc()
956
- OffsetDateTime::from_unix_timestamp_nanos(time.into()).unwrap())
- .abs()
957
> self.ingress_expiry
958
{
959
Err(AgentError::CertificateOutdated(self.ingress_expiry))
0 commit comments