diff options
| author | rnhmjoj <rnhmjoj@inventati.org> | 2021-06-09 01:41:26 +0200 |
|---|---|---|
| committer | rnhmjoj <rnhmjoj@inventati.org> | 2021-09-12 21:43:03 +0200 |
| commit | 904f68fb0fc01cf4072c1215416eb4e2b9fc4e56 (patch) | |
| tree | e71d7e4ac7d0820c1436ee5ec0fd67e6458a6c12 /pkgs/development/python-modules/rangehttpserver | |
| parent | c80b1155c9dd13c10473ed9d825589351f60d06c (diff) | |
nixos/security/wrappers: make well-typed
The security.wrappers option is morally a set of submodules but it's
actually (un)typed as a generic attribute set. This is bad for several
reasons:
1. Some of the "submodule" option are not document;
2. the default values are not documented and are chosen based on
somewhat bizarre rules (issue #23217);
3. It's not possible to override an existing wrapper due to the
dumb types.attrs.merge strategy;
4. It's easy to make mistakes that will go unnoticed, which is
really bad given the sensitivity of this module (issue #47839).
This makes the option a proper set of submodule and add strict types and
descriptions to every sub-option. Considering it's not yet clear if the
way the default values are picked is intended, this reproduces the current
behavior, but it's now documented explicitly.
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions
