pinpox
ae5712229c
Fix python linter errors
2025-10-23 12:04:56 +02:00
pinpox
5a5633d779
Merge pull request 'Add meta.tld clan option' ( #5619 ) from add-tld into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/5619
2025-10-22 14:19:16 +00:00
Qubasa
51141772b3
clan_lib: Add llm integration tests
2025-10-22 15:36:11 +02:00
Qubasa
58b88e874f
clan_lib: Add llm unit tests
2025-10-22 15:36:11 +02:00
Qubasa
5fb616efb4
clan_lib: Add llm container test data
2025-10-22 15:36:11 +02:00
Qubasa
6c6afd6f4b
clan_lib: Move llm.py out of clan_lib/services towards it's own clan_lib/llm folder
2025-10-22 15:36:11 +02:00
Qubasa
4010953041
clan_lib: Add llm api
2025-10-22 15:36:11 +02:00
Luis Hebendanz
6b74c66292
Merge pull request 'clan-cli: Make select query reproducible, by sorting select keys' ( #5625 ) from Qubasa/clan-core:repro_select into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/5625
2025-10-22 13:04:01 +00:00
Qubasa
f86b0ec3da
clan-cli: Make select query reproducible, by sorting select keys
2025-10-22 14:56:07 +02:00
Qubasa
c7ec9a9715
clan-cli: Add support for ForwardRef type in type_to_jsonschema and tests
2025-10-22 14:45:04 +02:00
pinpox
9299cd9666
Add tld
2025-10-22 12:40:09 +02:00
Mic92
5b399fd447
Merge pull request 'vars: respect deploy flag for shared secrets' ( #5572 ) from oneingan/clan-core:vars-no-deploy into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/5572
2025-10-20 15:37:03 +00:00
pinpox
dcd7b6a8a2
Replace depracated --fast nix option
...
The option is throwing a deprecation warning on current nix versions.
See for details: https://github.com/NixOS/nixpkgs/issues/417609#issuecomment-2981327326
2025-10-19 12:45:27 +02:00
Juanjo Presa
c7cee905d1
vars: respect deploy flag for shared secrets
2025-10-18 23:09:31 +02:00
Luis Hebendanz
9821e39b06
Merge pull request 'clanServices: add warning if manifest.readme is not set' ( #5537 ) from Qubasa/clan-core:fix_manifest_readmes into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/5537
2025-10-16 17:12:46 +00:00
Qubasa
2ac65b9c83
clan_lib/modules.py: get_service_readmes now logs an error if the readme is empty
2025-10-16 19:07:49 +02:00
Johannes Kirschbauer
17c35c4259
persistence: align some more variable names
2025-10-16 13:04:24 +02:00
Johannes Kirschbauer
727474055e
persistence: invert all writeability logic into not readonly
2025-10-16 13:01:34 +02:00
Johannes Kirschbauer
892cb1baae
inventoryStore: invert writeability terms to readonly
2025-10-16 13:00:21 +02:00
Johannes Kirschbauer
5eb6b703f0
inventoryStore: align class names and methods
2025-10-16 12:50:54 +02:00
Johannes Kirschbauer
d78dca47e2
modules: update service test
2025-10-16 12:42:49 +02:00
Johannes Kirschbauer
8254d197f0
api: persistence allow path prefix
2025-10-16 12:42:45 +02:00
Johannes Kirschbauer
a4839f9cf2
api: persistence, fix regressions
2025-10-16 11:57:38 +02:00
Johannes Kirschbauer
a32a5151dc
api: remove unused validation method
2025-10-15 16:19:21 +02:00
Johannes Kirschbauer
16d245b179
api: check deletions if possible
2025-10-15 16:15:54 +02:00
Qubasa
867fa5140b
clan_lib: Add get_service_readmes api function
...
Returns the README.md for one or multiple clan services, needed for the
clan ai feature
2025-10-14 18:54:22 +02:00
Qubasa
2b616575e1
service_runner: Fix starting a service twice
2025-10-14 17:32:21 +02:00
Qubasa
3f07f6ac79
service_runner: add grouping feature
2025-10-14 17:32:21 +02:00
Qubasa
c6b0b114c5
clan_lib: init platform independent service_runner
2025-10-14 17:31:37 +02:00
hsjobeki
8803343ae1
Merge pull request 'persistence: generate properties for data by traversing data' ( #5502 ) from persistence_attributes into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/5502
2025-10-14 15:27:10 +00:00
Johannes Kirschbauer
8609538756
clan_lib: allow explicit readonly access to inventory attributes
2025-10-14 17:21:39 +02:00
pinpox
42e3fea9e5
clanServices: add desktop module
2025-10-14 16:02:20 +02:00
Johannes Kirschbauer
0c245f8eda
persistence: generate properties for data by traversing data
2025-10-14 14:51:06 +02:00
Qubasa
23008d1f73
openapi: Add a test for TypeAliasing
2025-10-14 12:06:04 +02:00
Qubasa
f1747079c8
clan_cli: Add typeAlias support for api.py
2025-10-14 11:30:48 +02:00
hsjobeki
d9f6b7e3fb
Merge pull request 'api: prepare persistence_attributes' ( #5453 ) from persistence_attributes into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/5453
2025-10-13 15:23:03 +00:00
Johannes Kirschbauer
40de60946a
api: migrate to use persistence attributes everywhere
2025-10-13 17:04:01 +02:00
Michael Hoang
46f746d09c
cli: fix installation test with latest release of nixos-anywhere
2025-10-13 15:06:20 +02:00
DavHau
bf41a9ef00
vars/sops: stop writing on clan vars check
...
This fixes an issue where check_vars() would add machine keys or authorize machines for shared vars.
These write operations should only ever be done on a `clan vars generate`, which `clan vars check` should be a read-only operation
2025-10-13 18:43:49 +07:00
Johannes Kirschbauer
63fdc13928
persist: add attributes props to accumulator
2025-10-12 17:45:14 +02:00
Johannes Kirschbauer
c13879ce69
persist: rename write map to attribute map
2025-10-12 17:45:14 +02:00
Johannes Kirschbauer
f57bc30c5a
persist/writeability: rename non_writeable to readonly
2025-10-12 17:45:14 +02:00
Michael Hoang
bc09d5c886
cli: ensure init-hardware-config passes Nix options to nixos-anywhere
2025-10-10 17:00:10 +02:00
DavHau
fd5d7934a0
vars: refactor - make shared generators carry machines list
...
This should make it simpler to improve the implementation of granting a new machine access to a shared secret.
The current approach using the health_check is pretty hacky
2025-10-09 15:41:04 +07:00
DavHau
744f35e0cc
vars: cleanup + fix wording
2025-10-09 07:38:00 +02:00
DavHau
da6cd324f0
Merge pull request 'vars/performance: aggregate selects over all machines and generators' ( #5402 ) from dave into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/5402
2025-10-08 06:04:50 +00:00
DavHau
c5b96df7b0
vars/performance: aggregate selects over all machines and generators
...
This improves the performance of deployment, by aggregating uncached select calls for vars generate into two batches.
batch 1: Get all generators of all machines
batch 2: get all final scripts for generators which need to run
2025-10-08 13:00:20 +07:00
Jörg Thalheim
204f9d09e3
network: refactor get_best_remote to class-based context manager
...
Resolves the "RuntimeError: generator didn't stop after throw()" issue
by replacing the generator-based @contextmanager with an explicit class.
This maintains backward compatibility through a factory function.
2025-10-07 13:05:20 +02:00
Jörg Thalheim
10ed2cc7f7
sops: don't leak secret key in debug logs
2025-10-07 11:31:12 +02:00
DavHau
43b1744528
tests: disable state-version generation in all python tests
...
This improves the performance of tests, as there are less vars operations to perform.
2025-10-06 17:08:42 +07:00