| Age | Commit message (Collapse) | Author |
|
Move back to using plain containers, as they have stronger security
guarantees (`container machine` forwards SSH socket for example).
|
|
With `container` v1, a new `machine` subcommand was introduced in
order to support long-lived machines.
Port the `dbx` utility to use `container machine` instead of using
regular containers. The main motivation for this is:
- `container machine`s are more elastic; when they are stopped
their containers are removed entirely (which is different to a
container that is stopped, but not removed)
- `container machine`s can modify settings (such as CPU and memory
limits) after creation, allowing for the machine to change over
time as needed
Overall, the structure stays largely the same as before; the main
difference being how initialization is done (since `container
machine` has built-in support for initializing a user with
passwordless `sudo`). Note we explicitly set `--home-mount=none`
in order to keep the same filesystem isolation guarantees that
existed before (files can be copied with `scp`; there is no
`container cp` analogy for machines).
One notable difference is network management. `container machine`s
are assigned their own virtual network device and get a completely
separate IP to the host (which is different than before where
container ports were being published to the host). I do not know
which one is more secure...
|
|
|
|
License code for publishing under GPL, and cleanup a bit (in
particular, add a `Makefile` for building the Go `dbx-proxy`
executable).
|
|
We can now create and initialize a `dbx` container!
|