add sandbox stub service - 4-route placeholder until real soul wires up
Go HTTP server with five handlers:
GET / -> 200 {env, status, soul}
GET /health -> 200 {ok:true}
POST /api/share -> 410 not_available_in_sandbox
GET /said -> 410 not_available_in_sandbox
GET /share/* -> 410 not_available_in_sandbox
any other -> 404 not_found
Distroless final image. Cross-compiled on host (Apple Silicon QEMU + Go
crashes with lfstack.push when go build runs inside an emulated linux/amd64
container). Pushed to us-central1-docker.pkg.dev/neuron-785695/neuron-sandbox/sandbox:initial.
Replaced when the real soul build pipeline lands.
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
# sandbox-stub
|
||||
|
||||
Four-route placeholder for `sandbox.neurontechnologies.ai`. Replaced when the
|
||||
real soul build pipeline lands.
|
||||
|
||||
## Routes
|
||||
|
||||
| Method | Path | Status | Body |
|
||||
|--------|-------------|--------|-------------------------------------------------|
|
||||
| GET | `/` | 200 | `{"env":"sandbox","status":"ready","soul":"not_loaded"}` |
|
||||
| GET | `/health` | 200 | `{"ok":true}` |
|
||||
| POST | `/api/share`| 410 | `{"error":"not_available_in_sandbox"}` |
|
||||
| GET | `/said` | 410 | `{"error":"not_available_in_sandbox"}` |
|
||||
| GET | `/share/*` | 410 | `{"error":"not_available_in_sandbox"}` |
|
||||
| any | other | 404 | `{"error":"not_found"}` |
|
||||
|
||||
## Build + push
|
||||
|
||||
```bash
|
||||
cd ~/Development/neuron-technologies/products/sandbox-stub
|
||||
gcloud auth configure-docker us-central1-docker.pkg.dev --quiet
|
||||
docker buildx build --platform linux/amd64 \
|
||||
-t us-central1-docker.pkg.dev/neuron-785695/neuron-sandbox/sandbox:initial \
|
||||
--push .
|
||||
```
|
||||
|
||||
## Why 410 on share / said
|
||||
|
||||
Sandbox runs experimental builds. Public artifact endpoints stay strictly in
|
||||
prod. 410 Gone makes the lockdown explicit even before the real soul wires up.
|
||||
Reference in New Issue
Block a user