Louis Opter
b52ec05497
clan-cli: don't try to delete a dir that doesn't exist in the pass vars backend
...
Do not crash in `delete_store`, if the machine has no vars, or the store
has been deleted already.
2025-03-19 10:53:38 +00:00
Louis Opter
4120a89115
clan-cli: do not crash if a machine being deleted is missing from the inventory
...
We implement that by actually raising `KeyError` in `inventory.delete_by_path`
(as advertised in the docstring), since it makes more sense to catch a
`KeyError` than a generic `ClanError`.
2025-03-19 10:53:38 +00:00
Louis Opter
cd248b69db
clan-cli: machines delete: delete the machine's vars and secrets
...
When a machine is deleted with `clan machines delete`, remove its
vars and legacy secrets, and update any secrets that reference the
machine's key.
This command is a superset of `clan secrets machine delete`, and I am
wondering if we could remove the `clan secrets machine` subcommand,
unless there is an use case for having a machine defined without its
key, and any secrets/vars?
Note:
- This deletes the `ListSecretsOptions` dataclass, as it did not seem to
bring any value, especially since `list_secrets` was receiving its
individual members instead of the whole dataclass. We can always bring
it back if complexity grows to demand it.
2025-03-19 10:53:38 +00:00
Louis Opter
f7bec766bc
clan-cli: add delete and delete_store to StoreBase
...
- `delete` lets you delete a specific var under a specific generator;
- `delete_store` deletes an entire store.
The `delete` method could be useful to "garbage-collect" unused vars as
a machine's configuration changes.
The `delete_store` method can be used to delete all the vars for a
machine when the machine is deleted. The current behavior is to leave
everything behind.
Important point:
- `delete_store` needs to be idempotent because public and
"private"/"secret" vars for a machine can share the same physical
store (directory), and deleting either type of store (public or
private) will delete both.
2025-03-19 10:53:38 +00:00
Louis Opter
77b53a366e
clan-cli: add an integration test for clan machines delete
...
This tests the changes made to that command to clean-up vars and secrets
when a machine is deleted.
2025-03-19 10:53:38 +00:00
Louis Opter
37869839cf
clan-cli: tests/age_keys.py add notes, move function to check sops recipients
...
This supports the new integration test for `clan machines delete`.
2025-03-19 10:53:38 +00:00
Jörg Thalheim
b84230ff90
deduplicate CLAN_CORE/CLAN_CORE_PATH environment variables
2025-03-19 10:30:52 +00:00
Qubasa
63a0e5f35d
clan-cli: Fix templates not downloading template, Make templates use Flake cache, Fix flake cache exception on conditional attribute, add more tests
2025-03-19 10:30:52 +00:00
renovate[bot]
774223aabb
chore(deps): lock file maintenance
2025-03-18 23:10:46 +00:00
Jörg Thalheim
527154070c
use pathlib.iterdir() everywhere
2025-03-18 15:34:06 +01:00
Mic92
31f66ae004
Merge pull request 'chore(deps): update dependency typescript to v5.8.2' ( #3058 ) from typescript into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3058
2025-03-18 14:00:32 +00:00
Jörg Thalheim
28c2e5654c
remove unused typescript directive
2025-03-18 14:52:22 +01:00
Jörg Thalheim
51e93b9296
prune npm deps
2025-03-18 14:43:30 +01:00
Jörg Thalheim
60ffaed9ab
address eslint warnings
2025-03-18 14:40:16 +01:00
renovate[bot]
fc10c36bfb
chore(deps): update typescript-eslint monorepo to v8
2025-03-18 14:26:21 +01:00
renovate[bot]
16e2993f8f
chore(deps): update dependency eslint to v9
2025-03-18 14:26:19 +01:00
Mic92
0dbc7b4adc
Merge pull request 'cli: increase timeout for pytest' ( #3056 ) from ci into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3056
2025-03-18 13:18:09 +00:00
renovate[bot]
ddf0f64ab8
chore(deps): update dependency typescript to v5.8.2
2025-03-18 13:10:11 +00:00
Mic92
9c3e985491
Merge pull request 'fix(deps): update dependency @solid-primitives/storage to v4' ( #3046 ) from renovate/solid-primitives-storage-4.x into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3046
2025-03-18 13:08:51 +00:00
Mic92
49f3428d68
Merge pull request 'chore(deps): update dependency vitest to v3' ( #3044 ) from renovate/major-vitest-monorepo into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3044
2025-03-18 13:07:47 +00:00
Jörg Thalheim
d9c3cc8c68
cli: increase timeout for pytest
2025-03-18 14:04:43 +01:00
renovate[bot]
74e0c822c5
fix(deps): update dependency @solid-primitives/storage to v4
2025-03-18 12:50:42 +00:00
renovate[bot]
1bd85fabc2
chore(deps): update dependency vitest to v3
2025-03-18 12:50:30 +00:00
renovate[bot]
51ec78c155
chore(deps): update dependency @types/node to v22
2025-03-18 12:50:14 +00:00
renovate[bot]
1b7b4986d2
fix(deps): update tanstack-query monorepo
2025-03-18 12:10:39 +00:00
renovate[bot]
ffef796e31
fix(deps): update dependency nanoid to v5.1.4
2025-03-18 12:00:33 +00:00
renovate[bot]
04cae9d42a
chore(deps): update dependency vite to v6
2025-03-18 11:40:34 +00:00
renovate[bot]
6cec48e93b
chore(deps): update dependency jsdom to v26
2025-03-12 15:01:24 +00:00
renovate[bot]
61a38987eb
fix(deps): update tanstack-query monorepo
2025-03-12 12:12:37 +00:00
renovate[bot]
2d77985321
fix(deps): update dependency nanoid to v5.1.3
2025-03-12 12:01:17 +00:00
renovate[bot]
1141ce6e39
fix(deps): update dependency @solidjs/router to ^0.15.0
2025-03-12 11:12:36 +00:00
renovate[bot]
e82d05edd8
fix(deps): update dependency @solid-primitives/storage to v3.8.0
2025-03-12 11:01:19 +00:00
renovate[bot]
fa85bb1aee
chore(deps): update typescript-eslint monorepo to v7.18.0
2025-03-12 10:12:37 +00:00
renovate[bot]
470029cc33
fix(deps): update dependency @modular-forms/solid to ^0.25.0
2025-03-12 09:22:33 +00:00
renovate[bot]
59cd0c5367
chore(deps): update eslint monorepo
2025-03-12 09:12:38 +00:00
renovate[bot]
c0415ed784
chore(deps): update dependency vite-plugin-solid to v2.11.6
2025-03-12 09:01:19 +00:00
renovate[bot]
4587c15f58
chore(deps): update dependency vite to v5.4.14
2025-03-12 08:02:36 +00:00
renovate[bot]
80fce9bbcc
chore(deps): update dependency solid-devtools to ^0.33.0
2025-03-12 07:52:35 +00:00
renovate[bot]
a99f3d05fd
chore(deps): update dependency vitest to v1.6.1
2025-03-12 07:42:29 +00:00
renovate[bot]
fe6280dba9
chore(deps): update dependency eslint-plugin-tailwindcss to v3.18.0
2025-03-12 07:32:34 +00:00
renovate[bot]
cef6a1d85f
chore(deps): update dependency daisyui to v4.12.24
2025-03-12 07:12:43 +00:00
renovate[bot]
27b544f7fb
chore(deps): update dependency prettier to v3.5.3
2025-03-12 07:01:20 +00:00
renovate[bot]
56bc1653e1
chore(deps): update dependency tailwindcss to v3.4.17
2025-03-12 05:52:38 +00:00
renovate[bot]
9ca10aba18
fix(deps): update dependency material-icons to v1.13.14
2025-03-12 05:42:37 +00:00
renovate[bot]
e9e8952178
fix(deps): update dependency corvu to v0.7.2
2025-03-12 05:32:47 +00:00
renovate[bot]
faa79b87b2
fix(deps): update dependency solid-markdown to v2.0.14
2025-03-12 05:12:55 +00:00
renovate[bot]
b3e7755365
chore(deps): update dependency @types/node to v20.17.24
2025-03-12 05:01:29 +00:00
renovate[bot]
b315b1787b
chore(deps): update dependency jsdom to v24.1.3
2025-03-11 17:17:25 +00:00
renovate[bot]
15b4bc9658
chore(deps): update dependency autoprefixer to v10.4.21
2025-03-11 16:57:31 +00:00
Mic92
4f8a151a13
Merge pull request 'chore(deps): update dependency @tailwindcss/typography to v0.5.16' ( #3006 ) from renovate/tailwindcss-typography-0.x-lockfile into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3006
2025-03-11 15:39:10 +00:00