feature: the PKI's schema is a file of its own that another slapd loads, a certificate can carry the name an application files it under, and the members of pki-managers manage the PKI with its keys.
Release / release (push) Successful in 24s

This commit is contained in:
slawek committed 2026-11-24 14:30:50 +01:00
1 parent 6911d16fa3
commit b61d1593b7
14 files changed
+378 -169

No files matched your search

+14 -11
View File
@@ -121,13 +121,14 @@ default, such as `LXD_REMOTE`, is required: without its option, the script stops
## A VM to work with
`lm-dev-vm.py create` launches one server VM, `lm-dev` by default, on the LXD remote and leaves
`lm-dev-vm.py create` launches one server VM, `router` by default, on the LXD remote and leaves
it running. The VM is created in a project, the test project `lm-dev` by default, with that
project's default profile, and takes its address from DHCP. It gets the package with the
administrator `admin` and a generated password, kept as `username` and `password` in
`.lm-dev-config/vm-<project>-<vm>.json`, a TOTP token for `admin` in the project's Vault unless `--no-otp` is given,
and a configuration from `configs/`, `core.json` by default; `@ETH0@` is the interface of the VM's
default route.
administrator `admin`, whose password and TOTP token, unless `--no-otp` is given, are `password` and
`otp_url` of `.lm-dev-config/vm-<project>-<vm>.json`, and a configuration from `configs/`,
`core.json` by default; `@ETH0@` is the interface of the VM's default route. A password or
`otp_url` the file lacks, or both when there is no file, is generated and kept in the file, so a VM
made again has the same password and token; delete one from the file to have a new one made.
In a test project made by `lm-dev-lxd-project.py`, the VM installs the package from the project's
repository, so later dev builds reach it as updates; in another project it installs `--deb`, or
@@ -157,14 +158,15 @@ bin/lm-dev-vm.py remove
`create` needs the project's Vault (`lm-dev-lxd-project.py vault create`): the VM gets its
AppRole there, and reads the preseed and the configuration, kept as `<vm>/preseed` and
`<vm>/config`, and creates the TOTP key `<vm>-admin` with it. `remove` deletes the VM, its forward,
its `vm-<project>-<vm>.json` and what the Vault keeps for it. Options:
`<vm>/config`; the TOTP key `<vm>-admin` is made from `otp_url`, or else the VM has the Vault
generate it. `remove` deletes the VM, its forward and what the Vault keeps for it, and keeps
`vm-<project>-<vm>.json`. Options:
| Option | Variable | Default | Meaning |
|---|---|---|---|
| `--remote` | `LXD_REMOTE` | required | The `lxc` remote |
| `--project` | `LXD_PROJECT` | `lm-dev` | The project of the VM |
| `--vm` | | `lm-dev` | The name of the VM; it must not exist for `create` |
| `--vm` | | `router` | The name of the VM; it must not exist for `create` |
| `--image` | `LXD_IMAGE` | `ubuntu:26.04` | The image of the VM |
| `--config` | | `core.json` | The configuration from `configs/` |
| `--listen` | `LXD_LISTEN` | the remote URL's host | Outside a test project, the address the proxies listen on |
@@ -262,10 +264,11 @@ read from its state file, so the script takes no `--remote`.
## A TOTP token for a user of a test VM
`bin/lm-dev-otp-register.py` enrols a new TOTP token for a user of a VM, `admin` of `lm-dev` by
`bin/lm-dev-otp-register.py` enrols a TOTP token for a user of a VM, `admin` of `router` by
default, replacing a token the user had. The project's Vault generates the key `<vm>-<user>` in its
TOTP engine and hands it to the VM (see Secrets), where the package's `linuxmanager_users` stores
it. A new token of the VM's administrator replaces `otp_url` in `vm-<project>-<vm>.json`.
it. For the VM's administrator, the key is made from `otp_url` in `vm-<project>-<vm>.json` when the
file has it, and a generated key's URL is kept there as `otp_url`.
`bin/lm-dev-otp-code.py` prints the user's current code, read from the Vault, for the Manager's
sign-in, SSH or `sudo`.
@@ -281,7 +284,7 @@ bin/lm-dev-otp-code.py
|---|---|---|---|
| `--remote` | `LXD_REMOTE` | required by `lm-dev-otp-register.py` | The `lxc` remote |
| `--project` | `LXD_PROJECT` | `lm-dev` | The project of the VM |
| `--vm` | | `lm-dev` | The name of the VM |
| `--vm` | | `router` | The name of the VM |
| `--user` | | `admin` | The user |
## A command-line authenticator app