!VhzbGHamdfMiGxpXyg:robins.wtf

NixOS LXC

36 Members
lxc, lxd, incus discussions related to NixOS15 Servers

Load older messages


SenderMessageTime
29 Apr 2025
@adam:robins.wtfadamcstephens6.12 added access token auth12:15:27
@adam:robins.wtfadamcstephenswon't help if you're on LTS though :)12:15:44
@hexa:lossy.networkhexaI'm not 😄 12:18:34
@hexa:lossy.networkhexabut tokens are single use apparently12:18:39
@hexa:lossy.networkhexaoh nvm12:18:48
@hexa:lossy.networkhexaRedacted or Malformed Event12:19:41
@hexa:lossy.networkhexaso by default single use?12:19:44
@hexa:lossy.networkhexahttps://linuxcontainers.org/incus/docs/main/server_config/#server-core:core.remote_token_expiry12:19:46
@adam:robins.wtfadamcstephenshmm, maybe this is for non-client usage12:21:44
@adam:robins.wtfadamcstephens

To do this, the user must generate a signed JWT which has its Subject field set to the full fingerprint of their client certificate, it must have valid NotBefore and NotAfter fields and be signed by the client certificate’s private key.

12:23:55
@hexa:lossy.networkhexahttps://linuxcontainers.org/incus/docs/main/authentication/#adding-client-certificates-using-tokens12:26:34
@adam:robins.wtfadamcstephensyeah, that's for the older client setup where you copy/paste the cert12:27:32
@hexa:lossy.networkhexaoh no12:27:59
@adam:robins.wtfadamcstephensi don't see any docs on how to create the JWT12:30:03
@adam:robins.wtfadamcstephensthere's a helper program in the tests for generating them... https://github.com/lxc/incus/blob/3540539ab5fa1ed3dc84a3f8112183d8d1ba28e4/test/tls2jwt/tls2jwt.go12:32:24
@hexa:lossy.networkhexameh12:34:37
@adam:robins.wtfadamcstephensyeah, still not great12:34:50
@adam:robins.wtfadamcstephensDo you have OIDC? 12:35:20
@hexa:lossy.networkhexanot yet12:35:34
@adam:robins.wtfadamcstephensi should really try that method out.12:36:47
@adam:robins.wtfadamcstephensnvm https://github.com/kanidm/kanidm/issues/152312:57:22
@hexa:lossy.networkhexameh12:57:39
@adam:robins.wtfadamcstephensall of my one users will have to wait ;)12:59:41
@adam:robins.wtfadamcstephens
𑁱 for instance in (incus list -f compact | rg RUNNING | awk '{print $1}')
      incus exec $instance -- grep ^ID= /etc/os-release
      incus exec $instance -- df -i /
      echo
  end
ID=ubuntu
Filesystem       Inodes IUsed    IFree IUse% Mounted on
/dev/sda2      12787200 23322 12763878    1% /

ID=debian
Filesystem       Inodes IUsed    IFree IUse% Mounted on
/dev/sda2      12787200 23396 12763804    1% /

ID=fedora
Filesystem     Inodes IUsed  IFree IUse% Mounted on
/dev/sda2      511488 23066 488422    5% /

ID="opensuse-tumbleweed"
Filesystem       Inodes IUsed    IFree IUse% Mounted on
/dev/sda2      12787200 16116 12771084    1% /

ID=alpine
Filesystem              Inodes      Used Available Use% Mounted on
/dev/sda2               511488      3955    507533   1% /

ID=nixos
Filesystem                Inodes  IUsed   IFree IUse% Mounted on
/dev/disk/by-label/nixos 6332928 201504 6131424    4% /
13:13:42
@hexa:lossy.networkhexayeah, so flakes and no gc13:25:41
@hexa:lossy.networkhexa* yeah, so flakes and no gc did it13:25:43
@hexa:lossy.networkhexa
/dev/disk/by-label/nixos 2032000 609547 1422453   30% /
13:26:03
@hexa:lossy.networkhexabut I'm still up here 😄 13:26:07
@adam:robins.wtfadamcstephensHopefully we can increase the inodes during creation13:35:33
@adam:robins.wtfadamcstephensCould be a good excuse to see if we can use repart to create the image :)14:09:09

There are no newer messages yet.


Back to Room ListRoom Version: 10