!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

923 Members
Declaratively manage your switching, routing, wireless, tunneling and more.277 Servers

Load older messages


SenderMessageTime
21 Aug 2021
@6aa4fd:tchncs.de6aa4fdread-sensitive, sorry03:09:40
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneI disagree, what are you thinking of?03:09:51
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneI mean, you can put it there yourself, but you'd be mad to.03:10:00
@6aa4fd:tchncs.de6aa4fdso do you use environment variables instead03:10:18
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneI use agenix which stores secrets encrypted in the store.03:10:36
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zonehttps://github.com/MatthewCroughan/nixcfg/commit/add19ff13691d39b0da7f1601f1d3299a05d986f03:10:57
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneexample of some usage03:10:59
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zonehttps://github.com/MatthewCroughan/nixcfg/commit/2d0b2a11a9bfd3a2d831fd13715c1bb16e191ef703:11:10
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zonea second example of some usage03:11:13
@6aa4fd:tchncs.de6aa4fdokay, maybe nix-sops or this will save the day03:11:50
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone The secrets are then decrypted in the activation script, to /run/secrets which the correct permissions 03:11:52
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone
In reply to @6aa4fd:tchncs.de
okay, maybe nix-sops or this will save the day
yeah, writing secrets to the nix store isn't really a problem, unless we assume people are dumb and will do it anyway
03:12:14
@6aa4fd:tchncs.de6aa4fdbut if we are talking about nixos/nixpkgs itself, it is no bueno03:12:15
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zonewhich happens with basically anything and everything else, can't account for those darn users.03:12:22
@6aa4fd:tchncs.de6aa4fdsure, the users are dumb to use the secret configuration fields provided by the upstream modules03:12:51
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone
In reply to @6aa4fd:tchncs.de
but if we are talking about nixos/nixpkgs itself, it is no bueno
That is fair. There is no secret management native to Nix, but agenix is pretty good.
03:12:54
@washort:greyface.orgdashhave a single global namespace for storage was a decision that made sense in the 70s but we can do better now03:13:05
@6aa4fd:tchncs.de6aa4fdsomeone else is dumb or at least not writing their modules for production03:13:07
@6aa4fd:tchncs.de6aa4fdwhich is ok, it is a labor of love03:13:14
@6aa4fd:tchncs.de6aa4fdbut agenix has sub 100 commits, and i don't think it had any a few months ago03:13:29
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone
In reply to @washort:greyface.org
have a single global namespace for storage was a decision that made sense in the 70s but we can do better now
Not sure about that. The nix store is world readable by design, I don't see how you'd make the situation better by having granular permissions.
03:13:37
@6aa4fd:tchncs.de6aa4fdi don't think you'll meet anyone well qualified who will put that in front of a user regularly03:13:51
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneYou simply encrypt certain things in the nix store, that's the best possible solution.03:13:50
@washort:greyface.orgdash matthewcroughan - nix.zone: "permissions" are a leftover from old designs too 03:13:53
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneBecause they need to be encrypted at rest anyway!03:13:57
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneThere is no situation in which unix permissions are going to help any of this.03:14:08
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneYou're going to store it unencrypted in git, and then rely on the nix store perms?03:14:21
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneMy secrets need to be in git. Nix store permissions won't help me keep that safe.03:14:30
@washort:greyface.orgdash matthewcroughan - nix.zone: how did you think agenix worked? 03:14:37
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone
In reply to @washort:greyface.org
matthewcroughan - nix.zone: how did you think agenix worked?
That's when decrypted.
03:14:47

Show newer messages


Back to Room ListRoom Version: 6