Post-Cloud Security Architecture: Edge gateway for verified container operations.
Svalinn is an experimental container gateway project. Its only runnable gateway in this checkout is a separate Deno/TypeScript MVP at tools/mvp/svalinn_gateway.ts; the AffineScript files under src/ and ui/src/ are incomplete migration artifacts, not a runnable port. The MVP is retained as a legacy exception while the replacement language/runtime decision and migration are unresolved. See measured status and the language/ecosystem audit.
|
Warning
|
The Deno/TypeScript MVP is not compliant with the repository’s stated language policy and is not production approval. It must not be extended as the long-term implementation. Removing it before a tested replacement exists would also remove the only runnable gateway. |
| Component | Status | Description |
|---|---|---|
Edge Gateway |
MVP only (legacy Deno/TypeScript) |
|
Vörðr Integration |
Partial / unverified |
The MVP has a Vörðr process integration; the AffineScript client is not compiled or verified. |
Policy Engine |
Partial / unverified |
AffineScript sources exist, but are incomplete migration artifacts; do not treat this component as production-ready. |
Authentication |
Partial / unverified |
AffineScript sources exist, but are incomplete migration artifacts; do not treat this component as production-ready. |
svalinn-compose |
Not implemented |
An orchestration source stub exists; there is no verified, runnable 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/ # Incomplete AffineScript migration artifacts ├── ui/src/ # Incomplete AffineScript migration artifacts ├── tools/mvp/ # Legacy runnable Deno/TypeScript MVP gateway ├── tools/mvp/svalinn-gate/ # Rust MVP policy gate ├── tests/ # MVP, schema, and spec-mirror tests ├── spec/ # JSON Schema definitions ├── Justfile # Historical and current task recipes (audit before use) └── docs/language-and-ecosystem-audit.adoc
| 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 + test-
Language Policy: No new TypeScript or Deno work. The existing Deno/TypeScript MVP is legacy migration debt, not an approved production stack; see
.claude/CLAUDE.mdanddocs/language-and-ecosystem-audit.adoc. -
Security: HTTPS in production, no hardcoded secrets
-
Licensing: PMPL-1.0 OR MPL-2.0, SPDX headers required
This project is licensed under the Mozilla Public License, v. 2.0. See the LICENSE file for details.
SPDX-License-Identifier: CC-BY-SA-4.0