Post-Cloud Security Architecture: Edge gateway for verified container operations.
Svalinn is a Deno-based HTTP gateway that validates container operation requests and delegates to Vörðr. It provides REST API access, JSON Schema validation, policy enforcement, OAuth2/JWT authentication, and a Compose-compatible orchestration CLI (svalinn-compose).
| Component | Status | Description |
|---|---|---|
Edge Gateway |
Complete |
Hono-based HTTP server with JSON Schema validation (Deno) |
Vörðr Integration |
Complete |
MCP/JSON-RPC client delegating to Vörðr |
Policy Engine |
Complete |
Configurable allow/deny rules per operation |
Authentication |
Complete |
OAuth2/OIDC + JWT token validation middleware |
svalinn-compose |
Complete |
Compose-compatible multi-container orchestration CLI |
┌─────────────────────────────────────────────┐
│ VERIFIED CONTAINER ECOSYSTEM │
└─────────────────────────────────────────────┘
│
┌───────────────────────────────┼───────────────────────────────┐
│ │ │
▼ ▼ ▼
┌───────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ SVALINN │ │ VÖRÐR │ │ CERRO TORRE │
│ Edge Shield │───────────▶│ Container │◀───────────│ Builder │
│ (ReScript/ │ delegates │ Engine │ produces │ (Ada/SPARK) │
│ Deno) │ │ (Rust/Ada) │ │ │
└───────┬───────┘ └────────┬────────┘ └─────────────────┘
│ │ │
│ ┌───────────────────┴───────────────────┐ │
│ │ │ │
▼ ▼ ▼ ▼
┌───────────────────────────────────────────────────────────────────────────┐
│ VERIFIED-CONTAINER-SPEC │
│ (Protocol Specification) │
│ Attestation Format │ Trust Model │ Verification Semantics │
└───────────────────────────────────────────────────────────────────────────┘
-
Edge Gateway — REST API for container operations (Hono/Deno)
-
Request Validation — JSON Schema validation against verified-container-spec
-
Delegation — Forwards verified requests to Vörðr via MCP/JSON-RPC
-
Policy Enforcement — Configurable allow/deny rules per operation type
-
Authentication — OAuth2/OIDC and JWT token validation
-
Compose Orchestration — Multi-container deployment via
svalinn-compose
-
Container Runtime — That’s Vörðr
-
Image Building — That’s Cerro Torre
-
Formal Verification — That’s the Idris2/Elixir layers in Vörðr
# Deno runtime (>= 2.0)
curl -fsSL https://deno.land/install.sh | sh
# Just command runner (optional but recommended)
cargo install justexport SVALINN_PORT=8000 # Gateway port (default: 8000)
export SVALINN_HOST=0.0.0.0 # Bind address (default: 0.0.0.0)
export VORDR_ENDPOINT=http://localhost:8080 # Vörðr MCP endpoint
export SPEC_VERSION=v0.1.0 # Spec version for validationCompose-compatible orchestration with security extensions.
# Start services defined in svalinn-compose.yaml
svalinn-compose up
# Start in detached mode
svalinn-compose up -d
# Stop and remove containers
svalinn-compose down
# List running services
svalinn-compose ps
# View logs (follow mode)
svalinn-compose logs -f web
# Scale a service
svalinn-compose scale web=3
# Validate compose file
svalinn-compose config| Endpoint | Method | Description |
|---|---|---|
|
GET |
Health check with Vörðr connection status |
|
GET |
List all containers |
|
GET |
Get container info |
|
POST |
Run a container (validated against schema) |
|
POST |
Verify image attestations |
|
POST |
Stop a container |
|
DELETE |
Remove a container |
|
GET |
List images |
svalinn/ ├── src/ │ ├── main.ts # HTTP gateway entry point │ ├── gateway/ # Request routing │ ├── validation/ # JSON Schema validation │ ├── policy/ # Policy engine (evaluator, store) │ ├── auth/ # OAuth2, JWT middleware │ ├── compose/ # svalinn-compose orchestrator │ ├── integrations/ # Cerro Torre, verified-container-spec │ ├── vordr/ # Vörðr MCP client │ ├── mcp/ # MCP tool definitions │ └── tests/ # Test suite ├── spec/ # JSON Schema definitions │ └── schemas/ # gateway-*.json, container-*.json ├── Justfile # Build commands └── deno.json # Deno configuration
| Component | Role | Link |
|---|---|---|
Vörðr |
Container engine with formal verification |
|
Cerro Torre |
Provenance-verified image packaging |
|
verified-container-spec |
Protocol specification |
just # List all commands
just dev # Development server (hot reload)
just serve # Production server
just build # Compile to binary (dist/svalinn)
just test # Run test suite
just check # Type check
just lint # Lint code
just fmt # Format code
just precommit # fmt + lint + check + testThis project is dual-licensed under:
-
Palimpsest-MPL-1.0 License
-
PMPL-1.0-or-later
See LICENSE.txt for details.