dragonflyoss / nydus

Nydus - the Dragonfly image service, providing fast, secure and easy access to container images.
https://nydus.dev/
Apache License 2.0
1.23k stars 205 forks source link

nydusd miss token server query strings in registry backend #1611

Open imeoer opened 3 months ago

imeoer commented 3 months ago

The harbor registry allows user to customize the token server address by TOKEN_SERVICE_URL setting, when user adds some custom query strings to the URL, nydusd does not carry them when requesting token server, which will cause nydusd request token server exception, such as getting 401 status.

We need to investigate where the user-customized query strings is missing in registry backend, possible code location:

image