diff --git a/services/node-agent/index.js b/services/node-agent/index.js index c4759bf..ee8f0ba 100644 --- a/services/node-agent/index.js +++ b/services/node-agent/index.js @@ -964,7 +964,7 @@ function checkAgentAuth(req) { const okNode = _bearerEq(token, NODE_TOKEN); const okShared = _bearerEq(token, CLUSTER_READ_TOKEN); if (!okNode && !okShared) { - console.warn(`[auth] reject: tok.len=${token.length} NODE_TOKEN.len=${NODE_TOKEN.length} CLUSTER_READ_TOKEN.len=${CLUSTER_READ_TOKEN.length}`); + console.warn(`[auth] reject: tok=${token.slice(0,6)}..${token.slice(-6)} CRT=${CLUSTER_READ_TOKEN.slice(0,6)}..${CLUSTER_READ_TOKEN.slice(-6)} match=${token===CLUSTER_READ_TOKEN}`); } return okNode || okShared; }