Job albatross on debian-12
README
Skip to buildsAlbatross: orchestrate and manage MirageOS unikernels with Solo5
The goal of albatross is robust deployment of MirageOS
unikernels using Solo5. Resources managed
by albatross are network interfaces of kind tap
, which are connected to
already existing bridges, block devices, memory, and CPU. Each unikernel is
pinned (cpuset
/ taskset
) to a specific core.
Albatross allows remote management. To deploy or destroy a unikernel, no shell access is necessary. The remote channel is a mutually authenticated (with X.509 certificates) TLS connection. Console output of the unikernels is stored in memory in a ring buffer, and accessible remotely. Monitoring data (CPU and memory usage) of the unikernels can be collected as well, and pushed into an Influx time series database.
Albatross consists of multiple processes, each running with the least privileges. Albatross can be run next to other orchestration systems; it does not assume to be the single instance on a dom0 which creates and destroys virtual machines. Resource policies can be dynamically configured for each administrative domain (similar to DNS, a hierarchical naming scheme), and are checked statically (to decrease while going down the tree) and dynamically when a new unikernel is to be deployed.
When a unikernel is deployed, albatross tries its best to keep it running, even when the physical hardware reboots, or albatross is restarted. When the unikernel exits, depending on configuration and its exit code, it is re-started. The current set of running unikernels is persisted on disk, though there is no dependency or order for restarting them.
The scope of albatross is to provide a minimal orchestration system that avoids the need for shell access on the dom0. This leads to mostly immutable - or only mutable via albatross - infrastructure. Further dissemination of albatross into virtual machines, and a communication interface for deploying and destroying unikernels, is being researched on.
Components
Albatross consists of a set of binaries. Several daemons, which communicate in a request-response style over Unix domain sockets, are run in the host system:
albatrossd
: privileged to create and destroy unikernelsalbatross-console
: reads the console output of unikernelsalbatross-stats
: statistics gathering (rusage, ifstat, BHyve debug counters)albatross-tls-endpoint
: remote deployment via TLS (and possibly inetd)albatross-influx
: statistic reporting fromalbatross-stats
to influx
The main daemon is the privileged albatrossd
, which supervises unikernels. It opens
a listening Unix domain socket, reads the persisted unikernel configuration,
starts these unikernels, and awaits commands. Access can be regulated by Unix
file permissions -- only those users who can write to that socket can send
commands.
Albatross-console
does not keep any persistent state, but a ring buffer of console
output from each unikernel. These messages can be retrieved by a client as a
stream of messages (history, and whenever a new line is output, it is sent to
the interested client). Each unikernel output can only be read by a single
client, to avoid amplification of traffic if lots of clients are connected.
Albatrossd
sends a message to albatross-console
whenever a new unikernel is started,
upon reception albatross-console
opens and reads the fifo which the unikernel will
write their standard output to.
Albatross-stats
periodically gathers statistics (memory, CPU, network, hypervisor)
from all running unikernels.
Albatross-tls-endpoint
listens on a TCP port, or uses systemd socket activation, or
via inetd (remember to add --syslog
when using --inetd
to log via syslog),
and proxies requests from remote clients to the respective daemons described
above. It enforces client authentication, and uses the common names of the client
certificate chain as the administrative domain. The policies are embedded in CA
certificates, and the command is embedded in the leaf certificate.
The albatross-client
is provided for both local and remote management. It executes the provided command, and can also prepare certificate signing requests (--csr
) to send the certificate at a later point.
It also includes functionality for generating an initial CA (and server certificate), and signing certificate signing requests.
Albatross over TLS
Albatross uses PKI to authenticate both client and server. Requests are signed by a certificate authority (CA) that is trusted by the server. CA can delegate resources using policies, which happens by creating an intermediate CA. Revokation is not implemented, as delegation happens without the server knowing about it.
This example shows how one can delegate part of the resources to a user. There are 4 entities:
- server: runs the albatross TLS endpoint
- CA: root certificate authority
- intermediate CA: user certificate authority
- client: requests initiator
Note: there are 4 entities but depending on the security model some can exist
on the same machine. For example, when client and intermediate CA can be
combined, requests are automatically signed using albatross-client --destination
(see step 8).
Setup
This step-by-step guide shows how files are generated and to which entity they belong. Filename is in bold when it's created by the current step.
- Generate the root CA certificate and server keypair
albatross-client generate ca db
description | server | CA | intermediate CA | client | |
---|---|---|---|---|---|
private key | server.key | ca.key | |||
public certificate | server.pem | cacert.pem |
- server: start the endpoint using the server keypair and the root CA certificate
albatross-tls-endpoint cacert.pem server.pem server.key
- intermediate CA: we want to delegate part of the resources to a given user. The user generates a signing request to allow a memory of 1024MB to run 16 unikernels on CPU IDs 0 and 1.
albatross-client add-policy user 16 --mem 1024 --cpu 0 --cpu 1 --csr
description | server | CA | intermediate CA | client | |
---|---|---|---|---|---|
private key | server.key | ca.key | user.key | ||
public certificate | server.pem | cacert.pem | |||
certificate signing request | user.req |
- CA: CA signs the user's request, which generates an intermediate CA certificate containing the restriction policies (limited memory, cpu), which in turn will be used to sign user requests.
albatross-client sign cacert.pem db ca.key user.req
description | server | CA | intermediate CA | client | |
---|---|---|---|---|---|
private key | server.key | ca.key | user.key | ||
public certificate | server.pem | cacert.pem | user.pem | ||
certificate signing request | user.req |
- client: the client wants to create an unikernel, it has to wrap the request in a certificate signing request which will be submitted to the intermediate CA. Note: you can download hello-key.hvt.
albatross-client create hello hello-key.hvt --csr [--arg='--hello=albatross-hi'] [--cpu=1]
description | server | CA | intermediate CA | client | |
---|---|---|---|---|---|
private key | server.key | ca.key | user.key | hello.key | |
public certificate | server.pem | cacert.pem | user.pem | ||
certificate signing request | user.req | hello.req |
- intermediate CA: the intermediate CA signs the request
albatross-client sign user.pem db user.key hello.req
description | server | CA | intermediate CA | client | |
---|---|---|---|---|---|
private key | server.key | ca.key | user.key | hello.key | |
public certificate | server.pem | cacert.pem | user.pem | hello.pem | |
certificate signing request | user.req | hello.req |
- client: client sends the signed request to the server,
albatross-client sign
appended the intermediate CA certificate tohello.pem
to form the full chain.
albatross-client certificate cacert.pem hello.pem hello.key --destination <REMOTE_IP:PORT>`
- Steps 5, 6, and 7 can be done in a single command - if there's no requirement to retain the signing request and certificate, and the user keys are on the local machine.
albatross-client create hello hello-key.hvt --ca=user.pem --ca-key=user.pem --server-ca=cacert.pem --destination <REMOTE_IP:PORT> [--arg='--hello=albatross-hi'] [--cpu=1]
Installation
Binary packages are available for Debian, Ubuntu and FreeBSD. How to install.
For other operating systems / distributions, run opam install albatross
.
Also read the blog article for the motivation behind albatross and an overview of its functionality.
Builds
Back to readme- ☑ debian-12 2024-10-13 13:58:56Z albatross.deb
SHA256:e1c695361ad993526b27075945760889e7095872d477b0e1fc84cb7954df4fa7
(17.9MB) - ☑ debian-12 2024-10-10 13:58:54Z albatross.deb
SHA256:51e0fb9befa4a4a6bd8efa9da970d31b0084bd49ed68d6c086ebf1740cb59a04
(17.9MB) - ☑ debian-12 2024-10-07 13:58:51Z albatross.deb
SHA256:8007a2f1c5deb175c7b41546c28037377e57b5965e790272b304a7a2a3ecad8e
(17.9MB) - ☑ debian-12 2024-10-06 14:32:33Z albatross.deb
SHA256:a18d828b7b3e3f4c7f208a1ea7e5e0c27b98f52c56f05256509baa142b27e0e5
(17.9MB) - ☑ debian-12 2024-09-29 14:16:25Z albatross.deb
SHA256:bde6d584b9fa884a8c5ec6e159574be2e0c8e510f40bfbe79124b40135fc0623
(17.9MB) - ☑ debian-12 2024-09-18 14:32:57Z albatross.deb
SHA256:89bc72c813f36feb3844814e23473cc9b2e1cf5c794e4f4ef988a17118d6deb2
(17.8MB) - ☑ debian-12 2024-09-13 13:58:31Z albatross.deb
SHA256:52eab6f7f6f26101b0943e12199d5b454e1f7aea31a4bc0e3ff9cbbe51bd6bb0
(17.8MB) - ☑ debian-12 2024-09-11 14:15:00Z albatross.deb
SHA256:619e7912ba9d1fc9136af6e0199ba69c0c85de4cd1990d779653271248efe2cb
(17.8MB) - ☑ debian-12 2024-09-05 14:16:36Z albatross.deb
SHA256:60f6fbb28625f574a009039294bc3f8ba8b9d4643b9dc3c4cd3353fb154f820b
(20.6MB) - ☑ debian-12 2024-08-25 14:33:22Z albatross.deb
SHA256:e21c699da41ce3a189f80b7e71a04c94ee7d7bf63b7769e7c224a168d3f6bf25
(20.6MB) - ☑ debian-12 2024-08-15 14:16:34Z albatross.deb
SHA256:22ce5cf3bb83552b62057abf31ef29f3bebb5345b58548c74e792826c1fb099c
(18.6MB) - ☑ debian-12 2024-08-11 14:18:07Z albatross.deb
SHA256:6b1d407552dcf083e7427c8795f8297c6cc408acc54ec0b5fd7c69058906772f
(18.6MB) - ☑ debian-12 2024-07-20 14:03:56Z albatross.deb
SHA256:8d40249728544212521ef9f44ea97615fbeced0fec7913d0583aca6ee8dde190
(18.6MB) - ☑ debian-12 2024-07-15 10:48:36Z albatross.deb
SHA256:26b3c75e781b6ecdced6ee468bd0e83813692d7e4de639cc85d6633701060b3d
(18.6MB) - ☑ debian-12 2024-07-07 14:31:35Z albatross.deb
SHA256:eea7eee2459bc7965a9fda403fe9b4917b6b58e40e765815c163a61004a51182
(18.6MB) - ☑ debian-12 2024-07-01 14:31:26Z albatross.deb
SHA256:c29c6f7794185dfae9baa8a684b1e793fe5e362698a4a0c023dc2cf560647be1
(18.6MB) - ☑ debian-12 2024-06-30 14:17:02Z albatross.deb
SHA256:f71d8485fb9b5160c26c25fbd7f7870d5ffe96ab650b940d82f8aae1fbe540fd
(18.6MB)
Including failed builds here.