Run check as root
@@ -92,7 +92,8 @@ public class StorageMaintainer {
// athenz certificate check
Path athenzCertExpiryCheckPath = environment.pathInNodeUnderVespaHome("libexec64/yms/yms_check_athenz_certs");
SecretAgentCheckConfig athenzCertExpirySchedule = new SecretAgentCheckConfig("athenz-certificate-expiry", 60,
- athenzCertExpiryCheckPath, "--threshold", "20");
+ athenzCertExpiryCheckPath, "--threshold", "20")
+ .withRunAsUser("root");
configs.add(annotatedCheck(node, athenzCertExpirySchedule));
if (node.getNodeType() != NodeType.config) {
