Commit Graph

3418 Commits

Author SHA1 Message Date
Johannes Kirschbauer
018f18a93e Inventory: fix roles config 2024-07-15 15:59:59 +02:00
Jörg Thalheim
8e7a34af0d inventory: allow per role configuration 2024-07-15 13:43:43 +02:00
Jörg Thalheim
f6d30b4154 webview: restrict what links can be browsed 2024-07-15 12:54:49 +02:00
Jörg Thalheim
3b7bc61bc7 docs/clan-app: add missing npm install 2024-07-15 12:52:28 +02:00
clan-bot
3ab1b1c0cc Merge pull request 'docs: fix flash example' (#1745) from joerg-ci into main 2024-07-15 09:57:10 +00:00
Jörg Thalheim
04a0570017 docs: fix flash example 2024-07-15 11:53:25 +02:00
Luis Hebendanz
82914f6919 Merge pull request 'docs: move blog to end of navigation' (#1744) from fricklerhandwerk/clan-core:move-blog-nav into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/1744
2024-07-15 09:17:55 +00:00
Valentin Gagarin
b7f877679b docs: move blog to end of navigation
documentation users will be here primarily because of onboarding tutorials and
reference documentation.
2024-07-15 11:03:14 +02:00
clan-bot
5347f26dd4 Merge pull request 'Automatic flake update - 2024-07-15T00:00+00:00' (#1742) from flake-update-2024-07-15 into main 2024-07-15 00:07:45 +00:00
Clan Merge Bot
688d21c13e update flake lock - 2024-07-15T00:00+00:00
Flake lock file updates:

• Updated input 'disko':
    'github:nix-community/disko/64679cd7f318c9b6595902b47d4585b1d51d5f9e' (2024-07-04)
  → 'github:nix-community/disko/786965e1b1ed3fd2018d78399984f461e2a44689' (2024-07-11)
• Updated input 'nixos-images':
    'github:nix-community/nixos-images/f8650460d37d9d1820a93ebb7f0db5b6c3621946' (2024-07-04)
  → 'github:nix-community/nixos-images/5eddae0afbcfd4283af5d6676d08ad059ca04b70' (2024-07-11)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/60a94e515488e335bd5bce096431d490486915e3' (2024-07-07)
  → 'github:NixOS/nixpkgs/0af9d835c27984b3265145f8e3cbc6c153479196' (2024-07-14)
• Updated input 'sops-nix':
    'github:Mic92/sops-nix/c184aca4db5d71c3db0c8cbfcaaec337a5d065ea' (2024-07-07)
  → 'github:Mic92/sops-nix/0703ba03fd9c1665f8ab68cc3487302475164617' (2024-07-14)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/6fc8bded78715cdd43a3278a14ded226eb3a239e' (2024-07-08)
  → 'github:numtide/treefmt-nix/b92afa1501ac73f1d745526adc4f89b527595f14' (2024-07-14)
2024-07-15 00:00:23 +00:00
clan-bot
1e8f146939 Merge pull request 'Doc: write inventory documentation' (#1741) from hsjobeki/clan-core:hsjobeki-main into main 2024-07-14 14:46:12 +00:00
Johannes Kirschbauer
d77f722769 Doc: write inventory documentation 2024-07-14 16:42:27 +02:00
clan-bot
8362d59c3c Merge pull request 'Json-schema: extend interface by header to allow schema spec and arbitrary extensions' (#1740) from hsjobeki/clan-core:hsjobeki-main into main 2024-07-14 13:06:08 +00:00
Johannes Kirschbauer
c43c4ef067 Fix schema test 2024-07-14 15:02:32 +02:00
Johannes Kirschbauer
96e7d93e01 Fix schema test 2024-07-14 13:38:43 +02:00
Johannes Kirschbauer
c03b667df4 Inventory: fix narrow pattern 2024-07-14 13:34:50 +02:00
Johannes Kirschbauer
aff06d3f4d Remove unneeded special args 2024-07-14 13:31:58 +02:00
Johannes Kirschbauer
d49a23b890 Inventory: generate exact schema for validation & documentation 2024-07-14 13:30:02 +02:00
Johannes Kirschbauer
77577a9f27 Json-schema: extend interface by header to allow schema spec and arbitrary extensions 2024-07-14 13:29:19 +02:00
clan-bot
76a6111764 Merge pull request 'clan-cli: Fix missing allowed-programs.json in package' (#1739) from Qubasa/clan-core:Qubasa-main into main 2024-07-14 11:12:27 +00:00
Qubasa
a3715280bc clan-cli: Fix missing allowed-programs.json in package 2024-07-14 13:07:24 +02:00
clan-bot
d5df368cf6 Merge pull request 'sshd: remove cve workaround again' (#1738) from Mic92-debug-facts into main 2024-07-13 06:24:08 +00:00
Jörg Thalheim
2e1ed9946f sshd: remove cve workaround again 2024-07-13 08:19:09 +02:00
clan-bot
f56fd1a9bc Merge pull request 'Webview: add clanList edit' (#1737) from hsjobeki/clan-core:hsjobeki-main into main 2024-07-11 16:49:04 +00:00
Johannes Kirschbauer
e7efce5c66 Webview: add clanList edit 2024-07-11 18:45:35 +02:00
clan-bot
55ac5553c1 Merge pull request 'Clan create: migrate to inventory' (#1732) from hsjobeki/clan-core:hsjobeki-main into main 2024-07-11 15:09:24 +00:00
Johannes Kirschbauer
473a21f1d8 Fix some type issues 2024-07-11 17:05:57 +02:00
Johannes Kirschbauer
24203666d1 Webview: add welcome workflow 2024-07-11 16:39:06 +02:00
Johannes Kirschbauer
8e88676d51 Webview: Add async method handling 2024-07-11 16:39:06 +02:00
Johannes Kirschbauer
255f33f40b Clan create: add template url field 2024-07-11 16:39:06 +02:00
Johannes Kirschbauer
b8e5a3fd4c Webview: add feeback for clan create workflow 2024-07-11 16:39:06 +02:00
Johannes Kirschbauer
f1dece0c04 Webview: improve error debug abilities 2024-07-11 16:39:06 +02:00
Johannes Kirschbauer
3c86f0a327 API: improve json serialization 2024-07-11 16:39:06 +02:00
Johannes Kirschbauer
4c4f55f309 Clan create: migrate to inventory 2024-07-11 16:39:06 +02:00
clan-bot
c23b44c4f3 Merge pull request 'vars: implement sops.defaultGroups' (#1735) from DavHau/clan-core:DavHau-vars into main 2024-07-11 11:43:13 +00:00
DavHau
053e61e3f0 vars: implement sops.defaultGroups 2024-07-11 18:39:29 +07:00
clan-bot
11e705817b Merge pull request 'clan-cli: improve runtime dependency management' (#1733) from DavHau/clan-core:DavHau-vars into main 2024-07-11 08:38:27 +00:00
DavHau
430adc875a clan-cli: improve runtime dependency management
Many dependencies of clan-cli  are currently dynamically loaded via nix-shell on each execution.
This is nice, as it reduces the initial closure size of clan, but the overhead introduced by nix-shell piles up quickly, as some commands shell out many times during their lifetime. For example, when adding a secret git is called 10+ times.

This reduces the time of a test which adds a secret from around 50 seconds to 15 seconds.

- add run_cmd() as an alternative to nix_shell()
- introduce the concept of static dependencies which do not need to go through nix-shell
- static dependencies are defined at build time and included into the wrapper for clan-cli
- add package: clan-cli-full which statically ships all required dependencies

TODO: deprecate nix_shell() in favor of run_cmd()
2024-07-11 15:34:41 +07:00
clan-bot
6d33c195d9 Merge pull request 'vars: implement secret generation' (#1731) from DavHau/clan-core:DavHau-vars into main 2024-07-11 04:42:28 +00:00
DavHau
7dbed61079 vars: implement secret generation 2024-07-11 11:37:17 +07:00
clan-bot
2a245a6111 Merge pull request 'clan-cli: simplify cli helper' (#1726) from DavHau/clan-core:DavHau-dave into main 2024-07-10 11:18:48 +00:00
DavHau
4898706480 clan-cli: simplify cli helper 2024-07-10 18:14:06 +07:00
clan-bot
18b4a7e237 Merge pull request 'UI: improve open clan from directory & list machines' (#1728) from hsjobeki/clan-core:hsjobeki-feat/clan-init into main 2024-07-10 09:15:58 +00:00
Johannes Kirschbauer
fe99b79c63 UI: improve open clan from directory & list machines 2024-07-10 11:08:03 +02:00
clan-bot
65a7614497 Merge pull request 'UI: init flash poc' (#1727) from hsjobeki/clan-core:hsjobeki-feat/clan-init into main 2024-07-10 09:07:09 +00:00
Johannes Kirschbauer
44d2f58c47 UI: init flash poc 2024-07-10 09:43:18 +02:00
clan-bot
9407902398 Merge pull request 'clan-app: Add webview hot-reloading' (#1724) from Qubasa/clan-core:Qubasa-main into main 2024-07-09 14:00:10 +00:00
Qubasa
8dce893a3b fixup! clan-app: Add webview hot-reloading 2024-07-09 15:55:22 +02:00
Qubasa
cfde5fa2f8 clan-app: Add webview hot-reloading 2024-07-09 15:39:33 +02:00
clan-bot
76e7e1f50f Merge pull request 'lib.readFact: fix argument order' (#1723) from Mic92-debug-facts into main 2024-07-09 13:28:22 +00:00