THE root cause of 'container view only shows the primary': checkAgentAuth used crypto.timingSafeEqual but 'crypto' was never imported (ES module). The call threw ReferenceError, the try/catch swallowed it, _bearerEq returned false, so EVERY bearer-token check on a node-agent failed. The primary's own containers showed only because the local node-agent has no NODE_TOKEN (auth skipped). Adding 'import crypto from crypto' makes token comparison work, so the primary mam-api can now read containers + logs from every node. |
||
|---|---|---|
| .. | ||
| Dockerfile | ||
| index.js | ||
| package.json | ||