After the OTK upgrade in PRODUCTION, we are facing issue with a flow , customer is affected and not working with error '0001' code.
the pub OTK require OAuth 2.0 Token policy export has "client_cert" as key for encapsulated assertion "pub OTK OAuth 2.0 Token Validation - BEARER", whereas we see that the the encapsulated assertion has input label as "client_cert_base64".
Could we know what could be the root cause of this scenario ?
the related logs from XX service show that client cert is not found and this in turn deletes the client custom data from the final response.
Context variable 'request.ssl.clientCertificate' is not found.
2024-03-12T10:26:18.486-0400 INFO 1304 com.l7tech.external.assertions.comparison.server.ServerComparisonAssertion: 7103: At least one comparison value was null
2024-03-12T10:26:18.486-0400 INFO 1304 com.l7tech.external.assertions.evaluatejsonpathexpressionv2.server.ServerEvaluateJsonPathExpressionV2Assertion: 9649: Could not find any matching result; assertion therefore fails; Expression is 'act'.
2024-03-12T10:26:18.486-0400 INFO 1304 com.l7tech.server.policy.assertion.ServerAuditDetailAssertion: -4: CUSTOM: {
"otk": {"client_type": "confidential","grant_type": "authorization_code","code_challenge": "xxxx","code_challenge_method": "S256"},
"portal": {},
"mag": {},
"clientkey": {"client_custom": {},"client_key_custom": {"lifetimes": {"oauth2_access_token_lifetime_sec": 900,"oauth2_refresh_token_lifetime_sec": 432000}}},
"mTLS_certificate_thumbprint": ""
}
API Gateway 10.1, 11.x
OTK 4.6.1
The root cause , the OTK policy- OTK session DB, which attempts to read session Data from Cache if present prior to looking for data in OTK DB.
there was a customized Pub OTK session DB Assertion and has Enabled cache look up
Disable the cache lookup in policy when not required - GET and STORE
Engineering provided the following steps to resolve the issue
Note : This is a temp solution meanwhile Product Management will notify when this feature can be added in a new release.