Update Portal Integration operation failed with the below error.
Unable to update: Server returned HTTP response code: 400 for URL: https://portal-enroll.domainname.com:443/enroll/sit-portal?action=upgrade&nodeId=33e1f58d-8a6b-4473-a7ef-8c98cd1238ad&bundleVersion=UTC.20240530.1200.00
The portal-data logs showed:
[ERROR] [c.l.p.t.e.c.EnrolExceptionHandler]
RestError{httpStatusCode=400, errorCode=483,
devErrorMessage=ERROR: Missing environment variable [null]}
API Developer Portal 5.4 (Kubernetes form-factor)
The root cause of the HTTP 400 error is missing environment variables on the portal-data container due to the customer using an older Helm chart configuration that was not updated for Portal 5.4.
In Portal 5.4 (Helm chart version 2.3.19), the portal-data environment variable naming convention was changed in portal-data-config.yaml. The old CONFIG_PSSG_* prefix was replaced with CONFIG_*. The customer's portal-data ConfigMap still used the old naming convention, resulting in 6 required environment variables being missing.
Upgrade the Helm chart to version 2.3.19 or later.
https://github.com/CAAPIM/apim-charts/tree/portal-2.3.19/charts/portal