Replies: 4 comments 1 reply
-
Current plan is to approach this over time in a couple ways: Short TermAdd a step to the Ratify API that will check if the requested container's artifacts are in cache. If they are not, return failure and cache all of the container's artifacts. This will ensure that we are blocking images that we will not be able to check within the timeout. The side effect of this approach is that valid container images will be blocked the first time a deployment request is made for them. Each subsequent request for the same image should be able to be validated. Medium TermAdd functionality to Ratify to crawl and pre-cache container image artifacts from configured registries. This will reduce the number of round trips necessary during the admission request and result in more images being validated on the first request. We will need to configure caching correctly and ensure that we refresh artifacts on a reasonable interval. Long TermTBD |
Beta Was this translation helpful? Give feedback.
-
Helm ExplorationIs it possible for us to do artifact fetching or even full validation prior to deployment? Motivating Questions:
|
Beta Was this translation helpful? Give feedback.
-
We have been compiling experiments/analysis on improving ORAS latency here: https://hackmd.io/@akashsinghal/rkEZqxxW5 |
Beta Was this translation helpful? Give feedback.
-
We have asked for Gatekeeper to increase the default timeout. The original reason for decreasing the default timeout from 5 to 3 seconds was due to a leader election issue. That issue no longer applies post k8 1.20. open-policy-agent/gatekeeper#1956 In the meantime, Ratify has updated helm charts and deployment instructions to set validating webhook timeout to 7 seconds. #160 |
Beta Was this translation helpful? Give feedback.
-
When Ratify receives a request from an admission controller to validate a deployment there are strict timeouts for those requests. A number of factors can impact the amount of time that it takes Ratify to validate a request:
Due to these factors it is challenging to determine if a request can be fully validated within the allotted time. We need to come up with a plan to handle these scenarios.
Beta Was this translation helpful? Give feedback.
All reactions