summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Marius Venstad <jonmv@users.noreply.github.com>2018-01-19 15:03:17 +0100
committerGitHub <noreply@github.com>2018-01-19 15:03:17 +0100
commit2b954c7feeda33d30808c8713fae734df2b7feb2 (patch)
treec9cf6d9a53bd1f0c6acd954d175cf8972cc68fcf
parentcbdbf7e3f0979542213aa3793cb5b211607dd179 (diff)
parentdd66f469c837d285297441dccce62734dab8df62 (diff)
Merge pull request #4722 from vespa-engine/bjorncs/improve-error-message
Improve error message from Athenz principal filter
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/controller/athenz/filter/AthenzPrincipalFilter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/athenz/filter/AthenzPrincipalFilter.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/athenz/filter/AthenzPrincipalFilter.java
index af9ad71e7eb..b72cec562d8 100644
--- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/athenz/filter/AthenzPrincipalFilter.java
+++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/athenz/filter/AthenzPrincipalFilter.java
@@ -59,7 +59,7 @@ public class AthenzPrincipalFilter implements SecurityRequestFilter {
if (!certificatePrincipal.isPresent() && !nTokenPrincipal.isPresent()) {
String errorMessage = "Unable to authenticate Athenz identity. " +
- "Both client certificate missing and principal token header are missing.";
+ "Either client certificate or principal token is required.";
sendErrorResponse(responseHandler, Response.Status.UNAUTHORIZED, errorMessage);
return;
}