Johannes Kirschbauer
6d90a39747
get_machine: fix error message for not existing machine
2025-07-11 18:53:54 +02:00
Johannes Kirschbauer
615607730d
lib/copy: fix, copying the content of tempate directory, not the directory itself
2025-07-11 18:53:54 +02:00
Johannes Kirschbauer
480fdfaf8a
API: rename {open_file, open_clan_folder} into {get_system_file, get_clan_folder}
2025-07-10 18:42:03 +02:00
Johannes Kirschbauer
7f3292ceb0
Docs: improve api docs of {open_file, open_clan_folder}
2025-07-10 18:40:48 +02:00
Qubasa
695141b2ae
clan-app: Make http server non blocking, add tests for the http server and for cancelling tasks
2025-07-10 17:21:18 +07:00
Qubasa
dbb3e889e1
clan-lib: Fix @API.register_abstract not throwing correct error when called directly without implementation
...
clan-app: Fix mypy lint
clan-lib: Mark test as with_core
2025-07-10 15:09:51 +07:00
Qubasa
f3873683cc
clan_lib: Add test for check_valid_clan function
2025-07-10 14:20:02 +07:00
Qubasa
b1c3acb008
clan-app: Implement open_clan_folder api request
2025-07-10 14:19:19 +07:00
hsjobeki
73c74cb967
Merge pull request 'openapi: add strict top-level checking' ( #4280 ) from api-cleanup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4280
2025-07-09 15:24:45 +00:00
Johannes Kirschbauer
474a0a3f9d
api: rename {list_system_services_mdns, list_system_storage_devices}
2025-07-09 16:51:42 +02:00
Jörg Thalheim
f646890bb3
sandbox_exec: refactor to use context manager for cleanup
...
Changed sandbox_exec_cmd to return a context manager that automatically
handles profile file cleanup. This ensures the temporary profile is
always removed, even if exceptions occur.
2025-07-09 16:27:04 +02:00
lassulus
194647dc71
clan-cli: implement macOS sandboxing for vars generation using sandbox-exec
...
Adds macOS sandboxing support similar to Linux bubblewrap implementation:
- Created clan_lib/sandbox_exec module with sandbox profile creation
- Implemented file system isolation allowing only tmpdir and nix store access
- Added network restrictions (deny outbound except localhost)
- Integrated sandbox-exec command into vars generation on macOS
- Added comprehensive test suite for macOS sandbox functionality
- Fixed working directory handling for generators writing to CWD
2025-07-09 13:51:18 +02:00
Mic92
e12311ff3b
Merge pull request 'fix build host with sudo' ( #4267 ) from fix-sudo into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4267
2025-07-09 10:03:01 +00:00
Johannes Kirschbauer
186ce03e6d
api: rename run_blocking_task into run_task_blocking
2025-07-09 09:43:56 +02:00
hsjobeki
7096ed8959
Merge pull request 'API Improvements' ( #4276 ) from api-cleanup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4276
2025-07-08 21:17:12 +00:00
Johannes Kirschbauer
da04ab63b2
api/docs: sort resources into tree order
2025-07-08 23:06:20 +02:00
kenji
07f30928e6
Merge pull request 'refactor: decouple vars stores from machine instances' ( #4269 ) from davhau/vars-new into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4269
2025-07-08 18:11:03 +00:00
Johannes Kirschbauer
4beff2e023
api: rename 'run_machine_deploy' into 'run_machine_update'
2025-07-08 17:21:18 +02:00
Johannes Kirschbauer
3e295869cc
api/disk_schema: make getter consistent
2025-07-08 16:31:51 +02:00
Jörg Thalheim
a1ff5e3e5e
fix build host with sudo
2025-07-08 14:25:44 +02:00
DavHau
0aa6288edb
refactor: decouple vars stores from machine instances
...
Stores now get machine context from generator objects instead of storing
it internally. This enables future machine-independent generators and
reduces coupling.
- StoreBase.__init__ only takes flake parameter
- Store methods receive machine as explicit parameter
- Fixed all callers to pass machine context
2025-07-08 18:30:16 +07:00
Qubasa
0c54a0f6de
clan-app: Fix delete tasks
...
clan-app: Fix delete tasks
2025-07-08 18:11:59 +07:00
Qubasa
60263bac8a
clan-cli: Add verb 'cancel' to openapi
2025-07-08 17:43:14 +07:00
Qubasa
d8251dce2b
clan-app: Generalize architecture for API requests
2025-07-08 17:32:59 +07:00
Qubasa
389e726521
clan-app: Add plug and play middleware interface
2025-07-08 17:32:59 +07:00
Qubasa
152ac2c07e
clan-cli: Fix Ruff linting errors
...
clan-cli: Ruff fixes
ignore noqa lint
fix more ruff issues
2025-07-08 17:25:02 +07:00
Qubasa
ad243d843e
ruff: Ignore TRY301 'raise-within-try' as there are legitimate reasons to do this
2025-07-08 17:23:32 +07:00
Qubasa
f854c39292
clan-cli: Fix regression in ruff linter, where linter rules got overriden by local pyproject.toml
...
clan-app: Fix ruff regression where linter rules got overriden by local pyproject.toml
2025-07-08 17:23:32 +07:00
Johannes Kirschbauer
cfa22d2e74
create/clan: do initial commit
2025-07-07 15:50:00 +00:00
Johannes Kirschbauer
5d6a0c9883
templates: rename 'new_clan' to default
2025-07-07 15:50:00 +00:00
hsjobeki
ad997319fa
Merge pull request 'Docs: add missing documentation to api functions' ( #4243 ) from api-cleanup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4243
2025-07-07 14:02:08 +00:00
Johannes Kirschbauer
79321485c7
docs/api: add docstrings to {list_mdns_services, set_clan_details}
2025-07-07 15:47:14 +02:00
Johannes Kirschbauer
d0c6cfaed0
api: remove unused get_directory
2025-07-07 15:45:51 +02:00
Johannes Kirschbauer
b05e3cfb6b
docs/api: add docstrings to {run_machine_install,run_machine_deploy}
2025-07-07 15:41:02 +02:00
Johannes Kirschbauer
b409913229
docs/api: add docstrings to {check_machine_ssh_login}
2025-07-07 15:38:09 +02:00
Johannes Kirschbauer
7a21915931
docs/api: add docstrings to {delete_machine}
2025-07-07 15:36:16 +02:00
Johannes Kirschbauer
0699dd6fb3
docs/api: add docstrings to {get_clan_details}
2025-07-07 15:31:06 +02:00
Johannes Kirschbauer
35cf84c96b
docs/api: add docstrings to {create_clan}
2025-07-07 15:29:19 +02:00
Johannes Kirschbauer
5d15ccbc72
api/machines: document {get_machine,get_machine_details}
2025-07-07 15:13:23 +02:00
hsjobeki
0532284387
Merge pull request 'api/generators: remove term 'vars' interact purely with 'generators'' ( #4242 ) from api-cleanup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4242
2025-07-07 13:04:00 +00:00
Johannes Kirschbauer
aacc6dfad8
api/check_machine_ssh_reachable: add function docs
2025-07-07 15:02:35 +02:00
Johannes Kirschbauer
67973d1382
api: expose docstring as function description
2025-07-07 14:51:15 +02:00
Johannes Kirschbauer
cc0382fb57
api/tasks: rename 'cancel_task' into 'delete_task'
2025-07-07 14:07:53 +02:00
Johannes Kirschbauer
fcef864ee3
api/hw: rename 'describe_machine_hardware' into 'get_machine_hardware_summary'
2025-07-07 14:05:57 +02:00
Johannes Kirschbauer
5b6f5e812b
api/hw: rename generate_machine_hardware_info into 'run'
2025-07-07 14:04:39 +02:00
Johannes Kirschbauer
fcc3387332
api/generators: remove term 'vars' interact purely with 'generators'
2025-07-07 13:59:12 +02:00
hsjobeki
7001a82196
Merge pull request 'api/tasks: prefix impure actions with run' ( #4239 ) from api-cleanup into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4239
2025-07-07 11:28:07 +00:00
Johannes Kirschbauer
6560738502
api/machine checks: rename, add checkResult
2025-07-07 13:13:00 +02:00
hsjobeki
5750f4bbe7
Merge pull request 'machine/host: degrade into info and add docs' ( #4238 ) from host-info into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4238
Reviewed-by: Luis Hebendanz <consulting@qube.email >
2025-07-07 11:10:05 +00:00
Johannes Kirschbauer
19d86cc431
api/clan: rename 'update_clan_meta' -> 'set_clan_details'
2025-07-07 12:51:32 +02:00