-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsvalinn-compose.yaml
More file actions
201 lines (172 loc) · 4.54 KB
/
Copy pathsvalinn-compose.yaml
File metadata and controls
201 lines (172 loc) · 4.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
# SPDX-License-Identifier: MPL-2.0
# Oblíbený Language Server - Svalinn Compose Configuration
#
# Deploy Oblibeny LSP server with formal verification via Vörðr
# Run with: svalinn-compose up
version: "1.0"
name: oblibeny-lsp
# Svalinn-specific security configuration
x-svalinn:
policy: strict
verify: true
attestations:
require-sbom: true
require-signature: true
require-provenance: true
crypto:
post-quantum: true # Oblibeny uses liboqs + libsodium
formal-verification:
enabled: true
backend: idris2
properties:
- termination-guaranteed # All Oblibeny programs terminate
- resource-bounded # Static resource bounds
- acyclic-call-graph # No recursion
services:
# Oblibeny Language Server
lsp-server:
build:
context: .
containerfile: Containerfile
target: runtime
args:
OBLIBENY_VERSION: "0.1.0"
# Published via Svalinn edge gateway
ports:
- "8765:8765"
environment:
LOG_LEVEL: info
MAX_DIAGNOSTICS: 100
ENABLE_TRACE: "true"
CRYPTO_BACKEND: liboqs
volumes:
# Accountability traces (append-only)
- trace_storage:/var/lib/oblibeny/traces:rw
# Example programs
- ./examples:/home/oblibeny/examples:ro
healthcheck:
test: ["CMD", "oblibeny", "--version"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
deploy:
replicas: 2
resources:
limits:
cpus: "0.5"
memory: 512m
reservations:
cpus: "0.1"
memory: 128m
restart_policy:
condition: unless-stopped
max_attempts: 3
# Svalinn-specific configuration
x-svalinn:
policy: strict
capabilities:
drop:
- ALL
add:
- CAP_NET_BIND_SERVICE # Bind to port 8765
read_only_root: true
tmpfs:
- /tmp:size=100m,mode=1777
seccomp:
profile: oblibeny-constrained # Custom profile for Turing-incomplete execution
# Formal verification requirements
verification:
constrained-form: required
static-bounds: required
acyclic-calls: required
reversibility: enforced
# Crypto attestation
crypto-policy:
algorithms:
- Dilithium5 # Post-quantum signature
- SPHINCS+ # Hash-based signature
- Ed25519 # Classical fallback
libraries:
- liboqs >= 0.10.0
- libsodium >= 1.0.19
# Static Analyzer Service (on-demand)
analyzer:
build:
context: .
containerfile: Containerfile
target: runtime
command: ["oblibeny", "--analyze", "/workdir/input.obl"]
volumes:
- analyzer_workspace:/workdir:rw
deploy:
replicas: 0 # Scale on-demand
resources:
limits:
cpus: "1.0"
memory: 1g
x-svalinn:
policy: strict
read_only_root: true
# Reversible Debugger Service
debugger:
build:
context: .
containerfile: Containerfile
target: runtime
command: ["oblibeny", "--debug", "/workdir/input.obl"]
volumes:
- debugger_workspace:/workdir:rw
- trace_storage:/var/lib/oblibeny/traces:ro # Read accountability traces
stdin_open: true
tty: true
deploy:
replicas: 0 # Interactive, scale manually
resources:
limits:
cpus: "0.5"
memory: 512m
x-svalinn:
policy: standard # Allow interactive debugging
read_only_root: true
networks:
default:
driver: bridge
x-svalinn:
isolation: strict
policy: least-privilege
volumes:
trace_storage:
driver: local
driver_opts:
type: none
o: bind
device: /mnt/eclipse/oblibeny-traces # Persistent accountability traces
analyzer_workspace:
driver: tmpfs
driver_opts:
size: 100m
debugger_workspace:
driver: tmpfs
driver_opts:
size: 100m
# Verification constraints for Vörðr runtime
x-vordr:
runtime-constraints:
# Oblibeny constrained form guarantees
termination:
guaranteed: true
max-iterations: computed-statically
max-call-depth: computed-statically
resources:
cpu-time: bounded
memory: bounded
trace-size: bounded
# Formal properties verified by Idris2
formal-proofs:
- property: no-unbounded-loops
proof: constrained-form-validator
- property: acyclic-call-graph
proof: call-graph-checker
- property: reversibility
proof: reversible-operations-validator