<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dbx/Makefile, branch next</title>
<subtitle>Containerized development environments</subtitle>
<id>http://src.lordello.net/dbx/atom/Makefile?h=next</id>
<link rel='self' href='http://src.lordello.net/dbx/atom/Makefile?h=next'/>
<link rel='alternate' type='text/html' href='http://src.lordello.net/dbx/'/>
<updated>2026-11-27T13:59:36Z</updated>
<entry>
<title>Start Next Version of `dbx`</title>
<updated>2026-11-27T13:59:36Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-11-27T13:59:36Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/dbx/commit/?id=732bd7137f018e4ad0d114744c92e33c00921d31'/>
<id>urn:sha1:732bd7137f018e4ad0d114744c92e33c00921d31</id>
<content type='text'>
This is the first PR in a fresh branch that refactors `dbx` to a
new agentic development paradigm. The idea is to create a single
development container for each project, and provision it with a
working agent harness.

The development flow is changed to fetching Git refs from the
development box for review and signing on the host. It is meant as
a hardened alternative compared to the previous version (where we
would typically expose a GPG/SSH socket over an `ssh` connection
to the guest, and rely on `pinentry` and `askpass` configuration
to enforce user presence or verification tests for each
authenticated operation.

It is still in the early stages of "ideating" how the final project
would look like, but I already have some idea on how I want it.
</content>
</entry>
<entry>
<title>Use `container` and not `container machine`</title>
<updated>2026-11-17T14:54:24Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-11-17T14:54:24Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/dbx/commit/?id=afb81e05605603f15e0bc223b4c5dbc690ad8e49'/>
<id>urn:sha1:afb81e05605603f15e0bc223b4c5dbc690ad8e49</id>
<content type='text'>
Move back to using plain containers, as they have stronger security
guarantees (`container machine` forwards SSH socket for example).
</content>
</entry>
<entry>
<title>Support Custom Teardown</title>
<updated>2026-09-15T12:05:52Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-09-15T12:05:52Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/dbx/commit/?id=717968007c67fca3067777cffa3dd40582968f4a'/>
<id>urn:sha1:717968007c67fca3067777cffa3dd40582968f4a</id>
<content type='text'>
Similar to how we added an "RC" system to the init script, we
now have a custom tear-down script (which can do things like
unmount loop devices).

Furthermore, we make sure that an `$XDG_RUNTIME_DIR/dbx` exists
for things like SSH control sockets (so they can go somewhere
where an application has R/W access to, while only keeping RO
access to the configurations).
</content>
</entry>
<entry>
<title>Small Script Improvements</title>
<updated>2026-09-08T08:09:10Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-09-08T07:33:19Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/dbx/commit/?id=09de89ea286103b524b59bab7d4ea016ceac00a3'/>
<id>urn:sha1:09de89ea286103b524b59bab7d4ea016ceac00a3</id>
<content type='text'>
First of all, we just use Bash instead of POSIX `sh` - there are some
goodies that make it more robust (like `pipefail` and array expansion).

This also allows us to make a few more checks on the parameters (such
as denying invalid host specifies for `scp`).

Added an option for regenerating the SSH configuration
</content>
</entry>
<entry>
<title>Back to Shell</title>
<updated>2026-09-07T23:50:55Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-09-07T23:50:55Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/dbx/commit/?id=046ce317bb7e1cfeba947ace6aea237cb0f91e2d'/>
<id>urn:sha1:046ce317bb7e1cfeba947ace6aea237cb0f91e2d</id>
<content type='text'>
I ended up fighting with C for no benefit. We are back to a Shell
script, but this time we use (mostly) POSIX shell (we use `local`
because it is so convenient, although it is technically not POSIX).

Additionally, this time we create a monolithic script, and already
add hooks to allow for multiple contianer engines to work with the
script (for now, just `container` is implemented and `podman krun`
is stubbed).
</content>
</entry>
<entry>
<title>Adapt Path Utilities to Return Errors</title>
<updated>2026-09-07T12:50:15Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-09-07T12:50:15Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/dbx/commit/?id=aa2c6a351167e44dd285d72d5a77627f3b0e78de'/>
<id>urn:sha1:aa2c6a351167e44dd285d72d5a77627f3b0e78de</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Started Implementing Container Creation</title>
<updated>2026-09-04T20:26:09Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-09-04T20:26:09Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/dbx/commit/?id=8165883a153e4bc2d50fa3710e47b76d9f79bb15'/>
<id>urn:sha1:8165883a153e4bc2d50fa3710e47b76d9f79bb15</id>
<content type='text'>
We setup a single-use SSH key and can generate an SSH
configuration.  Additionally, we support user SSH settings in
`~/.config/dbx/$NAME.ssh_config`.

This still doesn't quite work (there are some left-over TODOs).
In particular:

1. We need to get the generated SSH public key to the authorized
   keys list on the devbox
2. We need to SCP and run the optional post-installation script
</content>
</entry>
<entry>
<title>Refactoring to a C Binary</title>
<updated>2026-08-29T16:51:31Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-08-29T13:44:43Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/dbx/commit/?id=99561277e31caeffa7fc9d722650247511ad3bf7'/>
<id>urn:sha1:99561277e31caeffa7fc9d722650247511ad3bf7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Port `dbx` To Use `container machine`</title>
<updated>2026-07-01T20:55:29Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-07-01T20:35:54Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/dbx/commit/?id=d07d395b09ec1a87677712e7b50ac520495ed573'/>
<id>urn:sha1:d07d395b09ec1a87677712e7b50ac520495ed573</id>
<content type='text'>
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...
</content>
</entry>
<entry>
<title>Fix Image and DBX Commands</title>
<updated>2026-05-15T07:06:50Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-05-15T07:06:50Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/dbx/commit/?id=795342c5e7793b66c44e8482ec7dcd94bf4f8885'/>
<id>urn:sha1:795342c5e7793b66c44e8482ec7dcd94bf4f8885</id>
<content type='text'>
</content>
</entry>
</feed>
