Alpine client is not supporting encoding in the repository URL string
Hi Team,
We are using Jfrog private repositories for pull package.
To fetch packages we need to pass username:token in url for authentication.
This works fine in general scenarios.
====================================
vim /etc/apk/repositories
https://useranme:mytoken@orgnization.jfrog.io/artifactory/alpine-org/v3.13/main
We have one scenarios where , users are using "emails" as the user name.
====================================
vim /etc/apk/repositories
https://useranme@org.com:mytoken@orgnization.jfrog.io/artifactory/alpine-org/v3.13/main
This give error.
fetch https://useranme@org.com:mytoken@orgnization.jfrog.io/artifactory/alpine-org/v3.13/main/x86_64/APKINDEX.tar.gz ERROR: https://useranme@org.com:mytoken@orgnization.jfrog.io/artifactory/alpine-org/v3.13/main: invalid URL (check your repositories file) WARNING: Ignoring https://useranme@org.com:mytoken@orgnization.jfrog.io/artifactory/alpine-org/v3.13/main: No such file or directory
We also tried with encoding username.
https://useranme%40org.com:mytoken@orgnization.jfrog.io/artifactory/alpine-org/v3.13/main
This gives error:
fetch https://useranme%40org.com:mytoken@orgnization.jfrog.io/artifactory/alpine-org/v3.13/main/x86_64/APKINDEX.tar.gz ERROR: https://useranme%40org.com:mytoken@orgnization.jfrog.io/artifactory/alpine-org/v3.13/main/main: Permission denied WARNING: Ignoring https://useranme%40org.com:mytoken@orgnization.jfrog.io/artifactory/alpine-org/v3.13/main: No such file or directory
We contacted jforg on this and concluded that "Alpine client is not supporting encoding in the repository URL string"
Could you please help on this and advise correct approach on configuring authentication on alpine.
Just FYI , Debain offers to read authentication from conf file https://manpages.debian.org/testing/apt/apt_auth.conf.5.en.html
Do we have anything like this on for alpine ?
Thank you
Nana