notation
notation copied to clipboard
OCSP timeout threshold is 2 seconds
What is not working as expected?
The OCSP timeout threshold is hardcoded to 2 seconds, which is not flexible enough. One of our notation customers encounters timeout issues frequently, so we need to provide a way to customize the OCSP timeout threshold.
What did you expect to happen?
provide a way to customize the OCSP timeout threshold
How can we reproduce it?
Do signature verification with a OCSP server that has high latency
Describe your environment
Linux amd64
What is the version of your Notation CLI or Notation Library?
Notation v1.2.0-alpha.1
I'd say this is more an enhancement than a bug? Because the '2 second' default threshold is from Notary Project's spec: https://github.com/notaryproject/specifications/blob/main/specs/trust-store-trust-policy.md#ocsp-download
Updated.