contour
contour copied to clipboard
Report invalid certificates in status blocks of HTTPProxy's that reference them
Currently if a certificate is missing or invalid we report "missing or invalid" in the status block. Missing is self evident, but invalid is defined by the validation function passed into lookupSecret
. After #1608 there will be a new kind of invalid status, malformed. The check for malformed data is performed earlier, when we are notified of the secret from kubernetes.
At the moment #1608 will reject the secret and it will not be inserted, this will cause the dag to report "missing or invalid" because the secret is missing -- it never made it to the cache. Perhaps this is good enough. If not, then the next step may be to insert in place of the malformed secret a pseudo object which can hold the specifics of the validation failure, this can then be forwarded to the HTTPProxy object as part of lookupSecret and recorded in the objects' status field.