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

nixos/murmur: add murmur group, don't run as nogroup #102015

Merged
merged 1 commit into from Oct 29, 2020

Conversation

@pstn
Copy link
Contributor

@pstn pstn commented Oct 29, 2020

fixes #101980
ping #55370

Needs to be merged into 20.09 channel since it pretty much breaks murmur there for a lot of deployments.

Motivation for this change

It was broken, yo!

Maintainers

@petabyteboy
@Infinisil

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Copy link
Member

@lheckemann lheckemann left a comment

LGTM, though I'm not sure we actually need a static gid for murmur?

@pstn
Copy link
Contributor Author

@pstn pstn commented Oct 29, 2020

The gid was "reserved" anyway because it's equal to the uid, so why not use it? Having it static could be useful in some migration scenarios and for example when generating certs externally and bind mounting them into a container or supplying them via nfs.

For example I generate letsencrypt certs in a container that only runs my authority dns. This enables me to generate certs for other containers with the right uid simply by doing

[...]
users.groups.murmur.gid = config.ids.gids.murmur;
security.acme = {
[...]
        certs."mumble.example.com" = {
          dnsProvider = "exec";
          credentialsFile = pkgs.writeText "env" "EXEC_PATH=${dnstool}/bin/update-dns.sh";
          group = "murmur";
        };
[...]
@lheckemann lheckemann merged commit a38590d into NixOS:master Oct 29, 2020
16 checks passed
16 checks passed
@github-actions
tests
Details
@github-actions
action
Details
@ofborg
Evaluation Performance Report Evaluator Performance Report
Details
@github-actions
Wait for ofborg
Details
@ofborg
grahamcofborg-eval ^.^!
Details
@ofborg
grahamcofborg-eval-check-meta config.nix: checkMeta = true
Details
@ofborg
grahamcofborg-eval-darwin nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="fc856b8"; rev="fc856b89e5b4c8a90d643f71029a125c72a244a2"; } ./pkgs/t
Details
@ofborg
grahamcofborg-eval-lib-tests nix-build --arg pkgs import ./. {} ./lib/tests/release.nix
Details
@ofborg
grahamcofborg-eval-nixos nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="fc856b8"; rev="fc856b89e5b4c8a90d643f71029a125c72a244a2"; } ./nixos/
Details
@ofborg
grahamcofborg-eval-nixos-manual nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="fc856b8"; rev="fc856b89e5b4c8a90d643f71029a125c72a244a2"; } ./nixos/
Details
@ofborg
grahamcofborg-eval-nixos-options nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="fc856b8"; rev="fc856b89e5b4c8a90d643f71029a125c72a244a2"; } ./nixos/
Details
@ofborg
grahamcofborg-eval-nixpkgs-manual nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="fc856b8"; rev="fc856b89e5b4c8a90d643f71029a125c72a244a2"; } ./pkgs/t
Details
@ofborg
grahamcofborg-eval-nixpkgs-tarball nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="fc856b8"; rev="fc856b89e5b4c8a90d643f71029a125c72a244a2"; } ./pkgs/t
Details
@ofborg
grahamcofborg-eval-nixpkgs-unstable-jobset nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="fc856b8"; rev="fc856b89e5b4c8a90d643f71029a125c72a244a2"; } ./pkgs/t
Details
@ofborg
grahamcofborg-eval-package-list nix-env -qa --json --file .
Details
@ofborg
grahamcofborg-eval-package-list-no-aliases nix-env -qa --json --file . --arg config { allowAliases = false; }
Details
@lheckemann
Copy link
Member

@lheckemann lheckemann commented Oct 29, 2020

20.09: da973f9

@pstn pstn deleted the pstn:murmur-group branch Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

2 participants