edgexfoundry / go-mod-bootstrap

go-mod-bootstrap
Apache License 2.0
15 stars 55 forks source link

recent go-mod-bootstrap change breaks zero trust clients #734

Closed dovholuknf closed 1 month ago

dovholuknf commented 2 months ago

🐞 Bug Report

Affected Services [REQUIRED]

device-virtual

Is this a regression?

yes

Description and Minimal Reproduction [REQUIRED]

@cloudxxx8 / @jackchenjc, please see https://github.com/edgexfoundry/go-mod-bootstrap/pull/723/files#diff-70e82e7432e3056b7466bb3e4fe16874c12cfbe7bbb71a15ad9d1997217e94c9R127. As commented there, this has an unintentional side-effect of breaking device-virtual. Strictly speaking this also should not be necessary as the zitified transport is configured with fallback, meaning if it can't dial a zitified endpoint, it should fallback to using an underlay dialer.

I'm sure this was a problem somewhere/somehow, but can I work with you to figure out why?? This causes device-virtual to fail with the error shown below.

πŸ”₯ Exception or Error

level=ERROR ts=2024-07-18T13:08:10.501477474Z app=device-virtual source=init.go:62 msg="Failed to init cache: failed to send a http request -> Get \"http://core-metadata.edgex.ziti:80/api/v3/device/service/name/device-virtual?limit=-1&offset=0\": dial tcp: lookup core-metadata.edgex.ziti on 10.255.255.254:53: no such host"

🌍 Your Environment

enable zero trust mode. run device-virtual

latest dev - go-mod-bootstrap v3@v3.2.0-dev.45