Commit Graph

152 Commits

Author SHA1 Message Date
Jörg Thalheim
64956a7a0a Revert "clan-cli: deprecate nix_shell() in favor of run_cmd()"
This reverts commit a598b878a5.
2024-07-17 14:04:49 +02:00
DavHau
a598b878a5 clan-cli: deprecate nix_shell() in favor of run_cmd() 2024-07-16 14:03:17 +07:00
Jörg Thalheim
6037ad1ce0 move FlakeId to flake id
move FlakeId to flake id
2024-07-03 18:28:55 +02:00
Jörg Thalheim
2f1dac6962 make machine class now a dataclass 2024-07-03 12:34:43 +02:00
Qubasa
7b0e1b437b clan-cli: Add validity check for age key generation 2024-06-21 15:07:53 +02:00
a-kenji
996dc47da5 clan: add dynamic-completions to clan secrets set 2024-06-04 15:21:00 +02:00
a-kenji
755d7c6470 clan: add dynamic completions to clan secrets machines 2024-06-04 15:02:35 +02:00
a-kenji
6ab585da1f clan: add dynamic completions for clan secrets import-sops 2024-06-04 13:40:24 +02:00
a-kenji
e2bf74ff27 clan: add dynamic completions for clan secrets users 2024-06-04 13:30:38 +02:00
a-kenji
10ab6f0155 clan: add dynamic completion for clan secret groups 2024-06-04 13:30:38 +02:00
a-kenji
0661051baa clan: clan secrets groups add machine completions 2024-06-04 13:30:11 +02:00
a-kenji
b9046cbae0 clan: fix help message 2024-06-04 10:28:34 +00:00
a-kenji
9b6a9f0515 clan: add more machine completion functions to secrets 2024-06-04 11:07:24 +02:00
a-kenji
cc401675fe clan: add dyncamic completions for secrets 2024-06-03 21:47:14 +02:00
a-kenji
bda4e4302f clan: add dynamic machine completions to clan secrets subcommands 2024-06-03 17:32:33 +02:00
lassulus
05ed378199 Revert "clan-cli: cmd.py uses pseudo terminal now. Remove tty.py. Refactor password_store.py to use cmd.py."
This reverts commit 58f5bc0be0.
2024-06-03 12:25:20 +02:00
Qubasa
58f5bc0be0 clan-cli: cmd.py uses pseudo terminal now. Remove tty.py. Refactor password_store.py to use cmd.py. 2024-06-02 16:52:31 +02:00
Jörg Thalheim
84f75de34c split list machines into show machine command 2024-05-31 16:56:09 +02:00
Qubasa
a60978240c Fix template. Improve docu. Add disko as default imported module. 2024-05-10 15:39:46 +02:00
Jörg Thalheim
4b2c0cbd39 sops: fix setting secret from pipe 2024-04-30 14:04:49 +02:00
Jörg Thalheim
92f96e8a45 sops: also log content type on error 2024-04-30 13:56:07 +02:00
DavHau
e09658c817 secrets: ensure all added/deleted files get committed 2024-04-24 17:26:32 +07:00
DavHau
83899aa054 cli/secrets: show hint in --help on how to retrieve a key 2024-04-02 14:36:01 +07:00
Jörg Thalheim
00704e9e55 re-encrypt secrets after rotating users/machines keys 2024-03-25 12:34:29 +01:00
Jörg Thalheim
a395d4a8fb add hint to use --force when a key already exists 2024-03-25 11:06:20 +01:00
lassulus
8d34c51df2 refactor secrets & facts -> secret_facts & public_facts 2024-03-23 05:46:54 +01:00
Jörg Thalheim
6bcddae692 allow multi-line interactive secrets 2024-03-13 11:18:56 +01:00
lassulus
1d5605fa4a clan-cli sops: accept bytes 2024-03-03 09:25:40 +01:00
lassulus
393db0d6f7 clan_cli secrets generate: fix type in error msg 2024-03-03 08:40:22 +01:00
lassulus
cde452f99b clan-cli sops: fix super class interface compliance 2024-03-03 06:20:08 +01:00
lassulus
ed604a7ded clan-cli secrets: actually check if only service needs regeneration 2024-03-03 06:20:08 +01:00
lassulus
9880dede41 clan-cli: add interactive secrets/fact generation 2024-03-03 04:06:18 +01:00
lassulus
e74b586576 outputs: pass secretsData directly 2024-03-02 11:43:20 +01:00
Jörg Thalheim
79e956b5c3 Also commit files when adding machines/users or removing secrets 2024-02-22 16:12:11 +01:00
Jörg Thalheim
52d357ee42 secrets: commit when renaming secrets 2024-02-22 15:59:12 +01:00
Jörg Thalheim
dd98cac94e secret cli: accept a pattern in secrets list 2024-02-22 14:21:53 +01:00
Jörg Thalheim
a214677da0 secret_store: drop update_check and generate_hash as abstract methods
Only password implements those just now
2024-02-20 18:58:38 +01:00
Jörg Thalheim
38e5e4f12c secrets: add git support when updating secrets 2024-02-20 12:41:52 +01:00
Jörg Thalheim
43a8da1485 sops: unbreak edit flags 2024-02-20 11:07:00 +01:00
Jörg Thalheim
1d1358cdc9 improve error message if group does not exists 2024-02-16 17:26:20 +01:00
Jörg Thalheim
023b9f4257 add option to set defaultGroups for secrets 2024-02-16 17:26:20 +01:00
Jörg Thalheim
052f040017 upload_secrets: call update_check directly without introspection 2024-02-16 14:57:01 +01:00
Jörg Thalheim
8eac6992c7 split of generate_secrets method into smaller functions 2024-02-16 14:48:46 +01:00
Jörg Thalheim
587812ebc9 make secrets stores inherit from an interface 2024-02-16 14:47:28 +01:00
lassulus
5ed4881687 vms: use vm fact/secret-store 2024-02-15 10:41:25 +01:00
lassulus
e3627c12f7 add factsStore modules 2024-02-15 10:41:25 +01:00
Jörg Thalheim
5e5077c31c rename machine.host to machine.target_host 2024-02-06 17:21:42 +01:00
lassulus
9585883e80 clan-cli secrets: commit facts/secrets after generating them 2024-02-05 10:03:10 +01:00
lassulus
e94983be21 clan-cli secrets: remove debug output 2024-02-05 10:03:10 +01:00
lassulus
8cbedfd3b8 clan-cli password-store: remove debug print 2024-02-02 17:40:19 +01:00