# DataNivra agent 0.6.1

- Source commit: `f270cc519a915f9eb0d28ec9ee4b419d69839867`
- Image (pin this digest): `ghcr.io/manuelbomi/datanivra-agent@sha256:3e5cadee4a7b1766d8a3610a4ae01e13c4d1fed3444d7d54b4edf3ea618d0378`
- Platforms: linux/amd64 linux/arm64
- Helm chart: `datanivra-agent-0.6.1.tgz` (+ `datanivra-agent-0.6.1-helm-values.yaml` pinning the digest)
- Packages: datanivra-agent-docker-0.6.1.tar.gz datanivra-agent-docker-compose-0.6.1.tar.gz datanivra-agent-kubernetes-generic-0.6.1.tar.gz datanivra-agent-azure-customer-vnet-0.6.1.tar.gz datanivra-agent-aws-customer-vpc-0.6.1.tar.gz 

## Verify before installing

```bash
cosign verify-blob --bundle SHA256SUMS.cosign.bundle \
  --certificate-identity 'https://github.com/manuelbomi/datanivra-platform/.github/workflows/release-agent.yml@refs/tags/agent-v0.6.1' \
  --certificate-oidc-issuer 'https://token.actions.githubusercontent.com' SHA256SUMS
sha256sum --check SHA256SUMS
cosign verify ghcr.io/manuelbomi/datanivra-agent@sha256:3e5cadee4a7b1766d8a3610a4ae01e13c4d1fed3444d7d54b4edf3ea618d0378 \
  --certificate-identity 'https://github.com/manuelbomi/datanivra-platform/.github/workflows/release-agent.yml@refs/tags/agent-v0.6.1' \
  --certificate-oidc-issuer 'https://token.actions.githubusercontent.com'
```

The release contains no enrollment tokens or credentials: create a one-time enrollment token in
the console (Agents -> Install) and keep every credential in your own secret store. After
installing, run `datanivra-agent doctor` inside the agent's environment.

## What changed in 0.6.1

### Firecracker runs under its jailer — and is generally available

With `DATANIVRA_AGENT_ISOLATION_FIRECRACKER_LAUNCHER` set, every Firecracker microVM runs under Firecracker's
**jailer**: in a chroot that holds only that VM's kernel, root filesystem and stage drive, in its own mount
namespace, as a dedicated unprivileged user and inside cgroup v2 limits, on top of Firecracker's seccomp
filters. The agent itself still never runs as root:

* **One small launcher.** `datanivra-firecracker-launch`, shipped in the agent image under
  `/opt/datanivra/firecracker-launcher/`, is the only program the agent may run as root (a single sudoers rule).
  It takes every path, binary and user from its own root-owned configuration and accepts from the agent only a
  jail id it validates and the stage's run directory below the agent workspace.
* **One-time setup.** `install-jailer.sh <agent user> <assets dir> <workspace dir>` (root) installs the
  Firecracker assets root-owned, creates the VMM user, the launcher, its configuration and the sudoers rule,
  and checks the result.
* **Checks.** `datanivra-agent isolation doctor` adds `jailer_launcher_ready`; a launcher that is missing,
  refuses or names other files fails with `ISOLATION_FIRECRACKER_JAILER_UNAVAILABLE`. Stopping, reconciliation
  and clean-up of microVMs go through the launcher.

With the jailer, the Firecracker backend is **generally available**, alongside Container (OCI) and gVisor.
Guide: <https://www.datanivra.com/docs/isolated-execution> (Run it in your own environment).

Upgrading is optional unless you use the Firecracker backend; the Container (OCI) and gVisor backends are
unchanged from 0.6.0.
