aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/maintenance/identity/AthenzCredentialsMaintainer.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/maintenance/identity/AthenzCredentialsMaintainer.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/maintenance/identity/AthenzCredentialsMaintainer.java
index 9e295b6a8e6..13c0c5d0bb5 100644
--- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/maintenance/identity/AthenzCredentialsMaintainer.java
+++ b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/maintenance/identity/AthenzCredentialsMaintainer.java
@@ -202,6 +202,7 @@ public class AthenzCredentialsMaintainer implements CredentialsMaintainer {
private boolean deleteTenantCredentials(NodeAgentContext context) {
var siaDirectory = context.paths().of(CONTAINER_SIA_DIRECTORY, context.users().vespa());
var identityDocumentFile = siaDirectory.resolve(TENANT.getIdentityDocument());
+ if (!Files.exists(identityDocumentFile)) return false;
var athenzIdentity = getAthenzIdentity(context, TENANT, identityDocumentFile);
var privateKeyFile = (ContainerPath) SiaUtils.getPrivateKeyFile(siaDirectory, athenzIdentity);
var certificateFile = (ContainerPath) SiaUtils.getCertificateFile(siaDirectory, athenzIdentity);