{"record":{"id":"416a9c047b375cb9","repo":"CanineHQ/canine","slug":"private-ip-address-detected-for-cluster-type-co","errorCode":null,"errorMessage":"Private IP address detected for cluster type: #{connection.cluster.cluster_type}","messagePattern":"Private IP address detected for cluster type: #(.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"app/services/dns/utils.rb","lineNumber":31,"sourceCode":"      hostname = URI.parse(server_name).hostname\n\n      if ip_address?(hostname)\n        hostname\n      else\n        Resolv.getaddress(hostname)\n      end\n    end\n\n    def infer_expected_hostname(ingress, connection)\n      ingress.connect(connection)\n      hostname = ingress.hostname\n\n      # Only try to infer a public IP address if the cluster is a single node cluster (k3s, local_k3s)\n      if !connection.cluster.k8s? && hostname[:type] == :ip_address && private_ip?(hostname[:value])\n        public_ip = infer_public_ip(connection)\n        { type: :ip_address, value: public_ip }\n      elsif hostname[:type] == :ip_address && private_ip?(hostname[:value])\n        raise \"Private IP address detected for cluster type: #{connection.cluster.cluster_type}\"\n      else\n        hostname\n      end\n    end\n  end\nend\n","sourceCodeStart":13,"sourceCodeEnd":38,"githubUrl":"https://github.com/CanineHQ/canine/blob/ba4ee3968d8513ee27d8583fbd3e854a8dd053f3/app/services/dns/utils.rb#L13-L38","documentation":"Error \"Private IP address detected for cluster type: #{connection.cluster.cluster_type}\" thrown in CanineHQ/canine.","triggerScenarios":"Thrown at app/services/dns/utils.rb:31 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"ba4ee3968d8513ee27d8583fbd3e854a8dd053f3","analyzedAt":"2026-08-23T17:49:27.834Z","schemaVersion":2},"datasetVersion":"2026-08-23T21:17:23.414Z"}