-
Notifications
You must be signed in to change notification settings - Fork 264
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
Validate access key and secret key before writing into the .aws/credentials file #219
Comments
Hi @varunchandak , Thanks again for reporting. That's a strange one ! AFAIK, the only place where The only explanation I can find is in the latter: perhaps a profile had no credentials. Thus For example:
Do you think this might be the problem ? |
I think so.. sometimes I would get this prompt in the middle of a batch script execution despite have the credentials configured properly. I believe the prompt occurred and the values from the script output got entered in it. Why do you think that the entries were done automatically ? Shouldn't there be some kind of validation for access key or secret key ? |
Yes, for now there is no validation for the access key and secret key, we should add that to prevent such a bug. |
I think Access Key is 20 characters and secret key is 40 characters. I have 6 profiles and the count in each of them is same. |
I don't know how or why, but I have started getting these errors while running
awless
:I then checked the
/Users/varun/.aws/credentials
file, and found this:The name
-i-00e692f182eef653f-disk-alarm
is a cloudwatch alarm name, which I was trying to delete like this (which used to work flawlessly before:I am still wondering how that
profile
got into the credentials file. Any insight would be really helpful.The text was updated successfully, but these errors were encountered: