Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix endpoint certificate retrieval by using FQDN #12830

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nimsara66
Copy link
Contributor

Purpose

Fix the issue where the 'General Endpoint Configurations' section in the Publisher Portal does not display applied certificates from other APIs with the same domain name.

image

Approach

The current implementation for retrieving certificates in the Publisher Portal relies on an exact match with the applied endpoint of the API. As a result, if another API shares the same domain name but has a different endpoint path, the associated certificate is correctly applied underneath during backend communication but does not appear in the UI.
Ex: https://google.com and https://google.com/api/v1

This PR addresses the issue by replacing the exact match (= operator) with the like operator and wildcard (%) syntax. This ensures that certificate retrieval is based on the fully qualified domain name (FQDN) rather than the exact endpoint, providing a more accurate and consistent UI representation.

image

Related to

Issue: wso2/api-manager#3527
Internal: https://github.com/wso2-enterprise/wso2-apim-internal/issues/8460

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant