Skip to content

nixos/networking-interfaces: change preferTempAddress to allow disabling temp addresses #78843

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

Merged
merged 3 commits into from
Feb 1, 2020

Conversation

rnhmjoj
Copy link
Contributor

@rnhmjoj rnhmjoj commented Jan 30, 2020

Motivation for this change

Fix issue #75311

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested nixosTests.networking.scripted.privacy nixosTests.networking.networkd.privacy
  • Built manual
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Sorry, something went wrong.

@rnhmjoj rnhmjoj requested review from volth and lheckemann January 30, 2020 11:07
@ofborg ofborg bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: changelog 8.has: documentation This PR adds or changes documentation 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 labels Jan 30, 2020
@rnhmjoj
Copy link
Contributor Author

rnhmjoj commented Jan 30, 2020

@GrahamcOfBorg test networking.scripted.privacy networking.networkd.privacy

Copy link
Member

@lheckemann lheckemann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks well documented, well thought out and well implemented overall (just one minor nitpick, see inline). I haven't tested this, but if the tests pass I'm happy to merge this with my suggestion applied or as is. Thanks!

// listToAttrs (forEach interfaces
(i: let
opt = i.tempAddress;
val = if opt == "disabled" then 0 else
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{disabled = 0; enabled = 1; default = 2;}.${opt} might be clearer?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, nice! I didn't think about this.

@lheckemann
Copy link
Member

@GrahamcOfBorg test networking.scripted.privacy networking.networkd.privacy

@rnhmjoj
Copy link
Contributor Author

rnhmjoj commented Feb 1, 2020

Ok, I applied your suggestion. The tests passes on my end. Let's test again with:

@GrahamcOfBorg test networking.scripted.privacy networking.networkd.privacy

@lheckemann lheckemann merged commit 3af5a40 into NixOS:master Feb 1, 2020
@rnhmjoj
Copy link
Contributor Author

rnhmjoj commented Feb 1, 2020

Thank you!

anna328p pushed a commit to anna328p/nixpkgs that referenced this pull request Feb 2, 2020
nixos/networking-interfaces: change preferTempAddress to allow disabling temp addresses
dtzWill pushed a commit to dtzWill/nixpkgs that referenced this pull request Feb 6, 2020
nixos/networking-interfaces: change preferTempAddress to allow disabling temp addresses

(cherry picked from commit 3af5a40)
@rnhmjoj rnhmjoj deleted the ipv6-privacy branch April 7, 2020 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: changelog 8.has: documentation This PR adds or changes documentation 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants