Authentication error listed for aggregation normalizer service
The logs for the aggregation normalizer service pod list authentication errors, but the service is functioning correctly.
Problem
The logs for the
ibm-hdm-analytics-dev-normalizer-aggregationservice
pod display
some authentication errors, as in the following
example.{name:common-auth.lib,hostname:hybrid-bvt-ibm-hdm-analytics-dev-normalizer-aggregationserz8b69,pid:13,subscription:-,user:-,client:unknown,req_id:d189f870-2999-11ef-9e11-b78c3a4fa2b9,
http:GET /api/aggregation/v1/configuration,level:40,stack:null,message:Unauthorized,strategy:statickey,
msg:Error occured whilst validating authentication,time:2024-06-13T15:30:09.400Z,v:0}
{name:access,hostname:hybrid-bvt-ibm-hdm-analytics-dev-normalizer-aggregationserz8b69,pid:13,level:50,cat:Not authorised,role:User,
msg:GET '/api/aggregation/v1/configuration',time:2024-06-13T15:30:09.400Z,v:0}
{name:request,hostname:hybrid-bvt-ibm-hdm-analytics-dev-normalizer-aggregationserz8b69,pid:13,subscription:-,user:-,client:unknown,req_id:d189f870-2999-11ef-9e11-b78c3a4fa2b9,
http:GET /api/aggregation/v1/configuration,level:30,stack:null,
err:{message:Authentication Error,name:e,
stack:e: Authentication Error\n
at /app/node_modules/@omaas/common-auth/lib/index.js:189:21\n
at Layer.handle_error (/app/node_modules/express/lib/router/layer.js:71:5)\n
at trim_prefix (/app/node_modules/express/lib/router/index.js:326:13)\n
at /app/node_modules/express/lib/router/index.js:286:9\n
at Function.process_params (/app/node_modules/express/lib/router/index.js:346:12)\n
at next (/app/node_modules/express/lib/router/index.js:280:10)\n
at allFailed (/app/node_modules/passport/lib/middleware/authenticate.js:175:16)\n
at attempt (/app/node_modules/passport/lib/middleware/authenticate.js:183:28)\n
at strategy.fail (/app/node_modules/passport/lib/middleware/authenticate.js:305:9)\n
at BasicStrategy.authenticate (/app/node_modules/passport-http/lib/passport-http/strategies/basic.js:69:37)\nCaused by: AuthenticationError: Unauthorized\n
at allFailed (/app/node_modules/passport/lib/middleware/authenticate.js:175:21)\n
at attempt (/app/node_modules/passport/lib/middleware/authenticate.js:183:28)\n
at strategy.fail (/app/node_modules/passport/lib/middleware/authenticate.js:305:9)\n
at BasicStrategy.authenticate (/app/node_modules/passport-http/lib/passport-http/strategies/basic.js:69:37)\n
at attempt (/app/node_modules/passport/lib/middleware/authenticate.js:369:16)\n
at authenticate (/app/node_modules/passport/lib/middleware/authenticate.js:370:7)\n
at express.Router.use.strategy (/app/node_modules/@omaas/common-auth/lib/index.js:175:39)\n
at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)\n
at trim_prefix (/app/node_modules/express/lib/router/index.js:328:13)\n
at /app/node_modules/express/lib/router/index.js:286:9,code:401},
msg:Request ended in error,time:2024-06-13T15:30:09.400Z,v:0}
{name:access,hostname:hybrid-bvt-ibm-hdm-analytics-dev-normalizer-aggregationserz8b69,pid:13,level:30,req_id:d189f870-2999-11ef-9e11-b78c3a4fa2b9,
method:GET,url:/api/aggregation/v1/configuration,statusCode:401,msg:Audit,time:2024-06-13T15:30:09.401Z,v:0}
{name:request,hostname:hybrid-bvt-ibm-hdm-analytics-dev-normalizer-aggregationserz8b69,pid:13,subscription:-,user:-,client:unknown,req_id:d189f870-2999-11ef-9e11-b78c3a4fa2b9,
http:GET /api/aggregation/v1/configuration,level:30,stack:null,req:{method:GET,url:/api/aggregation/v1/configuration},
res:{statusCode:401,header:HTTP/1.1 401 Unauthorized\r\nX-OMaaS-RequestId: d189f870-2999-11ef-9e11-b78c3a4fa2b9\r\nWWW-Authenticate: Basic realm=\Users\\r\n
Content-Type: application/json; charset=utf-8\r\nContent-Length: 218\r\nETag: W/\da-4XlYRCOBeDAeUrckcSSqM/qn8J4\\r\nVary: Accept-Encoding\r\n
Date: Thu, 13 Jun 2024 15:30:09 GMT\r\nConnection: keep-alive\r\nKeep-Alive: timeout=5\r\n\r\n},
profile:{miliseconds:1.613919,tasks:[]},msg:Request finished,time:2024-06-13T15:30:09.401Z,v:0}
Resolution
This error is a known container issue that has no impact and can be ignored.