-
Bug
-
Resolution: Done
-
Medium
-
London Release
In ServiceMesh enabled environments pods need to only provide HTTP interfaces.
The restconf-collector cannot be set to only support HTTP.
According to the implementation (https://git.onap.org/dcaegen2/collectors/restconf/tree/src/main/java/org/onap/dcae/ApplicationSettings.java#n120) setting the collector.rcc.service.secure.port=0 should disable HTTPS:
public int httpsPort() { return properties.getInt("collector.rcc.service.secure.port", 8687); } public boolean httpsEnabled() { return httpsPort() > 0; }
But even doing it the following problem is shown in the logs:
2023-01-25 23:00:37.038 INFO 26 --- [ main] o.onap.dcae.common.RestapiCallNodeUtil : Parameter templateFileName: [./etc/access-token.json]
2023-01-25 23:00:37.038 INFO 26 --- [ main] o.onap.dcae.common.RestapiCallNodeUtil : Parameter restapiUrl: [https://172.30.0.55:26335/rest/plat/smapp/v1/oauth/token]
2023-01-25 23:00:37.038 INFO 26 --- [ main] o.onap.dcae.common.RestapiCallNodeUtil : Parameter contentType: [application/json]
Reason can be found in the code (https://git.onap.org/dcaegen2/collectors/restconf/tree/src/main/java/org/onap/dcae/common/RestapiCallNodeUtil.java)
public static String getUriMethod(Boolean authEnabled) { /*@TODO: As per configuration */ // String uri; // if (authEnabled) { // uri = "https://"; // } else { // uri = "http://"; // } return "https://"; }
- is duplicated by
-
DCAEGEN2-3095 RESTConf - Make certificate dependencies configurable
- Closed
- relates to
-
DCAEGEN2-3095 RESTConf - Make certificate dependencies configurable
- Closed