Jörg Thalheim
|
6c169b0bed
|
print nothing if secret collections are empty
|
2023-08-09 14:50:04 +02:00 |
|
Jörg Thalheim
|
c535cf78a1
|
add secret api for machines/users/secrets
|
2023-08-09 14:10:04 +02:00 |
|
Jörg Thalheim
|
2483e29819
|
users: seperate cli from library
|
2023-08-09 13:56:24 +02:00 |
|
Jörg Thalheim
|
119d68bdcd
|
clan-cli: add deploykit
|
2023-08-09 13:05:26 +02:00 |
|
Jörg Thalheim
|
daf1058312
|
clan-cli: fix secrets test
|
2023-08-09 10:50:48 +02:00 |
|
Jörg Thalheim
|
7d39f8346c
|
clan-cli: fix grep in breakpoint check
|
2023-08-09 10:36:46 +02:00 |
|
Jörg Thalheim
|
9189c31def
|
improve error message if users don't exist
|
2023-08-09 10:33:54 +02:00 |
|
Jörg Thalheim
|
3d5a37ad03
|
check for breakpoint() function in code
|
2023-08-09 10:21:59 +02:00 |
|
Jörg Thalheim
|
68905fc233
|
don't add user to a secret if they already can access the secret
If the user is part of a group we don't need to add them explicitly
|
2023-08-09 10:17:30 +02:00 |
|
Jörg Thalheim
|
2988532909
|
allow to set groups/admins/users when setting secrets
|
2023-08-08 19:40:35 +02:00 |
|
Jörg Thalheim
|
5ee620b77b
|
only print names when listing existing users
|
2023-08-08 19:07:38 +02:00 |
|
Jörg Thalheim
|
504adb4f6d
|
make error message nicer when members are not found
|
2023-08-08 19:05:32 +02:00 |
|
Jörg Thalheim
|
6f9aaef56a
|
add option to import sops secrets with groups,users,machines,prefixes
|
2023-08-08 18:46:37 +02:00 |
|
Jörg Thalheim
|
efa0546da5
|
sops: make symlinks relative
|
2023-08-08 17:24:40 +02:00 |
|
Jörg Thalheim
|
35f2d6a76e
|
add dummy sops manifest
|
2023-08-08 16:40:32 +02:00 |
|
Jörg Thalheim
|
d8c2df2e72
|
add test for import-sops command
|
2023-08-08 16:28:38 +02:00 |
|
Jörg Thalheim
|
1d1452ddd5
|
add import-sops command to secrets
|
2023-08-08 15:48:19 +02:00 |
|
Jörg Thalheim
|
4cf82f3596
|
also rename project/pypi name
|
2023-08-08 14:20:45 +02:00 |
|
Jörg Thalheim
|
4296ef92a9
|
rename clan to clan-cli
It's already confusing enough to have so many things called clan-cli
|
2023-08-08 14:18:10 +02:00 |
|
clan-bot
|
6f22717ffd
|
Merge pull request 'fix rotating keys with sops' (#94) from Mic92-mic92 into main
|
2023-08-08 11:44:55 +00:00 |
|
Jörg Thalheim
|
0533948085
|
fix rotating keys with sops
|
2023-08-08 13:44:15 +02:00 |
|
Qubasa
|
52c73265ac
|
Fixed wrong flake template name (#89)
Co-authored-by: Luis-Hebendanz <luis.nixos@gmail.com>
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/89
|
2023-08-05 12:19:14 +00:00 |
|
Jörg Thalheim
|
b540f318c7
|
cli: add test for --help
|
2023-08-03 15:33:08 +02:00 |
|
Jörg Thalheim
|
31a2d90df9
|
cli: fix installation of subpackages
|
2023-08-03 15:22:22 +02:00 |
|
Jörg Thalheim
|
ae4f36ecf9
|
clan-cli/sops: rename add_key to write_key
|
2023-08-03 14:58:51 +02:00 |
|
Jörg Thalheim
|
9b1f0cf918
|
clan-cli: fix error message if registering parser fails
|
2023-08-03 13:38:35 +02:00 |
|
Jörg Thalheim
|
7199f405ab
|
cli: fix broken type checks in config module
|
2023-08-03 13:34:44 +02:00 |
|
Jörg Thalheim
|
fa8dbf0e4f
|
cli: re-expose missing dependenices
|
2023-08-03 13:34:44 +02:00 |
|
Jörg Thalheim
|
cb0197fcf3
|
simplify clan cli build expression
also re-expose missing age
|
2023-08-03 13:34:44 +02:00 |
|
Jörg Thalheim
|
e603ee6f49
|
readd mypy/pytest to checks
|
2023-08-03 11:31:56 +02:00 |
|
Jörg Thalheim
|
25b5f58866
|
drop nix-unit from flake-inputs
|
2023-08-03 11:29:05 +02:00 |
|
Jörg Thalheim
|
54e9d4427c
|
fix cirular import
|
2023-08-03 11:07:17 +02:00 |
|
DavHau
|
56c018d61c
|
clan-config: add bin wrapper
|
2023-08-02 21:10:54 +02:00 |
|
DavHau
|
7299a63a13
|
clan-config: allow passing schema or module file
|
2023-08-02 21:10:41 +02:00 |
|
DavHau
|
b88ac7a2bf
|
clan-config: init
- nixos-modules to jsonschema converter
- nix unit testing via adisbladis/nix-unit
- clan config: configuration CLI for nixos-modules
|
2023-08-02 20:04:16 +02:00 |
|
Jörg Thalheim
|
dab483339a
|
test list/remove secret
|
2023-08-02 12:00:32 +00:00 |
|
Jörg Thalheim
|
658c76336f
|
add secrets integration
clan-cli: also depend on age for secrets
|
2023-08-02 09:19:14 +00:00 |
|
Jörg Thalheim
|
7c388f977e
|
dirs: fix user_config_dir on macos
|
2023-07-29 14:21:36 +02:00 |
|
Jörg Thalheim
|
270c3fc2e6
|
cli: drop no cover pragma
We don't really enforce 100% coverage anymore
|
2023-07-28 16:14:40 +02:00 |
|
Jörg Thalheim
|
e219d38c7c
|
cli/main: catch ClanError in main
|
2023-07-28 16:13:43 +02:00 |
|
Jörg Thalheim
|
9a8c1d5e7a
|
clan-cli: also source parent devshell
|
2023-07-28 15:28:27 +02:00 |
|
Jörg Thalheim
|
6e7c34cd5c
|
tests/clan-flake: yield flake path rather than homedir
|
2023-07-28 15:01:37 +02:00 |
|
Jörg Thalheim
|
bc7dada58c
|
tests/clan_flake: fix fixture name
|
2023-07-28 13:47:32 +02:00 |
|
Jörg Thalheim
|
1834070c8d
|
update envrc if flake-module.nix was changed
|
2023-07-28 13:45:50 +02:00 |
|
Jörg Thalheim
|
81615939ea
|
clan-cli: also add dev dependencies to PYTHONPATH
|
2023-07-28 13:04:02 +02:00 |
|
Jörg Thalheim
|
29c711db30
|
add clan_flake fixture to setup a temporary clan
|
2023-07-28 12:54:49 +02:00 |
|
Jörg Thalheim
|
88a2c2656a
|
get_clan_flake_toplevel: fix check
|
2023-07-28 12:36:01 +02:00 |
|
Jörg Thalheim
|
5e5fbfcf06
|
write test for get_clan_flake_toplevel
|
2023-07-28 10:22:25 +00:00 |
|
Jörg Thalheim
|
df6e94b20e
|
move environment to helpers module
This fixes registering pytest plugins
|
2023-07-28 10:22:25 +00:00 |
|
Jörg Thalheim
|
282307ca2a
|
cli: explicitly list clan_cli package
|
2023-07-28 10:22:25 +00:00 |
|