Skip to content
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

Daemon: warn when an untrusted user cannot override a setting #2931

Merged
merged 1 commit into from Jun 15, 2019

Conversation

picnoir
Copy link
Member

@picnoir picnoir commented Jun 7, 2019

In a daemon-based nix setup, some options cannot be overridden by a
client unless the client's user is considered as trusted.

Currently, if an untrusted user tries to override one of those
options, we are silently ignoring it.

This can be pretty confusing in certain situations.

e.g. a user thinks he disabled the sandbox when in reality he did not.

We are now sending a warning message letting know the user some options
have been ignored.

Related to #1761.

@picnoir
Copy link
Member Author

picnoir commented Jun 7, 2019

As a side note, I have personally been hit by this and witnessed several people being equally confused when confronted to the situation.

@nixos-discourse
Copy link

This pull request has been mentioned on Nix community. There might be relevant details there:

https://discourse.nixos.org/t/cant-run-non-sandboxed-builds-on-nixos-18-09/1110/9

@picnoir picnoir force-pushed the nin-add-warning-setting-untrusted branch from 27ef8fd to 92832b0 Compare June 10, 2019 11:51
In a daemon-based Nix setup, some options cannot be overridden by a
client unless the client's user is considered trusted.

Currently, if an untrusted user tries to override one of those
options, we are silently ignoring it.

This can be pretty confusing in certain situations.

e.g. a user thinks he disabled the sandbox when in reality he did not.

We are now sending a warning message letting know the user some options
have been ignored.

Related to NixOS#1761.
@grahamc grahamc force-pushed the nin-add-warning-setting-untrusted branch from 92832b0 to 9e0f5f8 Compare June 15, 2019 08:00
@grahamc
Copy link
Member

grahamc commented Jun 15, 2019

This is a very trivial diff, but a very cool UX improvement -- merging!

@grahamc grahamc merged commit 7ce60a8 into NixOS:master Jun 15, 2019
@picnoir picnoir deleted the nin-add-warning-setting-untrusted branch March 20, 2024 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants