summaryrefslogtreecommitdiffstats
path: root/custodia/kubernetes/authz.py
diff options
context:
space:
mode:
Diffstat (limited to 'custodia/kubernetes/authz.py')
-rw-r--r--custodia/kubernetes/authz.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/custodia/kubernetes/authz.py b/custodia/kubernetes/authz.py
index 4342f6f..cb9c68d 100644
--- a/custodia/kubernetes/authz.py
+++ b/custodia/kubernetes/authz.py
@@ -36,7 +36,7 @@ class KubeAuthz(HTTPAuthorizer):
trail = path[len(prefix) + 1:]
(namespace, podname, secret) = trail.split('/', 2)
- self.logger.debug("Checking if pod %s,%s has access to secret %s",
+ self.logger.debug("Checking if pod %s/%s has access to secret %s",
namespace, podname, secret)
try:
@@ -52,6 +52,10 @@ class KubeAuthz(HTTPAuthorizer):
request['client_id'], path)
return False
+ self.logger.debug(
+ "Pod %s/%s runs on node %s with secret namespace %s.",
+ namespace, podname, node_id, secrets_namespace)
+
if node_id != request.get("remote_user"):
self.logger.debug("Node authenticated as %s, but pod is believed "
"to be running on %s",