-
Notifications
You must be signed in to change notification settings - Fork 70
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
Possibly missing locale handling #160
Comments
@mikemoate thank you for raising this question, from my POV we can add the accept_env and send_env attributes, however I'm not sure how the defaults should look like
It looks like @atomic111 @chris-rock opinions? |
I agree with your suggestion, and am happy to work up a PR for that, but will wait for other experts to give their opinions. |
@mikemoate I think you can just start to work on the PR:) |
@artem-sidorenko OK, I wasn't sure if you intended for me to wait for the other's you had mentioned in your comment to reply? I'll try and get something together in the next few days. Any thoughts on testing this? |
I asked them if they have any opinion, if they would have anything to say here: we would already see a response (at least this is my experience) :)
I would just do unit tests, something like in GH-155 |
We could also set the values on ubuntu only, therefore we would not set the values if the attribute is nil |
@chris-rock there is a similar issue on RHEL/centos too. I think we should stick here with a default distro configuration, which is to accept/send the locale settings, otherwise it might cause unexpected problems. But we should allow to disable it P.S. was my comment a wakeup call?:D |
I was not sleeping @artem-sidorenko :-) All good, sounds reasonable. |
Use attributes to set the environment variables that ssh client should send and that ssh daemon should accept. The primary use case here is for locale, and the default attribute value reflects this (as discussed in dev-sec#160). Chefspec tests cover the default, custom/overriden and empty cases for the attributes.
I will freely admit my knowledge of locale in Linux is limited, hopefully others are more knowledgeable :-S
Whilst investigating some locale issues on our Ubuntu servers (14.04) I noticed that the ssh_config and sshd_config created by this cookbook lack the settings for sending and accepting locale, which differs from the default ubuntu/debian behaviour.
Specifically, sshd_config on debian would have:
AcceptEnv LANG LC_*
and ssh_config on debian would have:
SendEnv LANG LC_*
Can we add these back in, should we? (it won't fix our problem, but seems like an oversight)
The text was updated successfully, but these errors were encountered: