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

k3s: 1.18.12+k3s1 -> 1.18.12+k3s2 #106508

Merged
merged 2 commits into from Dec 10, 2020

Conversation

euank
Copy link
Member

@euank euank commented Dec 10, 2020

Motivation for this change

Bumped to fix CVE-2020-15257. See the upstream release notes for that:
https://github.com/k3s-io/k3s/releases/tag/v1.18.12%2Bk3s2

This isn't a direct backport of 5ca87dc, since master has since moved
on on to 1.19.x, but it's related in spirit.

I cherry-picked over 6eb941d as well since it applies cleanly, and I believe was necessary for tests on this branch to pass too.

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) (nix-build nixos/tests/k3s.nix passes).
  • 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.

Bumped to fix CVE-2020-15257. See the upstream release notes for that:
https://github.com/k3s-io/k3s/releases/tag/v1.18.12%2Bk3s2

This isn't a direct backport of 5ca87dc, since master has since moved
on on to 1.19.x, but it's related in spirit.
Fixes NixOS#101734

Prior to this change, the k3s binary included a tarball containing
binaries like 'kubectl', but didn't keep a runtime reference to those
runtime dependencies in plaintext (since they were gzipped inside the
single combined k3s binary).

In order for nix's automatic runtime dependency detection to work, we
need to have a reference to them somewhere in $out.
propagatedBuildInputs seems to do the right thing for us here.

(cherry picked from commit 6eb941d)

Reason: this is necessary both for tests to pass for the preceeding
commit, and for the correctness of the package.
@flokli
Copy link
Contributor

flokli commented Dec 10, 2020

Thanks a lot! Successfully built the k3s tests with this. Merging 👍

@flokli flokli merged commit 3446523 into NixOS:release-20.09 Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants