-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
s3: provide a way to use key id and key secret directly #4175
Comments
@Suor Have you considered changing the env for that call? Also, I suppose your request is only about internal api, right? |
Changing env for the process will leak it to other threads and also may leak to subsequent calls. Starting a new process is a solution, but a heavy one. I am using |
Ideally I want key_id/key_secret pair be added to config. Any reason you want to avoid it? |
Same reason as with any plain-text passwords 🙂 We could make it api-only, but feels like a hack, still. I guess the only current nice way to do it is to just use a tempfile, dump keys into and and then use it as credentailpath in the config. |
That would work too. However, if we want api to be usable we should stop doing things like that) Non-saveable config option is fine with me too. Hack or not. |
And BTW, we already have it for oss, gdrive and ssh. Maybe it's ok to save password/key to local config. People are storing this anyway in some |
@Suor agreed. Let's do that. |
For now the only way to pass credentials to S3 is using credentials file and the env var. This is very inconvenient when trying to use dvc as a library. For now I hacked it like:
Would be nice to have it inside
dvc.remote.S3RemoteTree
.The text was updated successfully, but these errors were encountered: