Jörg Thalheim
17af763ad1
add edit flag to secret cli
2023-09-13 10:52:03 +02:00
Jörg Thalheim
62e5c66867
secrets cli: hint that group/user/machine flags can be repeated
2023-09-07 13:06:31 +02:00
Jörg Thalheim
c3ccf68007
only list valid secrets/users/machines
...
Git often leaves empty directories behind
2023-09-07 12:48:34 +02:00
Jörg Thalheim
ae3283a762
clan/secrets: fix if user/machine directory does not contain a key.json
2023-09-07 12:30:29 +02:00
Jörg Thalheim
e6762d8b3f
sops: add explicit commands to generate secrets
2023-09-07 11:41:20 +02:00
Jörg Thalheim
3bdd3af248
cli: fix nixpkgs unfree import
2023-09-06 17:37:41 +02:00
Jörg Thalheim
35c5f248d1
cli/deps_flake: resolve symlink prior to execution
2023-09-06 17:05:21 +02:00
DavHau
e7dcc0d260
clan-cli: fix nix_shell --inputs from
2023-09-06 16:13:27 +02:00
DavHau
df10ca6ece
clan-cli: fix nix_shell
2023-09-06 15:18:22 +02:00
clan-bot
cd8cd62894
Merge pull request 'clan-cli: use dependency flake instead of registry' ( #250 ) from DavHau-deps into main
2023-09-06 12:50:16 +00:00
DavHau
fcbc3ec899
clan-cli: use dependency flake instead of registry
2023-09-06 14:47:28 +02:00
Jörg Thalheim
bef27a2c67
fix cors headers in development
2023-09-06 14:03:21 +02:00
Jörg Thalheim
949b72bd0b
actual implement secret rename function
2023-09-03 11:03:14 +02:00
Jörg Thalheim
6c7c9b9540
secrets/sops-import: check correct secret for conflicts
2023-09-03 08:43:40 +02:00
clan-bot
148c292ea9
Merge pull request 'secrets/sops-import: check for key.json to exist' ( #237 ) from Mic92-secret-fix into main
2023-09-03 06:39:53 +00:00
Jörg Thalheim
e079627f0f
secrets/sops-import: check for key.json to exist
2023-09-03 08:37:56 +02:00
DavHau
a56073b051
machines delete: fix - delete all existing files
2023-09-02 18:37:40 +02:00
DavHau
2a11b1c5d1
machines api: always create empty settings.json
2023-09-02 18:29:12 +02:00
DavHau
a1d825d0a0
clan-config: fix: read options from nixosConfigurations instead of nixosModules
2023-09-02 16:35:59 +02:00
DavHau
8ca0a2aee4
clan-config: introduce --machine + add tests
2023-08-30 20:59:26 +02:00
Jörg Thalheim
10e4db7c19
clan-cli: fix error message
2023-08-30 16:40:42 +02:00
DavHau
4afd9910e9
Revert "rename clanCore to clan.core"
...
This reverts commit fef796fa6e .
2023-08-30 15:24:33 +02:00
Jörg Thalheim
fef796fa6e
rename clanCore to clan.core
2023-08-30 12:46:49 +00:00
Jörg Thalheim
af38408a3e
secret cli: add get command that returns the key of users/machines
2023-08-30 11:30:57 +02:00
clan-bot
691d3bec41
Merge pull request 'secrets generator + zerotier module' ( #188 ) from secrets-module into main
2023-08-29 15:43:15 +00:00
lassulus
9fca1e7f43
move clanCore into nixosModules, add secrets generate command
2023-08-29 16:28:50 +02:00
clan-bot
18bc6c7345
Merge pull request 'secrets: improve error messages' ( #208 ) from Mic92-main into main
2023-08-29 14:22:29 +00:00
Jörg Thalheim
9b3bfd6950
secrets: improve error messages
2023-08-29 16:20:39 +02:00
lassulus
5e2e95e9c7
clan-cli: add zerotier subcommand
2023-08-29 16:16:11 +02:00
Luis-Hebendanz
ce19e5602a
clan-cli: Fixed CORS issue. UI: Readded id as tableData property
2023-08-27 15:10:15 +02:00
Jörg Thalheim
b7212b9988
ruff: also enforce variable naming rules
2023-08-27 10:51:47 +02:00
Jörg Thalheim
9913a95cc2
ruff: enable upgrade rule checks
2023-08-27 10:46:53 +02:00
DavHau
7928e953fa
checks-integration: init
2023-08-27 00:24:19 +02:00
DavHau
b55ceec40c
clan-config: use pinned nixpkgs + fix test flake
2023-08-26 23:33:32 +02:00
DavHau
8c7ee25dc9
webui: fixes for machines endpoint
...
- fix machines settings file location
- raise 404 if machine doesn't exist
- improve machine api test
2023-08-26 14:17:25 +02:00
Jörg Thalheim
9ae14a4f7d
integrate static assets into webui command
2023-08-26 12:24:57 +02:00
Jörg Thalheim
fb7c77690a
replace environment variable with nixpkgs directory
...
In this directory we generate all the files that we need to load nixpkgs.
This seems more robust than all those environment variables that may or not may be set.
2023-08-26 11:45:09 +02:00
DavHau
518bf4197f
webui: tests for machine config endpoints
2023-08-26 08:46:53 +02:00
DavHau
868c49acea
webui: implement /api/machines/{name}/config
2023-08-25 23:18:34 +02:00
DavHau
fb76ad45e8
webui: implement /api/machines/{name}/schema
2023-08-25 21:26:30 +02:00
Johannes Kirschbauer
f0bc59a1a2
add cors to rest api
2023-08-25 12:42:20 +02:00
Jörg Thalheim
aa14e7ddc7
generate openapi
2023-08-25 11:39:46 +02:00
Jörg Thalheim
33b43ae146
add tests for machines api
2023-08-24 19:16:44 +02:00
Jörg Thalheim
58adf91af8
test machine subcommand
2023-08-24 18:28:33 +02:00
Jörg Thalheim
6adfadd8b9
re-enable config subcommand if CLAN_OPTIONS_FILE is set
2023-08-24 18:28:33 +02:00
Jörg Thalheim
d600a927ea
tests: generalize secret cli parser to work for all cli commands
2023-08-24 18:28:33 +02:00
Jörg Thalheim
3b099ccb89
clan-cli: move arg parsing to extra method
2023-08-24 18:28:33 +02:00
Jörg Thalheim
c5b16124ef
add machine subcommand
2023-08-24 16:58:22 +02:00
Jörg Thalheim
56542ca5ef
mv update command to machines update command
2023-08-24 16:25:06 +02:00
Jörg Thalheim
80d3349ce0
add stub api for machines
2023-08-24 16:11:08 +02:00