498d29cca1
clan-cli: fix clan ssh
--json
and --png
...
This fixes `clan ssh` with the `--json` and `--png` flags.
It will now correctly use the actual fields that are present in the
generated json.
- probes if the ports are accessible
- if accessible will attempt a single ssh connection with the provided
password, in order to not spam ssh attempts
Fixes #1177
2024-04-17 10:12:37 +00:00
dcad0d0d79
include machine name when generating secrets
checks / checks-impure (pull_request) Successful in 1m51s
checks / checks (pull_request) Successful in 4m19s
2024-04-15 22:17:53 +02:00
f385e0e037
refactor facts command to regenerate facts for all machines
2024-04-15 22:14:54 +02:00
fff810ed43
clan-cli: fix typos
checks / checks (pull_request) Successful in 2m22s
checks / check-links (pull_request) Successful in 14s
checks / checks-impure (pull_request) Successful in 1m45s
2024-04-12 17:40:54 +02:00
b3522b73aa
fix case when secrets are regenerated during update/install
checks / check-links (pull_request) Successful in 14s
checks / checks-impure (pull_request) Successful in 1m53s
checks / checks (pull_request) Successful in 4m11s
2024-04-12 14:46:51 +02:00
d292f2de98
docs: fix unsupported languages
checks / check-links (pull_request) Failing after 27s
checks / checks-impure (pull_request) Successful in 1m47s
checks / checks (pull_request) Successful in 3m55s
2024-04-10 18:40:51 +02:00
fc73301ed9
vms/run.py: refactor use kwargs instead of dataclass for function args
checks / check-links (pull_request) Successful in 14s
checks / checks-impure (pull_request) Successful in 1m54s
checks / checks (pull_request) Successful in 4m10s
2024-04-09 14:30:46 +07:00
91dddc2281
Fix merge issue
checks / check-links (pull_request) Successful in 14s
checks / checks-impure (pull_request) Successful in 1m53s
checks / checks (pull_request) Failing after 4m29s
2024-04-06 11:56:06 +02:00
a520116584
Improve documentation
2024-04-06 11:54:34 +02:00
818cc4d135
flash: expose mode option
2024-04-05 18:48:37 +02:00
f7077e3540
flash: improve prompt if no disk is specified
2024-04-03 12:00:02 +02:00
8b4dbc60b5
clan/install: drop -t flag from nixos-anywhere
checks / check-links (pull_request) Successful in 14s
checks / checks-impure (pull_request) Successful in 1m53s
checks / checks (pull_request) Successful in 4m12s
2024-04-02 13:50:24 +02:00
9bb4c8d094
clan-cli: add a check for the flatpak sandbox
...
checks / check-links (pull_request) Successful in 14s
checks / checks-impure (pull_request) Successful in 1m50s
checks / checks (pull_request) Successful in 4m17s
Allows for differentiation between sandbox and non sandbox usage.
2024-04-02 12:19:48 +02:00
16ae51105e
cli/secrets: show hint in --help on how to retrieve a key
checks / check-links (pull_request) Successful in 14s
checks / checks-impure (pull_request) Successful in 1m51s
checks / checks (pull_request) Successful in 4m10s
2024-04-02 14:36:01 +07:00
b10c4f5846
Merge pull request 'refactor clanCore.secrets -> clanCore.facts' ( #1040 ) from facts_refactor2 into main
checks / check-links (push) Successful in 14s
checks / checks-impure (push) Successful in 1m51s
checks / checks (push) Successful in 4m2s
2024-03-27 15:20:21 +00:00
a8d35d37e7
refactor clanCore.secrets -> clanCore.facts
checks / check-links (pull_request) Successful in 14s
checks / checks-impure (pull_request) Successful in 1m49s
checks / checks (pull_request) Successful in 3m33s
2024-03-27 16:03:16 +01:00
e6ad0cfbc1
clan-cli: Fix tmpdir leak and fix tests/temporary_dir inconsistencies
checks / check-links (pull_request) Successful in 14s
checks / checks-impure (pull_request) Successful in 1m50s
checks / checks (pull_request) Successful in 3m35s
2024-03-27 15:51:52 +01:00
80abeef994
Revert "ssh: add interactive flag"
...
checks / check-links (pull_request) Successful in 13s
checks / checks-impure (pull_request) Successful in 1m53s
checks / checks (pull_request) Successful in 3m58s
This reverts commit c5db14dea8
.
2024-03-26 13:13:35 +01:00
7b8a49bf6c
ssh: default tty to False
...
checks / check-links (pull_request) Successful in 14s
checks / checks-impure (pull_request) Successful in 1m50s
checks / checks (pull_request) Failing after 3m58s
nix behaves weird when the terminal is interactive because
we are also do line buffering.
2024-03-26 13:05:11 +01:00
c5db14dea8
ssh: add interactive flag
2024-03-26 12:51:46 +01:00
0e2cb172e6
cli/ssh: allocate tty by default
...
checks / checks (pull_request) Failing after 1m52s
checks / check-links (pull_request) Successful in 14s
checks / checks-impure (pull_request) Successful in 1m47s
-t is only enabled when the local ssh command is also connected to a tty,
so it seems to be enabled by default.
2024-03-26 12:07:15 +01:00
270f906412
fix casing in facts generate logs
2024-03-25 15:33:57 +01:00
a886fd9b2d
switch back to upstream waypipe
checks / check-links (pull_request) Successful in 13s
checks / checks-impure (pull_request) Successful in 1m53s
checks / checks (pull_request) Successful in 4m10s
2024-03-25 13:34:02 +01:00
0fa36252c2
re-encrypt secrets after rotating users/machines keys
checks / check-links (pull_request) Successful in 13s
checks / checks-impure (pull_request) Successful in 1m53s
checks / checks (pull_request) Successful in 4m5s
2024-03-25 12:34:29 +01:00
cd9db02db0
add hint to use --force when a key already exists
2024-03-25 11:06:20 +01:00
e26d1052b6
select-shell: Fix breakage with previous shell.nix change
checks / check-links (pull_request) Successful in 13s
checks / checks-impure (pull_request) Successful in 1m51s
checks / checks (pull_request) Successful in 4m11s
2024-03-25 00:32:03 +01:00
9dbc71e446
clan-vm-manager: devshell doesn't require clan-cli derivation
checks / check-links (pull_request) Successful in 14s
checks / checks-impure (pull_request) Successful in 1m50s
checks / checks (pull_request) Successful in 4m8s
2024-03-24 23:52:30 +01:00
5fd4a63e17
Merge pull request 'clan-vm-manager: Basic pytest framework established' ( #1026 ) from Qubasa-main into main
checks / check-links (push) Successful in 14s
checks / checks-impure (push) Successful in 1m52s
checks / checks (push) Successful in 4m11s
2024-03-24 22:41:07 +00:00
8ab9d20342
clan-vm-manager: Working pytest skeleton. clan-cli: Fixing devshell depending on itself
checks / check-links (pull_request) Successful in 14s
checks / checks-impure (pull_request) Successful in 1m53s
checks / checks (pull_request) Successful in 4m13s
2024-03-24 23:36:00 +01:00
f16667e25a
refactor secrets & facts -> secret_facts & public_facts
checks / check-links (pull_request) Successful in 14s
checks / checks (pull_request) Successful in 33s
checks / checks-impure (pull_request) Successful in 1m49s
2024-03-23 05:46:54 +01:00
539df08706
backups: skip preRestore and postRestore if not specified by a service
2024-03-20 09:32:01 +01:00
aa659bcc17
backups: no longer interpret backup interface as bash commands
2024-03-20 09:32:01 +01:00
92ac151292
rework backup interface to no longer need to list backups to restore them
2024-03-20 09:32:01 +01:00
2560eef424
backups: don't export all local environment over ssh
2024-03-20 08:29:05 +00:00
9383e41d68
make backup provider more generic
2024-03-20 08:29:05 +00:00
5ff36a2cd8
nixos-install: also respect port
checks / check-links (pull_request) Successful in 20s
checks / checks-impure (pull_request) Successful in 1m50s
checks / checks (pull_request) Successful in 4m6s
2024-03-17 22:18:22 +01:00
9f25f47298
allow to debug nixos-anywhere
checks / check-links (pull_request) Successful in 20s
checks / checks-impure (pull_request) Successful in 1m51s
checks / checks (pull_request) Successful in 4m6s
2024-03-17 21:36:22 +01:00
dd0ad2683b
drop secret store logging from install command
checks / checks (pull_request) Successful in 2m5s
checks / check-links (pull_request) Successful in 20s
checks / checks-impure (pull_request) Successful in 1m53s
2024-03-17 21:32:23 +01:00
e296a3019d
re-format with nixfmt
checks / check-links (pull_request) Successful in 21s
checks / checks-impure (pull_request) Successful in 1m50s
checks / checks (pull_request) Successful in 4m23s
2024-03-17 19:48:49 +01:00
a9fc8de2d0
allow multi-line interactive secrets
checks / check-links (pull_request) Successful in 20s
checks / checks-impure (pull_request) Successful in 1m52s
checks / checks (pull_request) Successful in 4m15s
2024-03-13 11:18:56 +01:00
4044e42e58
fix: typo
checks / check-links (pull_request) Successful in 22s
checks / checks (pull_request) Successful in 36s
checks / checks-impure (pull_request) Successful in 1m51s
2024-03-12 17:37:19 +01:00
129a1516f6
clan-cli: Readd mypy ignore clan_cli because of treefmt complaining
checks / check-links (pull_request) Successful in 22s
checks / checks-impure (pull_request) Successful in 2m1s
checks / checks (pull_request) Successful in 3m48s
2024-03-10 16:06:03 +07:00
167f7f4eb3
clan-cli: Add py.typed to make mypy work when used as library in clan-vm-manager
checks / check-links (pull_request) Successful in 22s
checks / checks-impure (pull_request) Successful in 2m15s
checks / checks (pull_request) Failing after 4m15s
2024-03-10 15:18:18 +07:00
372e212c0c
clan_cli: Renamed ClanUrl to FlakeId
checks / check-links (pull_request) Successful in 22s
checks / checks-impure (pull_request) Successful in 2m0s
checks / checks (pull_request) Successful in 3m47s
2024-03-08 23:47:27 +07:00
f4f3176374
clan-vm-manager: Fix ClanUrl not pickable
checks / check-links (pull_request) Successful in 21s
checks / checks-impure (pull_request) Successful in 2m0s
checks / checks (pull_request) Failing after 4m7s
2024-03-08 23:23:18 +07:00
e4896814f2
clan_cli: Add TimeTable class to cmd.py. Fix bugs in Machine rewrite
checks / check-links (pull_request) Successful in 22s
checks / checks-impure (pull_request) Successful in 2m1s
checks / checks (pull_request) Successful in 3m51s
2024-03-08 22:01:54 +07:00
068f89e453
clan_vm_manager: Rewrite of Machine Class Part 1
checks / check-links (pull_request) Successful in 22s
checks / checks-impure (pull_request) Failing after 1m30s
checks / checks (pull_request) Successful in 3m49s
2024-03-08 15:32:12 +07:00
26dd962799
treefmt
2024-03-07 14:13:11 +01:00
f599243cbd
add flash command
2024-03-07 14:13:11 +01:00
ab2defa9e4
add confirmation prompt when installing
2024-03-07 14:13:11 +01:00