You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to the most recent version of aws-sdk-core, I started receiving the following warning: Passing a single string to Aws::ProcessCredentials.new is insecure, please use use an array of system arguments instead
This appears to happen because I have the "credential_process" option set in my aws config file like so:
require 'aws-sdk-core'
require 'aws-sdk-s3'
Aws.config.update(profile: 'my-account-creds')
Aws::S3::Client.new
Passing a single string to Aws::ProcessCredentials.new is insecure, please use use an array of system arguments instead
=> #<Aws::S3::Client>
It seems like this warning was adding recently in #3048
Is there a proper way to set credential_process in the aws config file to avoid this warning? I couldn't find any example of it taking an array.
Expected Behavior
Not receive a warning.
Current Behavior
A warning appears: Passing a single string to Aws::ProcessCredentials.new is insecure, please use use an array of system arguments instead
Reproduction Steps
See the bug description.
Possible Solution
No response
Additional Information/Context
No response
Gem name ('aws-sdk', 'aws-sdk-resources' or service gems like 'aws-sdk-s3') and its version
aws-sdk-core 3.201.0
Environment details (Version of Ruby, OS environment)
Ruby 3.3.1 OSX
The text was updated successfully, but these errors were encountered:
This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
Describe the bug
After upgrading to the most recent version of
aws-sdk-core
, I started receiving the following warning:Passing a single string to Aws::ProcessCredentials.new is insecure, please use use an array of system arguments instead
This appears to happen because I have the "credential_process" option set in my aws config file like so:
Then in ruby I try to use the profile:
It seems like this warning was adding recently in #3048
Is there a proper way to set
credential_process
in the aws config file to avoid this warning? I couldn't find any example of it taking an array.Expected Behavior
Not receive a warning.
Current Behavior
A warning appears:
Passing a single string to Aws::ProcessCredentials.new is insecure, please use use an array of system arguments instead
Reproduction Steps
See the bug description.
Possible Solution
No response
Additional Information/Context
No response
Gem name ('aws-sdk', 'aws-sdk-resources' or service gems like 'aws-sdk-s3') and its version
aws-sdk-core 3.201.0
Environment details (Version of Ruby, OS environment)
Ruby 3.3.1 OSX
The text was updated successfully, but these errors were encountered: