Skip to content

Conversation

PatrickDaG
Copy link
Contributor

@PatrickDaG PatrickDaG commented Nov 4, 2024

As per the upstream configuration the bindaddress should be optional and default to 127.0.0.1:8443. This also is reflected in the nixos modules where the server Port was supposed to default to 8443. This could not happen as the if else depended on the value to begin with.

This fixes that and allows the value to default to being unset without throwing an error.

Should no break anything as it strictly allows an option to be unset and default, without changing anything for people who set the option.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Nov 4, 2024
@PatrickDaG PatrickDaG requested a review from oddlama November 4, 2024 18:41
@PatrickDaG PatrickDaG force-pushed the fix-kanidm branch 2 times, most recently from c068bf5 to 8fa3b1f Compare November 4, 2024 22:29
@oddlama
Copy link
Contributor

oddlama commented Nov 4, 2024

Diff LGTM

@oddlama oddlama requested a review from adamcstephens November 4, 2024 22:34
@PatrickDaG PatrickDaG mentioned this pull request Nov 4, 2024
13 tasks
@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one person. label Nov 5, 2024
@wegank wegank removed the 12.approvals: 1 This PR was reviewed and approved by one person. label Nov 5, 2024
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Nov 5, 2024
@adamcstephens
Copy link
Contributor

@ofborg test kanidm

@adamcstephens adamcstephens merged commit 6a9a64b into NixOS:master Nov 6, 2024
29 of 30 checks passed
@PatrickDaG PatrickDaG deleted the fix-kanidm branch November 11, 2024 14:02
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: 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 This PR causes between 1 and 10 packages to rebuild on Linux.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants