kunaldevxxx commented on code in PR #4218:
URL: https://github.com/apache/iggy/pull/4218#discussion_r4045845512


##########
core/configs/src/server_config/validators.rs:
##########
@@ -407,29 +410,115 @@ impl ServerConfig {
 
     /// The listener the client-facing address is derived from must not bind a
     /// wildcard unless that address is declared outright.
+    ///
+    /// When running inside a container, a loopback listener means the server
+    /// is unreachable from outside the container, which is warned.
     fn validate_client_facing_address(&self) -> Result<(), ConfigurationError> 
{
-        if self.cluster.enabled || self.node.advertised_address.is_some() {
-            return Ok(());
+        self.validate_client_facing_address_in_env(is_container())?;
+        Ok(())
+    }
+
+    fn validate_client_facing_address_in_env(
+        &self,
+        is_container: bool,
+    ) -> Result<Option<String>, ConfigurationError> {
+        if self.cluster.enabled {
+            return Ok(None);
         }
         // No client-facing listener runs, so no client dials this node and
         // there is no address to demand.
         let Some(listener) = self.derived_address_listener() else {

Review Comment:
   Updated to iterate through all enabled listeners in 
`self.client_listeners()`. When `IGGY_TCP_ADDRESS=0.0.0.0:8090` is set with an 
advertised address, the remaining loopback listeners (`websocket`, `quic`, 
`http`) continue to warn.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to