What is the problem you are having with rclone?
I'm trying to connect to AWS S3 with authentication via credential_process. I can't get rclone to pick up the option and get the credentials that way, although this method was mentioned as a workaround for SSO support in t/rclone-and-aws-sso-credentials/18477. For a minimal repro, I created a credential file as follows:
$ cat ~/.aws/credentials
[default]
credential_process = touch /tmp/credentials_requested
When I run aws s3 ls s3://test
for example, the file I specified is created (i.e., the process is being executed). With rclone, I get (after some delay) an error message that no valid credential provides can be found, and the file is not created, i.e. the credential process has not been executed.
What is your rclone version (output from rclone version
)
rclone v1.56.2
- os/version: darwin 11.6 (64 bit)
- os/kernel: 20.6.0 (x86_64)
- os/type: darwin
- os/arch: amd64
- go/version: go1.17.1
- go/linking: dynamic
- go/tags: none
Which OS you are using and how many bits (eg Windows 7, 64 bit)
macOS 11.6
Which cloud storage system are you using? (eg Google Drive)
AWS S3
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
Any rclone command connecting to the remote, e.g. rclone ls s3:
The rclone config contents with secrets removed.
[s3]
type = s3
provider = AWS
env_auth = true
region = us-east-1
I haven't set any AWS_ or RCLONE_ environment variables, i.e. env_auth=true
is just set to pick up the credentials file.
A log from the command with the -vv
flag
$ rclone -vv ls s3:
2021/10/20 23:53:40 DEBUG : rclone: Version "v1.56.2" starting with parameters ["rclone" "-vv" "ls" "s3:"]
2021/10/20 23:53:40 DEBUG : Creating backend with remote "s3:"
2021/10/20 23:53:40 DEBUG : Using config file from "/Users/$USER/.config/rclone/rclone.conf"
2021/10/20 23:53:58 DEBUG : 5 go routines active
2021/10/20 23:53:58 Failed to ls: NoCredentialProviders: no valid providers in chain. Deprecated.
For verbose messaging see aws.Config.CredentialsChainVerboseErrors