arrowhead-f / arrowhead-kalix

The Arrowhead Kalix Libraries
https://arkalix.se
Eclipse Public License 2.0
2 stars 5 forks source link

Send the correct address to the service registry if local address is the wildcard address #22

Open emanuelpalm opened 3 years ago

emanuelpalm commented 3 years ago

Currently, if not setting any local IP address when creating a system, the HttpJsonCloudPlugin is going to register the system with the IP address of 0.0.0.0 for each of its services, which leads to the services not being accessible.

In Eclipse Arrowhead version 4.4, registering all-zeroes/wildcard addresses are likely going to have a different result. See https://github.com/eclipse-arrowhead/core-java-spring/issues/265.

@InRiPa Do you have any ideas about what we should do until then? Should we automatically extract one Subject Alternative Name from the system certificate and try to register that? Require that a local interface address is provided when creating a new ArSystem or throw an exception?

emanuelpalm commented 3 years ago

Also see https://github.com/arrowhead-f/arrowhead-kalix-examples/issues/6.