Spring Boot 2.2 application with springdoc-openapi-ui (Swagger UI) runs HTTP port. The application is deployed to Kubernetes with Ingress routing HTTPS requests from outside the cluster to the service.
In this case Swagger UI available at https://example.com/api/swagger-ui.html
has wrong "Generated server url" - http://example.com/api
. While it should be https://example.com/api
.
While Swagger UI is accessed by HTTPS, the generated server URL still uses HTTP.