clan-bot
a97d719a52
Merge pull request 'remove secretsUploadDirectory from common module' ( #2509 ) from lassulus/clan-core:no-secrets-upload-dir into main
2024-11-28 15:46:51 +00:00
clan-bot
ad95265773
Merge pull request 'Clan-app/api: add traceback for all underlying exceptions' ( #2517 ) from hsjobeki/clan-core:hsjobeki-main into main
2024-11-28 15:45:54 +00:00
lassulus
748053154e
vars: remove dead option
2024-11-28 16:39:01 +01:00
lassulus
af1dacc651
vars: use vars in option descriptions
2024-11-28 16:38:47 +01:00
lassulus
c00ac4a246
vars: remove secretsUploadDirectory from common module
2024-11-28 16:38:06 +01:00
Johannes Kirschbauer
c7a3d52a33
Clan-app: init single-disk template
2024-11-28 16:37:52 +01:00
Johannes Kirschbauer
ee9fdb7ac7
Clan-app/api: improve error message for mismatching types
2024-11-28 16:37:52 +01:00
Johannes Kirschbauer
d3be596c77
Clan-app/api: error on {unknown api method, mismatching parameter name}
2024-11-28 16:37:52 +01:00
Johannes Kirschbauer
c35b30a447
Clan-app/api: add traceback for all underlying exceptions
2024-11-28 16:37:52 +01:00
clan-bot
17f1f2dca8
Merge pull request 'clan-cli: refactor HostGroup._run_local to work with RunOpts' ( #2516 ) from Qubasa/clan-core:Qubasa-main into main
2024-11-28 15:12:45 +00:00
Qubasa
95cb239206
clan-cli: refactor HostGroup._run_local to work with RunOpts
2024-11-28 16:05:51 +01:00
clan-bot
466044e85f
Merge pull request 'clan-cli: cmd.run now has its options extracted to a dataclass' ( #2515 ) from Qubasa/clan-core:Qubasa-main into main
2024-11-28 14:41:52 +00:00
Qubasa
d2719f3179
clan-cli: cmd.run now has its options extracted to a dataclass
2024-11-28 15:26:37 +01:00
hsjobeki
d672c08074
Merge pull request 'Templates: move all clan templates into subfolder 'clan'' ( #2514 ) from hsjobeki/clan-core:hsjobeki-main into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2514
2024-11-28 11:03:56 +00:00
Johannes Kirschbauer
126874e62e
CLI/tests: use correct fixture paths
2024-11-28 11:56:12 +01:00
Johannes Kirschbauer
5d78c7a01e
CLI: use new template path
2024-11-28 11:44:44 +01:00
Johannes Kirschbauer
8c24034dc7
Templates: init disko single disk template file
2024-11-28 11:44:09 +01:00
Johannes Kirschbauer
f2f993203b
Templates: move all clan templates into subfolder 'clan'
2024-11-28 11:17:52 +01:00
Luis Hebendanz
43f9b17cd9
Merge pull request 'clan-cli: Add -L option to nixos-rebuild switch to still have build output, simplify logging code' ( #2513 ) from Qubasa/clan-core:Qubasa-main into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2513
2024-11-28 09:59:12 +00:00
Qubasa
d29f9bf86c
clan-cli: SSH now completely refactored to use dataclasses everywhere
2024-11-28 10:52:14 +01:00
Qubasa
55e080a89f
clan-cli: Add -L option to nixos-rebuild switch to still have build output, simplify logging code
2024-11-28 10:42:43 +01:00
DavHau
00064ee98b
wifi: init as experimental module
2024-11-28 15:49:23 +07:00
clan-bot
4f25e2f79a
Merge pull request 'clan-cli: Refactor colors to a subset of colors that work in light and dark mode' ( #2508 ) from Qubasa/clan-core:Qubasa-main into main
2024-11-27 11:48:47 +00:00
Qubasa
fddaa3a5bb
clan-cli: Refactor colors to a subset of colors that work in light and dark mode
2024-11-27 12:42:10 +01:00
clan-bot
781334344c
Merge pull request 'UI/webview: remove unused clamp' ( #2506 ) from hsjobeki/clan-core:hsjobeki-main into main
2024-11-27 10:12:04 +00:00
clan-bot
604e2c9049
Merge pull request 'Modules: more categories' ( #2507 ) from hsjobeki/clan-core:main into main
2024-11-27 10:06:45 +00:00
Johannes Kirschbauer
1dd7d46fad
UI/webview: remove unused clamp
2024-11-27 11:03:57 +01:00
clan-bot
f0a0bba6a3
Merge pull request 'cli machines update: remove dead code' ( #2505 ) from lassulus/clan-core:rip-always-upload into main
2024-11-27 10:01:52 +00:00
clan-bot
a05297356f
Merge pull request 'UI/machines: show tags' ( #2504 ) from hsjobeki/clan-core:hsjobeki-main into main
2024-11-27 09:47:58 +00:00
Johannes Kirschbauer
ce9785e093
UI/machines: show tags
2024-11-27 10:40:12 +01:00
lassulus
354a71f574
cli machines update: remove dead code
2024-11-27 10:33:28 +01:00
clan-bot
ca6b5d09af
Merge pull request 'UI/treewide: replace all {button,icon} component, other minor fixes' ( #2503 ) from hsjobeki/clan-core:hsjobeki-main into main
2024-11-27 09:13:09 +00:00
Johannes Kirschbauer
e7a9344665
UI/treewide: replace all {button,icon} component
2024-11-27 10:06:04 +01:00
Johannes Kirschbauer
cc84a53b6d
UI:_ convert sidebar.css into tailwind notation
2024-11-27 10:06:04 +01:00
Johannes Kirschbauer
a0d365a3f9
UI: remove unsused old sidebar
2024-11-27 10:06:04 +01:00
Johannes Kirschbauer
f9eaf3e8ec
Cli: improve targetHost error message
2024-11-27 10:06:04 +01:00
Johannes Kirschbauer
b68cf7a7e5
API/serde: fix construction of Enum values
2024-11-27 10:06:04 +01:00
Johannes Kirschbauer
bcc0f9e61d
Cli: fix error description should be appended
2024-11-27 10:06:04 +01:00
clan-bot
5db3783976
Merge pull request 'vars: make all python tests work in nix sandbox' ( #2502 ) from DavHau/clan-core:DavHau-dave into main
2024-11-27 07:38:23 +00:00
DavHau
61576649ff
vars: make all python tests work in nix sandbox
...
- generate a flake.lock file for each template by copying the clan-core flake.lock and modifying it
- call nix build with --store for tests inside the sandbox
2024-11-27 14:32:02 +07:00
Mic92
dcd2581b41
Merge pull request 'clan-cli: secrets: fix encryption, and collect public and private keys separately' ( #2500 ) from lo-sops-filter-env into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2500
2024-11-27 06:27:53 +00:00
Louis Opter
5a5b92ef1d
clan-cli: secrets: sops: SOPS_NIX_SECRET is not a sops variable
...
It's a variable internal to us, and it does not need to be allowed.
2024-11-27 06:27:53 +00:00
Louis Opter
1e0db82827
clan-cli: secrets: address CR feedback for sops encryption and key handling
...
- Move public keys collection to a class method on `SopsKey`, and
implement collection for each key type in `KeyType`, this helps make
the code more generic ;
- Replace `Operation.__call__` by `run` (`sops.run` if you import the
entire module), that allows us to dedent the code so that's cool ;
- Fix exception handling when trying to get a in-memory temporary file ;
- Make Executor cuter 😵 🪦 .
2024-11-27 06:27:53 +00:00
Louis Opter
1ba27196d8
clan-cli: rebase sops changes on top of vars changes
...
vars changes in question are from commit: 54b8f5904e
With this changeset the age specific sops logic that was added is now
generic.
To keep things simple, this changeset modifies `SopsKey` so that
`username` is ignored when comparing different keys. I don't really see
us relying on `username` and this makes `SopsKey` hashable, and usable
in a `set`, which is nice when you check that you have a particular key.
2024-11-27 06:27:53 +00:00
Louis Opter
8d53568d95
clan-cli: secrets: treemft
2024-11-27 06:27:53 +00:00
Louis Opter
daf51f523e
clan-cli: secrets.sops: improve age keys detection
...
This change allows you to e.g. directly pass `$(age-keygen)` on the
command line.
2024-11-27 06:27:53 +00:00
Louis Opter
67c7876629
clan-cli: filter any sops recipients set in the environment for encryption
...
This forces sops to use our config file, otherwise if any of the
environment variables set to specify recipients is present then
`--config` will be ignored (see [env_check]).
That's simple enough, still I ended up refactoring how we call sops for
correctness, and to align with its behavior. The code now distinguishes
between public and private keys explicitly. `secrets.decrypt_secret`
does not try to lookup for public and private keys anymore.
With this changeset, some people might have to adjust their environment
as public age and PGP keys will be discovered like sops would do. In
particular if multiple public keys are discovered, then the user will
have to specify which one to use for the clan.
This also makes the following changes:
- try to use `/dev/shm` when swapping a secret (it's what [pass] does
fwiw);
- alias immediate values for readability;
- remove some float comparison that could never succeed, and use sops'
exit status instead;
- remove unused function `maybe_get_sops_key`.
[env_check]: 8c567aa8a7/cmd/sops/main.go (L2229)
[pass]: http://passwordstore.org/
2024-11-27 06:27:53 +00:00
clan-bot
0bad1c79f4
Merge pull request 'Automatic flake update - 2024-11-25T00:00+00:00' ( #2484 ) from flake-update-2024-11-25 into main
2024-11-26 18:58:35 +00:00
Clan Merge Bot
40fe706446
update flake lock - 2024-11-25T00:00+00:00
...
Flake lock file updates:
• Updated input 'disko':
'github:nix-community/disko/cb64993826fa7a477490be6ccb38ba1fa1e18fa8?narHash=sha256-f3SSp1axoOk0NAI7oFdRzbxG2XPBSIXC%2B/DaAXnvS1A%3D' (2024-11-16)
→ 'github:nix-community/disko/47bc8dfb6f48d5f66a3cb3a4cece83d8ace1f61a?narHash=sha256-B1MQLiWi4bbeNiRXKxEkpztnKyWae4x0LyK32v3DjLk%3D' (2024-11-24)
• Updated input 'nixos-facter-modules':
'github:numtide/nixos-facter-modules/5a1c2a28589e34f8a44d46dd1909cfacf928cb1a?narHash=sha256-aIy8m4jjr/BFXzniNzoH16sF7HEFV/01/5b3FhtUHrw%3D' (2024-11-17)
→ 'github:numtide/nixos-facter-modules/862648589993a96480c2255197a28feea712f68f?narHash=sha256-zSQ2cR%2BNRJfHUVfkv%2BO6Wi53wXfzX8KHiO8fRfnvc0M%3D' (2024-11-22)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/85f7e662eda4fa3a995556527c87b2524b691933?narHash=sha256-JwQZIGSYnRNOgDDoIgqKITrPVil%2BRMWHsZH1eE1VGN0%3D' (2024-11-07)
→ 'github:NixOS/nixpkgs/8edf06bea5bcbee082df1b7369ff973b91618b8d?narHash=sha256-sQxuJm8rHY20xq6Ah%2BGwIUkF95tWjGRd1X8xF%2BPkk38%3D' (2024-11-22)
• Updated input 'sops-nix':
'github:Mic92/sops-nix/472741cf3fee089241ac9ea705bb2b9e0bfa2978?narHash=sha256-NVUTFxKrJp/hjehlF1IvkPnlRYg/O9HFVutbxOM8zNM%3D' (2024-11-17)
→ 'github:Mic92/sops-nix/53c853fb1a7e4f25f68805ee25c83d5de18dc699?narHash=sha256-N9JGWe/T8BC0Tss2Cv30plvZUYoiRmykP7ZdY2on2b0%3D' (2024-11-21)
• Updated input 'treefmt-nix':
'github:numtide/treefmt-nix/746901bb8dba96d154b66492a29f5db0693dbfcc?narHash=sha256-vK%2Ba09qq19QNu2MlLcvN4qcRctJbqWkX7ahgPZ/%2BmaI%3D' (2024-10-30)
→ 'github:numtide/treefmt-nix/705df92694af7093dfbb27109ce16d828a79155f?narHash=sha256-5WSng844vXt8uytT5djmqBCkopyle6ciFgteuA9bJpw%3D' (2024-11-22)
2024-11-26 19:52:15 +01:00
Mic92
90578d47f1
Merge pull request 'vars: make interface more type-safe' ( #2459 ) from vars into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2459
Reviewed-by: kenji <aks.kenji@protonmail.com >
2024-11-26 16:15:55 +00:00