Credentials for importing from repos with secured webdav remotes #7869
-
I am trying to use However, when I try to import into another repository, it needs the WebDAV credentials. Is there any way to make them available short of committing them to the source repository? I have tried creating a remote in the destination repository with the same name, but that did not work. For S3 remotes, there is no problem because the credentials are stored in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can keep them in your global config. dvc remote modify --global remote user $SECRET_USER
dvc remote modify --global remote password $SECRET_KEY WebdavFileSystem also supports eg: # ~/.netrc should only be accessible to the current user
(umask 077; echo "machine $SECRET_HOSTNAME login $SECRET_USER password $SECRET_KEY" > ~/.netrc) You may also be interested in https://github.com/iterative/dvc/issues/6416. |
Beta Was this translation helpful? Give feedback.
You can keep them in your global config.
WebdavFileSystem also supports
netrc
.eg:
You may also be interested in https://github.com/iterative/dvc/issues/6416.