-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
internal/ini - failure to parse some credentials #2239
Comments
Awesome, thank you for the quick response! |
Hi. Just a heads up that this is still impacting us. We use https://github.com/turnerlabs/samlkeygen which populates our credentials file with temporary keys. For example:
|
@jritsema thanks for letting us know about this issue. we'll add this to a test case and work to fix the issue from there. |
Hello @jritsema, I believe this has already been fixed, #2247, but hasn't been released yet. Please try using |
How to fix this issue ? I still hit it in:
|
Because a
/
character is valid in the AWS Secret Access Key value encoding, sometimes the returned value can have two leading forward slashes. This causes the value to be parsed by the newinternal/ini
parser (introduced by #2210) to be interpreted as a comma, and return anINIParseError
.Version of AWS SDK for Go?
v1.15.65
, issue was introduced inv1.15.59
.Version of Go (
go version
)?What issue did you see?
When loading shared credentials (everything default)
Interpreting the printed values, it is clear that the parser was in the midst of parsing an assignment with the LHS being
aws_secret_access_key
, then encountered a "comment" token when looking for the RHS of the expression (note that the raw value of the token begins with bytes[47 47]
, aka"//"
.Steps to reproduce
Set a profile in
$HOME/.aws/credentials
with anaws_secret_access_key
value that begins with//
, i.e.:Since the new
ini
package is internal, I can't import it in a test here directly - however, this test mimics the use case that initially triggered the bug.The text was updated successfully, but these errors were encountered: