Invalid Encapsulated Assertion Config: No encapsulated assertion config found with GUID dd3fb635-ea39-447c-87b8-a1ceed209f93. Exception caught!
search cancel

Invalid Encapsulated Assertion Config: No encapsulated assertion config found with GUID dd3fb635-ea39-447c-87b8-a1ceed209f93. Exception caught!

book

Article ID: 236631

calendar_today

Updated On:

Products

CA API Developer Portal

Issue/Introduction

The API Developer Portal is showing service disruption error for the Application API plan. 

Error Log Shows :

2022-03-03T12:12:00.089-0800 INFO 198 com.l7tech.server.policy.assertion.ServerAuditDetailAssertion: -4: responseCode=404,body=
2022-03-03T12:12:00.100-0800 INFO 197 com.l7tech.server.policy.assertion.ServerAuditDetailAssertion: -4: Portal API sync status : no updates from portal
2022-03-03T12:12:00.137-0800 WARNING 193 com.l7tech.server.policy.assertion.ServerAuditDetailAssertion: -5: Failed to sync Portal Account Plans: invalid sync response
2022-03-03T12:12:00.138-0800 INFO 193 com.l7tech.server.policy.assertion.ServerAuditDetailAssertion: -4: {}
2022-03-03T12:12:00.227-0800 WARNING 199 com.l7tech.server.policy.assertion.ServerEncapsulatedAssertion: 4: Invalid Encapsulated Assertion Config: No encapsulated assertion config found with GUID dd3fb635-ea39-447c-87b8-a1ceed209f93. Exception caught!
2022-03-03T12:12:00.227-0800 INFO 199 com.l7tech.external.assertions.comparison.server.ServerComparisonAssertion: 7101: Comparison did not match: ${dbsystem} is equal to cassandra
2022-03-03T12:12:00.227-0800 INFO 199 com.l7tech.external.assertions.comparison.server.ServerComparisonAssertion: 7101: Comparison did not match: ${isLocal} is equal to false
2022-03-03T12:12:00.227-0800 WARNING 199 com.l7tech.server.task.ScheduledPolicyRunner: 2520: Error in Portal Sync Application scheduled task policy execution: Assertion Falsified
2022-03-03T12:12:00.228-0800 WARNING 199 com.l7tech.server: Executing background policy for scheduled task Portal Sync Application
2022-03-03T12:12:00.443-0800 INFO 195 com.l7tech.server.policy.assertion.ServerAuditDetailAssertion: -4: Tenant Policy Template Sync completed

Environment

Release : 5.0

Component : API PORTAL

Cause

The Encapsulated assertions got corrupted during portal enrollment.

Resolution

  1. We saw the Application API Keys are not synced from Portal. All others are in sync.
  2. Reviewed in Policy Manager,  and found corrupted assertion "Portal API Key Storage Sync" in policyfragments/persitence/apikey folder.
  3. Looks like a policy fragment instead encapsulated assertion (the icon does not belong to the encapsulated assertion, missing the green star icon).
  4. Confirmed from the policy manager that several other encapsulated assertions were missing from policy (Portal lookup Api key DB, Portal lookup Api key NOSql missing both).
  5. From the policy manager, view Manage Encapsulated Assertions
    • Deleted the following:
    • Portal API Key Storage Sync
    • Portal lookup Api key DB
    • Portal lookup Api key NOSql
  6. From a working Gateway server, export the same encapsulated assertion and import it to the problematic gateway.
  7. From the problematic gateway, Policy Manager, go to Tasks-> Extension and Add-Ons -> "Manage Encapsulated Assertions"  and import the file you exported before "Portal API Key Storage Sync".
  8. Once imported, check if it appears under the services window, if the icon does not shows like a green star, import again and overwrite it until you see the icon for encapsulated assertion.
  9. Restart the gateway services.