Commit Graph

1423 Commits

Author SHA1 Message Date
b9c6ffd95c UI: Added /nodes page
All checks were successful
build / test (pull_request) Successful in 16s
2023-08-09 17:31:28 +02:00
dd9f1820a5 Merge pull request 'add test for local commands' (#114) from Mic92-mic92 into main
All checks were successful
build / test (push) Successful in 23s
2023-08-09 14:24:06 +00:00
f8f9cd457a add test for local commands
All checks were successful
build / test (pull_request) Successful in 21s
2023-08-09 16:23:15 +02:00
7262208a4c clanLib.jsonschema: move tests from pkgs/clan-cli
All checks were successful
build / test (pull_request) Successful in 26s
2023-08-09 16:05:33 +02:00
9438a9eb5f clan-config: move jsonschema lib to clanLib 2023-08-09 16:05:33 +02:00
d977499ffe rename cli tests to have a common suffix
All checks were successful
build / test (pull_request) Successful in 25s
rename test_import_sops -> test_import_sops
2023-08-09 15:54:27 +02:00
8fea55da32 move ssh cli to cli submodule
Some checks failed
build / test (pull_request) Failing after 23s
2023-08-09 15:46:34 +02:00
1f79a610d4 groups: add more api
All checks were successful
build / test (pull_request) Successful in 20s
2023-08-09 15:30:50 +02:00
e103a4186c add api for secret groups and decrypting secrets
Some checks failed
build / test (pull_request) Failing after 23s
2023-08-09 15:17:43 +02:00
6c169b0bed print nothing if secret collections are empty
All checks were successful
build / test (pull_request) Successful in 29s
2023-08-09 14:50:04 +02:00
c535cf78a1 add secret api for machines/users/secrets
Some checks failed
build / test (pull_request) Failing after 21s
2023-08-09 14:10:04 +02:00
2483e29819 users: seperate cli from library
All checks were successful
build / test (pull_request) Successful in 20s
2023-08-09 13:56:24 +02:00
119d68bdcd clan-cli: add deploykit 2023-08-09 13:05:26 +02:00
daf1058312 clan-cli: fix secrets test
All checks were successful
build / test (pull_request) Successful in 37s
2023-08-09 10:50:48 +02:00
7d39f8346c clan-cli: fix grep in breakpoint check
Some checks failed
build / test (pull_request) Failing after 22s
2023-08-09 10:36:46 +02:00
9189c31def improve error message if users don't exist
Some checks failed
build / test (pull_request) Failing after 17s
2023-08-09 10:33:54 +02:00
3d5a37ad03 check for breakpoint() function in code
Some checks failed
build / test (pull_request) Failing after 25s
2023-08-09 10:21:59 +02:00
68905fc233 don't add user to a secret if they already can access the secret
Some checks failed
build / test (pull_request) Failing after 21s
If the user is part of a group we don't need to add them explicitly
2023-08-09 10:17:30 +02:00
2988532909 allow to set groups/admins/users when setting secrets
All checks were successful
build / test (pull_request) Successful in 20s
2023-08-08 19:40:35 +02:00
5ee620b77b only print names when listing existing users
All checks were successful
build / test (pull_request) Successful in 16s
2023-08-08 19:07:38 +02:00
504adb4f6d make error message nicer when members are not found
All checks were successful
build / test (pull_request) Successful in 21s
2023-08-08 19:05:32 +02:00
6f9aaef56a add option to import sops secrets with groups,users,machines,prefixes
All checks were successful
build / test (pull_request) Successful in 25s
2023-08-08 18:46:37 +02:00
efa0546da5 sops: make symlinks relative
All checks were successful
build / test (pull_request) Successful in 21s
2023-08-08 17:24:40 +02:00
35f2d6a76e add dummy sops manifest
All checks were successful
build / test (pull_request) Successful in 20s
2023-08-08 16:40:32 +02:00
d8c2df2e72 add test for import-sops command
All checks were successful
build / test (pull_request) Successful in 24s
2023-08-08 16:28:38 +02:00
1d1452ddd5 add import-sops command to secrets
All checks were successful
build / test (pull_request) Successful in 21s
2023-08-08 15:48:19 +02:00
4cf82f3596 also rename project/pypi name
All checks were successful
build / test (pull_request) Successful in 21s
2023-08-08 14:20:45 +02:00
4296ef92a9 rename clan to clan-cli
All checks were successful
build / test (pull_request) Successful in 25s
It's already confusing enough to have so many things called clan-cli
2023-08-08 14:18:10 +02:00
6d1de943e1 move out non-toplevel flake modules from flake.nix
All checks were successful
build / test (pull_request) Successful in 21s
2023-08-08 14:03:26 +02:00
6f22717ffd Merge pull request 'fix rotating keys with sops' (#94) from Mic92-mic92 into main
All checks were successful
build / test (push) Successful in 24s
2023-08-08 11:44:55 +00:00
0533948085 fix rotating keys with sops
All checks were successful
build / test (push) Successful in 8s
2023-08-08 13:44:15 +02:00
d8cb8069f5 init: layout with simple side navigation
All checks were successful
build / test (push) Successful in 20s
2023-08-06 17:42:13 +02:00
d90f4bc449 init: layout 2023-08-06 17:41:07 +02:00
c3b49fdce0 init: layout with simple side navigation 2023-08-06 17:31:44 +02:00
52c73265ac Fixed wrong flake template name (#89)
All checks were successful
build / test (push) Successful in 16s
Co-authored-by: Luis-Hebendanz <luis.nixos@gmail.com>
Reviewed-on: #89
2023-08-05 12:19:14 +00:00
a0a137191d init: layout 2023-08-05 12:10:58 +00:00
88ec2d3e3e Added fonts symlink to devShell
All checks were successful
build / test (push) Successful in 20s
2023-08-05 12:34:04 +02:00
c9b19b5060 init: ui bootstrapping nextjs
All checks were successful
build / test (push) Successful in 20s
2023-08-05 11:42:48 +02:00
d947c32a9b use callPackage for merge-after-ci, nix-unit & tea-create-pr
All checks were successful
build / test (push) Successful in 9s
2023-08-03 18:05:53 +02:00
b8fd28af2f move flake-parts into pkgs or toplevel
All checks were successful
build / test (push) Successful in 8s
2023-08-03 17:11:36 +02:00
b540f318c7 cli: add test for --help
All checks were successful
build / test (push) Successful in 8s
2023-08-03 15:33:08 +02:00
31a2d90df9 cli: fix installation of subpackages
All checks were successful
build / test (push) Successful in 9s
2023-08-03 15:22:22 +02:00
ae4f36ecf9 clan-cli/sops: rename add_key to write_key
All checks were successful
build / test (push) Successful in 12s
2023-08-03 14:58:51 +02:00
9b1f0cf918 clan-cli: fix error message if registering parser fails
All checks were successful
build / test (push) Successful in 12s
2023-08-03 13:38:35 +02:00
7199f405ab cli: fix broken type checks in config module
All checks were successful
build / test (push) Successful in 14s
2023-08-03 13:34:44 +02:00
fa8dbf0e4f cli: re-expose missing dependenices 2023-08-03 13:34:44 +02:00
cb0197fcf3 simplify clan cli build expression
also re-expose missing age
2023-08-03 13:34:44 +02:00
e603ee6f49 readd mypy/pytest to checks
Some checks failed
build / test (push) Failing after 16s
2023-08-03 11:31:56 +02:00
25b5f58866 drop nix-unit from flake-inputs 2023-08-03 11:29:05 +02:00
54e9d4427c fix cirular import 2023-08-03 11:07:17 +02:00
56c018d61c clan-config: add bin wrapper
All checks were successful
build / test (push) Successful in 10s
2023-08-02 21:10:54 +02:00
7299a63a13 clan-config: allow passing schema or module file 2023-08-02 21:10:41 +02:00
b88ac7a2bf clan-config: init
All checks were successful
build / test (push) Successful in 20s
- 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
dab483339a test list/remove secret 2023-08-02 12:00:32 +00:00
658c76336f add secrets integration
clan-cli: also depend on age for secrets
2023-08-02 09:19:14 +00:00
7c388f977e dirs: fix user_config_dir on macos
All checks were successful
build / test (push) Successful in 14s
2023-07-29 14:21:36 +02:00
270c3fc2e6 cli: drop no cover pragma
All checks were successful
build / test (push) Successful in 14s
We don't really enforce 100% coverage anymore
2023-07-28 16:14:40 +02:00
e219d38c7c cli/main: catch ClanError in main 2023-07-28 16:13:43 +02:00
9a8c1d5e7a clan-cli: also source parent devshell
All checks were successful
build / test (push) Successful in 13s
2023-07-28 15:28:27 +02:00
6e7c34cd5c tests/clan-flake: yield flake path rather than homedir
All checks were successful
build / test (push) Successful in 13s
2023-07-28 15:01:37 +02:00
bc7dada58c tests/clan_flake: fix fixture name
All checks were successful
build / test (push) Successful in 12s
2023-07-28 13:47:32 +02:00
1834070c8d update envrc if flake-module.nix was changed 2023-07-28 13:45:50 +02:00
81615939ea clan-cli: also add dev dependencies to PYTHONPATH
All checks were successful
build / test (push) Successful in 12s
2023-07-28 13:04:02 +02:00
29c711db30 add clan_flake fixture to setup a temporary clan
All checks were successful
build / test (push) Successful in 12s
2023-07-28 12:54:49 +02:00
88a2c2656a get_clan_flake_toplevel: fix check
All checks were successful
build / test (push) Successful in 12s
2023-07-28 12:36:01 +02:00
5e5fbfcf06 write test for get_clan_flake_toplevel 2023-07-28 10:22:25 +00:00
df6e94b20e move environment to helpers module
This fixes registering pytest plugins
2023-07-28 10:22:25 +00:00
282307ca2a cli: explicitly list clan_cli package 2023-07-28 10:22:25 +00:00
4101b9adb4 introduce ClanError type
All checks were successful
build / test (push) Successful in 12s
2023-07-27 15:47:15 +02:00
b4ba9c70cd move moc_env to module 2023-07-26 15:22:52 +02:00
a61d0c5a42 add dirs module to get toplevel flake and configuration dir 2023-07-26 14:34:39 +02:00
20dc480123 add tty module to color text 2023-07-26 14:33:15 +02:00
d516b449e8 clan-cli: add bin wrapper
All checks were successful
build / test (push) Successful in 13s
2023-07-26 10:59:18 +02:00
38222cee58 cli: make it more clear what optional deps are 2023-07-26 07:37:24 +00:00
09cc79867d cli: get optional deps from our own flake
All checks were successful
build / test (push) Successful in 10s
This ensures we actually test if all those binaries build
2023-07-26 09:31:49 +02:00
ed474457b3 drop executable bit on cli packages 2023-07-26 09:31:49 +02:00
83005a6795 cli: use nixpkgs in nix shell in pure mode
This avoids nixpkgs config and overlay provided by the user.
Also enables caching in nix.
2023-07-26 09:31:49 +02:00
88e85cdbbe clan-cli/envrc: disable remote builders 2023-07-26 06:53:33 +00:00
3d14039474 using flakes for devshell without reimporting nixpkgs multiple times 2023-07-26 06:53:33 +00:00
72f6b368d6 cli: resolve CLAN_NIXPKGS on every invocation
this makes mocking easier
2023-07-26 06:53:33 +00:00
9aa75336b7 cli: use nix_shell also in ssh.py 2023-07-26 06:53:33 +00:00
409e5d459c zerotier: move nix_shell to external package
All checks were successful
build / test (push) Successful in 14s
2023-07-26 08:04:46 +02:00
821ff71e4a pytest: actually fail build
All checks were successful
build / test (push) Successful in 13s
2023-07-25 19:13:24 +02:00
a6e8e08dec add module to generate zerotier configuration 2023-07-25 19:13:24 +02:00
944c53c214 drop duplicate clan-ruff and clan-black checks
we already test this with treefmt
2023-07-25 18:55:31 +02:00
e4af29d0b4 disable 100% coverage enforcement 2023-07-25 18:55:30 +02:00
e56b86f8b2 clan-cli: remove coverage exclusion for qrcode_scan
All checks were successful
build / test (push) Successful in 14s
2023-07-25 15:48:01 +02:00
1183ac9618 clan-cli: format
All checks were successful
build / test (push) Successful in 14s
2023-07-25 15:43:45 +02:00
2a31d785cf clan-cli: add checks for black and ruff 2023-07-25 15:43:26 +02:00
310bdacb9d clan-cli/ssh: add tests + fixes 2023-07-25 15:16:05 +02:00
202e07d5fe clan-cli: hint on how to get coverage html
Some checks failed
build / test (push) Failing after 13s
2023-07-25 00:59:51 +02:00
c354157bd5 clan-cli: minor fixes in ssh.py 2023-07-25 00:59:03 +02:00
a3bcb93f2f clan-cli: split out ssh subcommand, add more tests 2023-07-24 21:15:39 +02:00
c8e59471a0 flake.nix: set clan-cli as default package
Some checks failed
build / test (push) Failing after 13s
2023-07-24 17:42:26 +02:00
4571b65123 clan-cli: set mainProgram name 2023-07-24 17:42:26 +02:00
09bc5b06c9 clan-cli: add ssh subcommand 2023-07-24 17:42:26 +02:00
291b353d9c clan-cli: actually run commands 2023-07-24 17:42:26 +02:00
0b654c7434 apply treefmt
All checks were successful
build / test (push) Successful in 11s
2023-07-21 14:11:46 +02:00
DavHau
7223b25ac6 clan-cli: fix tests
Some checks failed
build / test (push) Failing after 4s
2023-07-21 14:07:38 +02:00
DavHau
f370635518 python: fix dev shell command check
Some checks failed
build / test (push) Failing after 3s
2023-07-21 13:51:56 +02:00
e4ccd85848 clan-cli: fix tests
Some checks failed
build / test (push) Failing after 3s
2023-07-21 13:51:10 +02:00
b7cf89dba8 clan-cli: add missing typing 2023-07-21 13:50:46 +02:00
DavHau
e806b5549d clan-cli: enable mypy for tests
Some checks failed
build / test (push) Failing after 8s
2023-07-21 13:43:29 +02:00
054ac3f624 clan-cli: make mypy it's own derivation
parallelize ci more.
2023-07-21 13:31:14 +02:00
7f937077cf clan-cli/tests: fixup imports 2023-07-21 13:30:49 +02:00
3ce01871e5 fix black and ruff checks 2023-07-21 13:03:51 +02:00
926de547e2 clan-cli/tests: reformat 2023-07-21 12:48:26 +02:00
0bf3f42812 clan-cli: restructure according to python's module standard 2023-07-21 12:47:47 +02:00
73dbad0167 clan-cli: drop duplicate entrypoint
not sure what's the use case of multiple main function is
2023-07-21 11:30:38 +02:00
3ab90e6785 add deadnix to formatter 2023-07-21 11:25:24 +02:00
22849366d8 apply ruff autoformatting 2023-07-21 11:22:02 +02:00
e4fbb08f91 make argcomplete optional
In case someone ever messes up the PYTHONPATH this will gracefull degrade
2023-07-21 11:19:03 +02:00
DavHau
4c4ff01b64 clan-cli: write some unit tests 2023-07-21 11:19:03 +02:00
DavHau
a0701bf988 clan-cli: expose via flake packages 2023-07-21 11:19:03 +02:00
DavHau
af7e4d7bb9 clan-cli: shell completion for bash, zsh, fish 2023-07-21 11:19:03 +02:00
DavHau
1e5cce99a9 clan-cli: manage sub-commands via python argparse 2023-07-21 11:19:03 +02:00
DavHau
95df33e2bc clan-cli: rename clan-admin.py -> clan_admin.py 2023-07-21 11:19:03 +02:00
DavHau
b34141283f clan-cli: fix mypy 2023-07-21 11:19:03 +02:00
DavHau
9906d12384 clan-cli: initialize python project from template
clan-cli: remove unnecessary unit test file

clan-cli: fix shell.nix too stateful

clan-cli: remove conftest.py

clan-cli: fix flake-module.nix
2023-07-21 11:19:03 +02:00
9aaac528f8 switch from alejandra -> nixpkgs-fmt
alejandra has someone questionable choices for formatting that no one would apply to there code if they would format manually.
nixpkgs-fmt seems to produce more readable results.
2023-07-21 11:15:28 +02:00
e3af3e9fb6 pkgs.clan: init barebones version 2023-07-17 18:53:29 +02:00
DavHau
5d04a17ecd treewide: format all files 2023-07-12 19:50:23 +02:00
29cd36d916 pkgs: init go-ssb 2023-07-11 17:19:24 +02:00