-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: workaround missing string sanitization in .NET Core
this version is finally working fixes issues with lack of HTTP header sanitization in .NET Core, see: - NixOS/nixpkgs#315574 - microsoftgraph/msgraph-cli#477 Signed-off-by: Krzysztof Nazarewski <[email protected]>
- Loading branch information
Showing
3 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* Last reviewied: 2024-05-29 | ||
fixes issues with lack of HTTP header sanitization in .NET Core, see: | ||
- https://github.com/NixOS/nixpkgs/issues/315574 | ||
- https://github.com/microsoftgraph/msgraph-cli/issues/477 | ||
*/ | ||
{ lib, options, ... }: { | ||
/* | ||
using just `readOnly` because it can contain neither of: default, example, description, apply, type | ||
see https://github.com/NixOS/nixpkgs/blob/aae38d0d557d2f0e65b2ea8e1b92219f2c0ea8f9/lib/modules.nix#L752-L756 | ||
*/ | ||
options.system.nixos.codeName = lib.mkOption { readOnly = false; }; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
nazarewk
Author
Member
|
||
config.system.nixos.codeName = | ||
let | ||
codeName = options.system.nixos.codeName.default; | ||
renames."Vicuña" = "Vicuna"; | ||
in | ||
renames."${codeName}" or (throw "Unknown `codeName`: ${codeName}, please add it to `renames` in `ascii-workaround.nix`"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Nice, didn't know you can override options like that. Do you know the evaluation order here? Are "my modules options" evaluated last? (Or do they have priorities too?)