!BgJZHVOYkwVcEKLAyM:nixos.org

NixOS Deployments

1242 Members
NixOS Deployment tooling306 Servers

Load older messages


SenderMessageTime
6 Jul 2025
@travltux:matrix.org@travltux:matrix.org left the room.14:59:17
@cathal_mullan:matrix.orgCathal changed their display name from CJ to Cathal.17:17:37
7 Jul 2025
@opalbolt:matrix.orgOpalBolt joined the room.06:04:51
@colemickens:matrix.orgcolemickens 🏳️‍🌈 left the room.21:51:22
9 Jul 2025
@jonhermansen:matrix.orgjonhermansen left the room.01:05:54
@jonhermansen:matrix.orgjonhermansen joined the room.01:15:17
@zeroecks:matrix.orgZeroEcks joined the room.01:58:29
@garoudensetsu:matrix.orgWilliam Sewell joined the room.17:51:41
10 Jul 2025
@jtrunce:matrix.orgJustinas joined the room.23:00:49
11 Jul 2025
@felix.schroeter:scs.ems.host@felix.schroeter:scs.ems.host joined the room.17:01:39
@felschr:matrix.orgfelschr joined the room.17:01:48
12 Jul 2025
@plan9better:matrix.orgplan9better joined the room.11:05:14
13 Jul 2025
@n4ch723hr3r:nope.chatn4ch723hr3r joined the room.08:46:06
@marie:marie.cologneMarie changed their profile picture.20:12:19
15 Jul 2025
@dramosac:matrix.orgDaniel Ramos

Hello!

Is anyone managing Kubernetes with Nix?
I’m looking into the simplest and most secure way to handle secrets. I tried using AgeNix to deploy them, but it isn’t working for me. I also suspect this might not be best practice, since during evaluation the secret could end up embedded in the derivation generated by Nix.

What do you use to manage cluster secrets?
Thanks!

15:54:08
@magic_rb:matrix.redalder.orgmagic_rbI use openbao-agent and vault15:55:02
@magic_rb:matrix.redalder.orgmagic_rbIts hacky but it works until i put kubernetes down15:55:12
@dramosac:matrix.orgDaniel Ramos

I'm seeing sops being used for declaring secrets: https://discourse.nixos.org/t/k3s-clusters-and-deployments-in-pure-nix/61794#p-205785-deploy-secrets-6

Then.. can I suppose that my approach with agenix is safe?

16:59:37
@dramosac:matrix.orgDaniel Ramos *

I'm seeing sops being used for declaring secrets at the docs: https://discourse.nixos.org/t/k3s-clusters-and-deployments-in-pure-nix/61794#p-205785-deploy-secrets-6

Then.. can I suppose that my approach with agenix is safe?

16:59:57
@zhaofeng:zhaofeng.liZhaofeng Li

Then.. can I suppose that my approach with agenix is safe?

No, your secrets will end up in the store

17:11:53
@zhaofeng:zhaofeng.liZhaofeng Li(which might be acceptable depending on your risk model)17:12:13
@n4ch723hr3r:nope.chatn4ch723hr3ri'd still caution against it since you might set up a cache in the future for example and accidentialy upload some credentials17:18:13
@zhaofeng:zhaofeng.liZhaofeng Li but I guess the more important issue is that reading config.age.secrets.x.path is semantically incorrect 17:18:37
@zhaofeng:zhaofeng.liZhaofeng Li(the path is on the target host after activation, not your host running the evaluation)17:18:41
@dramosac:matrix.orgDaniel RamosI guess I'm going with sealed secrets in the end.17:19:00
@dramosac:matrix.orgDaniel Ramosthanks for the help 🫶🏽17:19:08
@dramosac:matrix.orgDaniel Ramos Another question: does anyone know if it's possible to inject helm chart values via YAML? reading the docs, it seems that it only supports nix attribute sets? 20:08:19
@dramosac:matrix.orgDaniel Ramos(sorry, I don't know if this is the right channel for this kind of questions)20:26:05
@zhaofeng:zhaofeng.liZhaofeng LiDoesn't look easy, but you could use a derivation to parse yaml into json and then read it from Nix (import from derivation). But anyways, personally I don't like the HelmChart CRD in k3s and render everything locally so I can easily patch and check diffs before applying. I've been having fun with tanka which I recently switched to from kustomize20:40:34
@zhaofeng:zhaofeng.liZhaofeng LiYou don't have to use nix and k3s all the way, and half-baked abstractions can be counterproductive20:41:34

Show newer messages


Back to Room ListRoom Version: 6