zsync2 icon indicating copy to clipboard operation
zsync2 copied to clipboard

.netrc support

Open lalten opened this issue 1 year ago • 3 comments

zsync2 does not offer .netrc support.

As a workaround, you can pass credentials directly in the URL like

zsync2 \
  --url=https://$USER:[email protected]/artifact.appimage \
  https://$USER:[email protected]/artifact.appimage.zsync

Any plans to support this?

lalten avatar Apr 08 '24 15:04 lalten

What would you like to achieve? Can you describe your use case for this? Looking at the link, I see that .netrc is somehow related to automatic login (to FTP?) on GNU systems. It is not clear to me how this would relate to zsync2.

probonopd avatar Apr 09 '24 06:04 probonopd

.netrc is a standard way to provide credentials and not only used for FTP. wget uses it automatically, and curl uses it when you supply -n/--netrc. My https://example.com/artifact.appimage will return 404 without the right credentials passed in the authorization header.

lalten avatar Apr 09 '24 08:04 lalten

Thanks for the clarification. I don't think this is a planned feature but if we'd get a pull request we'd definitely consider it. My only worry is that it might introduce additional complexity and/or security attack vectors, and hence increase maintenance burden.

probonopd avatar Apr 14 '24 16:04 probonopd