• Seth Hoenig's avatar
    consul/connect: automatically set consul tls sni name for connect native tasks · fb830a53
    Seth Hoenig authored
    This PR makes it so that Nomad will automatically set the CONSUL_TLS_SERVER_NAME
    environment variable for Connect native tasks running in bridge networking mode
    where Consul has TLS enabled. Because of the use of a unix domain socket for
    communicating with Consul when in bridge networking mode, the server name is
    a file name instead of something compatible with the mTLS certificate Consul
    will authenticate against. "localhost" is by default a compatible name, so Nomad
    will set the environment variable to that.
    
    Fixes #10804
    fb830a53