a-kenji
0d69d72899
pgks/cli: Add toplevel aliases
2025-02-06 14:56:57 +00:00
lassulus
51d65873a7
clan-cli: test_flake_caching: add actual flake caching test
2025-02-05 10:17:37 +00: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
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
Michael Hoang
871326fb91
clan-cli: fix clan-cli accidentally dependending on all packages
2025-02-04 04:52:47 +00:00
Jörg Thalheim
0309a80c92
fix mypy
2025-02-04 04:02:42 +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
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
Qubasa
1fb676affb
clan-cli: Fix clan flakes create not working in nix shell
2025-02-01 12:16:20 +07:00
Qubasa
0f4cdd31cd
clan-cli: Make clan machines create use templating.py
2025-01-31 18:07:48 +07:00
Qubasa
d770830c03
clan-cli: Add test_clan_nix_attrset.py and minor fixups
2025-01-31 16:36:20 +07:00
Qubasa
e96bd0816f
clan-cli: Expand type_to_dict to support NewType and tuple types in dataclasses
2025-01-30 17:19:31 +07:00
Qubasa
7545a9a883
clan-cli: Make clan flakes create discover templates from inputs. Add clan flakes list command
2025-01-30 16:24:50 +07:00
Qubasa
839bb17284
clan-cli: Add from_host function to Host class
2025-01-29 19:18:02 +07:00
Qubasa
4a144e77a4
clan-cli: Add ruff to devShell again. Add missing type annotations
2025-01-29 19:16:34 +07:00
Qubasa
e36654daa1
clan: Add autoloaded clanModules from flake inputs. Rename 'directory' to 'self' in buildClan
2025-01-24 12:32:04 +07:00
a-kenji
ce148c23a5
Fix various typos
2025-01-22 13:19:28 +01:00
Johannes Kirschbauer
906126f91f
Vars/tests: secrets dont raise backend error depending on the previous backend
2025-01-22 09:02:55 +00:00
Johannes Kirschbauer
8c75051611
Facts/api: export method for getting the public store
2025-01-22 09:02:55 +00:00
Johannes Kirschbauer
096f1b5e8a
Vars/secrets-store: omit folder exists errors for secrets
2025-01-22 09:02:55 +00:00
Jörg Thalheim
62c6da4c32
clan/update: deploy_machine -> deploy_machines
2025-01-21 15:20:38 +01:00
Michael Hoang
6ba1850678
flash: don't allow partitioning time secrets
2025-01-21 11:13:51 +00:00
Michael Hoang
0ec38c7919
vars: support secrets for partitioning the disk
2025-01-21 11:13:51 +00:00
Jörg Thalheim
c5a72f67c3
use nix flake archive in clan machines update for git+file flake inputs
2025-01-20 10:49:25 +01:00
Michael Hoang
01d86b6482
install: support -i flag for specifying SSH private key
2025-01-19 18:53:18 +11:00
Jörg Thalheim
33de028409
fix getting-started deploy link4
2025-01-17 14:08:58 +00:00
lassulus
cb2f0c5222
clan-cli: exit with errorcode also in debug mode
2025-01-17 11:37:03 +00:00
DavHau
3ec028d672
tests: reduce unnecessary rebuilds of several tests
...
Some test were referring to the whole source code via ${self} which amde them rebuild on every single commit.
This is not mitigated by introduceing `self.filter { include = [...]; }` allowin to a content addressed subset of the source code in tests.
2025-01-17 17:00:18 +07:00
clan-bot
72ca99e2c7
Merge pull request 'Migrate borgbackup module to vars' ( #2741 ) from pinpox/clan-core:migrate-borgbackup-vars into main
2025-01-16 12:16:37 +00:00
Pablo Ovelleiro Corral
7a17a04698
Migrate borgbackup module to vars
2025-01-16 13:14:24 +01:00
Jörg Thalheim
c4a1e3ec95
switch to nixos-facter for hardware-config
2025-01-15 13:59:49 +00:00
Johannes Kirschbauer
4000571550
Fix: remove password from facts store tests
2025-01-14 17:19:51 +01:00
Johannes Kirschbauer
a53367bd11
Fix: secret facts store test
2025-01-14 17:19:50 +01:00
Jörg Thalheim
e2aa66d86f
reformat after update
2025-01-14 15:30:29 +01:00
Pablo Ovelleiro Corral
b56dac3b96
Implement clan ssh <hostname>
...
Fixes #2317
2025-01-11 23:15:39 +01:00