Skip to content

URLs are not displayed on UI when using FQDN instead of IP Address #22568

@lplinux

Description

@lplinux

Overview of the Issue

We've deployed a new version of consul server (upgraded from 1.21.2 to 1.21.3) and we've lost the ability to see on the UI the list of URLs for certain services that instead of IP Addresses they are FQDN from AWS services.
This might be related to the IP Validation introduced under #22468


Reproduction Steps

  1. On an already created cluster, try to register a service with address equals to an FQDN
consul services register \
-http-addr=https://consul-server.kube-system:8501/ \
-address=random-instance-sadgadsfgad.eu-north-2.es.amazonaws.com \
-port=443 \
-id=random-instance \
-name=random-instance \
-ca-file=/consul/tls/ca/tls.crt \
-ca-path=/consul/tls/ca/
  1. Check the service URL on the UI

Consul info for both Client and Server

Client info
agent:
        check_monitors = 0
        check_ttls = 0
        checks = 33
        services = 45
build:
        prerelease = 
        revision = 24bf2b62
        version = 1.21.3
        version_metadata = 
consul:
        acl = disabled
        bootstrap = false
        known_datacenters = 1
        leader = false
        leader_addr = 10.84.161.139:8300
        server = true
Client agent HCL config
Server info
agent:
        check_monitors = 0
        check_ttls = 0
        checks = 33
        services = 45
build:
        prerelease = 
        revision = 24bf2b62
        version = 1.21.3
        version_metadata = 
consul:
        acl = disabled
        bootstrap = false
        known_datacenters = 1
        leader = false
        leader_addr = ---:8300
        server = true
raft:
        applied_index = 8392175
        commit_index = 8392175
        fsm_pending = 0
        last_contact = 23.729322ms
        last_log_index = 8392175
        last_log_term = 59
        last_snapshot_index = 8385386
        last_snapshot_term = 56
        latest_configuration = [{Suffrage:Voter ID:---Address:---:8300} {Suffrage:Voter ID:---Address:---:8300} {Suffrage:Voter ID:--- Address:---:8300}]
        latest_configuration_index = 0
        num_peers = 2
        protocol_version = 3
        protocol_version_max = 3
        protocol_version_min = 0
        snapshot_version_max = 1
        snapshot_version_min = 0
        state = Follower
        term = 59
runtime:
        arch = amd64
        cpu_count = 2
        goroutines = 376
        max_procs = 2
        os = linux
        version = go1.23.10
serf_lan:
        coordinate_resets = 0
        encrypted = false
        event_queue = 0
        event_time = 49
        failed = 0
        health_score = 0
        intent_queue = 0
        left = 0
        member_time = 344
        members = 3
        query_queue = 0
        query_time = 1
serf_wan:
        coordinate_resets = 0
        encrypted = false
        event_queue = 0
        event_time = 1
        failed = 0
        health_score = 0
        intent_queue = 0
        left = 0
        member_time = 274
        members = 3
        query_queue = 0
        query_time = 1

Operating system and Environment details

Log Fragments

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions