diff --git a/jdisc-cloud-aws/src/main/java/ai/vespa/secret/aws/AthenzUtil.java b/jdisc-cloud-aws/src/main/java/ai/vespa/secret/aws/AthenzUtil.java index b0c2372172f..38b950ed130 100644 --- a/jdisc-cloud-aws/src/main/java/ai/vespa/secret/aws/AthenzUtil.java +++ b/jdisc-cloud-aws/src/main/java/ai/vespa/secret/aws/AthenzUtil.java @@ -19,9 +19,13 @@ public class AthenzUtil { // Serves as a namespace for resources in athenz and AWS public static final String PREFIX = "tenant-secret"; + public static String systemPrefix(String systemName) { + return String.join(".", PREFIX, systemName).toLowerCase(); + } + /* tenant-secret.. */ public static String roleAndPolicyPrefix(String systemName, String tenantName) { - return String.join(".", PREFIX, systemName, tenantName).toLowerCase(); + return String.join(".", systemPrefix(systemName), tenantName).toLowerCase(); } /* tenant-secret....reader */