-
Notifications
You must be signed in to change notification settings - Fork 5
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
remove AWS credential provider settings on bmx write
#461
Conversation
return File.Exists( path ) ? parser.ReadFile( path ) : null; | ||
return File.Exists( path ) ? parser.ReadFile( path, Utf8 ) : null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unrelated - the default encoding is ASCII - what if I want to write Chinese comments in my AWS config file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, I figured C# is for the most part UTF8 by default in places? Or is it just the FileSystem API that is like this?
> System.Text.Encoding.Default
UTF8Encoding.UTF8EncodingSealed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd be disastrous if C#/.NET runtime did this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I suppose that makes sense for them. INI doesn't have a spec around it and it could be used by old timey things that except files to be ASCII?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it makes sense at all actually. UTF-8 is ASCII compatible.
Why
An AWS profile can only have one credential provider configured.
Not removing other credential providers' settings when
bmx write
runs could lead to a broken or at least confusing AWS profile.Ticket
https://desire2learn.atlassian.net/browse/VUL-402