Johannes Kirschbauer
cffd2450e3
Fix: use older nodejs version due to breaking classnames in 22.12
2025-02-05 03:36:43 +00:00
Johannes Kirschbauer
b21c14d8a5
inventory: add better error for missing file
2025-02-05 10:26:05 +07:00
Johannes Kirschbauer
34ed0e8b0b
checks: fix source of backups vm test
2025-02-05 10:25:45 +07:00
Johannes Kirschbauer
ae2990657a
inventory: use special args to split build inventory into modules
2025-02-05 09:56:08 +07:00
Johannes Kirschbauer
3d8bececc3
inventory: fix test: supported roles beeing to lazy
2025-02-05 09:56:08 +07:00
Johannes Kirschbauer
9d06dec7d0
Inventory: add new module class: class='clan'
2025-02-05 09:56:08 +07:00
Qubasa
4878b773cb
clan-app: Fix Gsettings schema files not found
2025-02-04 17:10:35 +07:00
Michael Hoang
5314eb4cfa
blog: actually remove asciicinema player
2025-02-04 15:48:12 +07:00
Qubasa
decf340258
clan-cli: Fix incorrect input handling in get_templates
2025-02-04 08:10:32 +00:00
a-kenji
f2ab298caa
vars/interface: Change prompt.persist default to false
...
Change `prompt.persist` default to false.
We want a consistent default that is not conditionally dependent on
other values.
This makes communication on how the functionality is used more
consistent and easier understood.
2025-02-04 07:47:22 +00:00
kenji
339bf9900e
Merge pull request 'clan_cli: add select command' ( #2815 ) from kenji/clan-core:lass/clan-select into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2815
2025-02-04 07:32:55 +00:00
a-kenji
11468c42af
pkgs/clan: Remove select debug prints
2025-02-04 07:32:55 +00:00
a-kenji
6242416fc4
pkgs/clan: Fix help formatter
2025-02-04 07:32:55 +00:00
lassulus
3811aef9b2
clan_cli: add select command
2025-02-04 07:32:55 +00:00
Johannes Kirschbauer
6755aa2c70
inventory: migrate tests
2025-02-04 13:20:15 +07:00
Johannes Kirschbauer
316e33f54a
Inventory: refactor build-inventory in more independent parts
2025-02-04 13:20:15 +07:00
Michael Hoang
871326fb91
clan-cli: fix clan-cli accidentally dependending on all packages
2025-02-04 04:52:47 +00:00
Jörg Thalheim
97f3963ac6
shut up eslint warnings
2025-02-04 04:02:42 +00:00
Jörg Thalheim
0309a80c92
fix mypy
2025-02-04 04:02:42 +00:00
Clan Merge Bot
9b438689fc
update flake lock - nixpkgs - 2025-02-03T00:00+00:00
...
Flake lock file updates:
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/041c867bad68dfe34b78b2813028a2e2ea70a23c?narHash=sha256-DSenga8XjPaUV5KUFW/i3rNkN7jm9XmguW%2BqQ1ZJTR4%3D' (2025-01-17)
→ 'github:NixOS/nixpkgs/102a39bfee444533e6b4e8611d7e92aa39b7bec1?narHash=sha256-Q4vhtbLYWBUnjWD4iQb003Lt%2BN5PuURDad1BngGKdUs%3D' (2025-02-01)
2025-02-04 04:02:42 +00:00
DavHau
d0bfd5c879
add /decisions
...
see https://github.com/joelparkerhenderson/architecture-decision-record
2025-02-04 10:41:49 +07:00
Clan Merge Bot
8d12b0da31
update flake lock - disko - 2025-02-03T00:00+00:00
...
Flake lock file updates:
• Updated input 'disko':
'github:nix-community/disko/bf0abfde48f469c256f2b0f481c6281ff04a5db2?narHash=sha256-rMEuiK69MDhjz1JgbaeQ9mBDXMJ2/P8vmOYRbFndXsk%3D' (2025-01-16)
→ 'github:nix-community/disko/18d0a984cc2bc82cf61df19523a34ad463aa7f54?narHash=sha256-KYOATYEwaKysL3HdHdS5kbQMXvzS4iPJzJrML%2B3TKAo%3D' (2025-01-29)
2025-02-04 03:22:08 +00:00
Mic92
f85fd9ccc1
Merge pull request 'clan-cli: fix keys and symlinks updates when users, machines, or groups are updated' ( #2781 ) from lopter/clan-core:lo-fix-secrets-user-remove into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2781
2025-02-04 03:13:20 +00:00
Louis Opter
e88c8a8f2d
clan-cli: do not skip secrets.update_secrets when a group is removed
...
We need to remove all keys that were in the group from affected secrets.
With this change we now take `group_name` as an argument in
`{add,remove}_member`, which is a little bit more readable than
`group_folder.parent.name`, and helps DRY the code a bit.
2025-02-04 03:13:20 +00:00
Louis Opter
509a1bcb94
clan-cli: secrets users add: make sure only one key argument was passed
...
This is slightly better input validation FWIW.
2025-02-04 03:13:20 +00:00
Louis Opter
23d759219f
clan-cli: secrets: properly update secrets when an user is removed
...
Fixes #2659 .
2025-02-04 03:13:20 +00:00
Louis Opter
c99296aae8
clan-cli: improve tests on clan secrets …
...
When users or groups are updated :
- Check that keys are properly updated on sops secrets;
- Check that no dangling symlinks are left behind in sops secrets.
And when an user is removed from the clan, check that it is removed from
the groups it belonged to.
This doesn't check this works for vars explicitly, since they share the
same logic, see `secret_paths.extend(list_vars_secrets(flake_dir))` in
commit 7466445653 .
Those improvements allow us to validate that #2659 is indeed fixed, and
tell us that we need to make the same kind of fixes for machines and
groups. For groups this is straightforward, and for machines, when one
is deleted, I wanna discuss first whether we want to delete all its
secrets as well.
2025-02-04 03:13:20 +00:00
Louis Opter
947095ad13
clan-cli: secrets: truly catch broken symlinks in collect_keys_for_type
2025-02-04 03:13:20 +00:00
Louis Opter
34b36fa309
clan-cli: secrets key generate: fix call to action message
...
So that it makes sense when an already existing PGP key is specified.
2025-02-04 03:13:20 +00:00
Louis Opter
67f26a3abe
clan-cli: secrets: commit changes when group members are added or removed
2025-02-04 03:13:20 +00:00
Louis Opter
30c7e32a3d
clan-cli: honor clan.core.sops.defaultGroups option in vars fix
2025-02-04 03:13:20 +00:00
Louis Opter
9387d64619
clan-cli: secrets/sops: fix error message in maybe_get_admin_public_key
2025-02-04 03:13:20 +00:00
Johannes Kirschbauer
dc02296243
buildClan: add more eager tests
2025-02-03 12:00:47 +01:00
Johannes Kirschbauer
0a27576021
flake.nix: remove unused self reference
2025-02-03 12:00:47 +01:00
Johannes Kirschbauer
2341b0e673
buildClan: add depercation warnings for directory=self
2025-02-03 12:00:47 +01:00
Jörg Thalheim
6f1ab30881
fix infinite recursion
2025-02-03 12:00:47 +01:00
Clan Merge Bot
45058ff818
update flake lock - treefmt-nix - 2025-02-03T00:00+00:00
...
Flake lock file updates:
• Updated input 'treefmt-nix':
'github:numtide/treefmt-nix/f2cc121df15418d028a59c9737d38e3a90fbaf8f?narHash=sha256-5An1wq5U8sNycOBBg3nsDDgpwBmR9liOpDGlhliA6Xo%3D' (2025-01-21)
→ 'github:numtide/treefmt-nix/bebf27d00f7d10ba75332a0541ac43676985dea3?narHash=sha256-j6jC12vCFsTGDmY2u1H12lMr62fnclNjuCtAdF1a4Nk%3D' (2025-01-28)
2025-02-03 00:20:56 +00:00
Clan Merge Bot
ffbf2ff801
update flake lock - flake-parts - 2025-02-03T00:00+00:00
...
Flake lock file updates:
• Updated input 'flake-parts':
'github:hercules-ci/flake-parts/b905f6fc23a9051a6e1b741e1438dbfc0634c6de?narHash=sha256-%2Bhu54pAoLDEZT9pjHlqL9DNzWz0NbUn8NEAHP7PQPzU%3D' (2025-01-06)
→ 'github:hercules-ci/flake-parts/32ea77a06711b758da0ad9bd6a844c5740a87abd?narHash=sha256-7H9XgNiGLKN1G1CgRh0vUL4AheZSYzPm%2BzmZ7vxbJdo%3D' (2025-02-01)
2025-02-03 00:00:03 +00:00
a-kenji
1694f8b3a8
pkgs/clan: Fix typos
2025-02-02 23:20:39 +07:00
lassulus
c746b84a6f
test_api_dataclass_compat: exlcude flake.py
2025-02-02 11:52:36 +00:00
lassulus
fe2cfd3b37
clan-cli: add a Flake class with caching
2025-02-02 11:52:36 +00:00
lassulus
26143b4b5b
clan-cli: add ipython to dev dependencies
2025-02-02 11:52:36 +00:00
lassulus
90fbe807d6
clan-cli vars upload: add optional --directory
2025-02-02 11:52:36 +00:00
Jörg Thalheim
3ab497afa9
buildClan/tests: make test_only_required minimal again
2025-02-02 10:40:50 +00:00
kenji
e03ee4407c
Merge pull request 'clanModules/user-password: Add inventory feature' ( #2796 ) from kenji/clan-core:feat-inventory/user-password into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2796
2025-02-02 10:35:48 +00:00
a-kenji
c7e9bfbefe
clanModules/root-password: Add inventory feature
2025-02-02 10:35:48 +00:00
kenji
83169dc93e
Merge pull request 'clanModules/root-password: Add inventory feature' ( #2795 ) from kenji/clan-core:feat-inventory/root-password into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2795
2025-02-02 10:32:58 +00:00
a-kenji
23360377cf
clanModules/root-password: Add inventory feature
2025-02-02 10:32:58 +00:00
Jörg Thalheim
07bd686850
legacyPackages.evalTests-build-clan: fix comment to run tests
2025-02-02 10:30:26 +00:00
Jörg Thalheim
8634087309
Do not deprecate directory argument
2025-02-02 10:30:26 +00:00