Feat v0.8.0 files sandbox module
All checks were successful
CI/CD / detect-changes (pull_request) Successful in 4s
CI/CD / test-frontend (pull_request) Has been skipped
CI/CD / test-runners (pull_request) Has been skipped
CI/CD / e2e-smoke (pull_request) Has been skipped
CI/CD / test-go-pg (pull_request) Successful in 2m44s
CI/CD / test-sqlite (pull_request) Successful in 2m57s
CI/CD / build-and-deploy (pull_request) Successful in 1m25s

Bridge ObjectStore (PVC/S3) into the Starlark sandbox with extension-scoped
key namespacing. New files module with put/get/meta/list/delete/exists
builtins gated by files.read and files.write permissions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-03 00:14:28 +00:00
parent 3b74774077
commit 5b72ed254f
13 changed files with 1169 additions and 5 deletions

View File

@@ -37,6 +37,8 @@ const (
ExtPermTriggersRegister = "triggers.register"
ExtPermRealtimePublish = "realtime.publish"
ExtPermBatchExec = "batch.exec"
ExtPermFilesRead = "files.read"
ExtPermFilesWrite = "files.write"
)
// ValidExtensionPermissions is the set of recognized permission keys.
@@ -52,6 +54,8 @@ var ValidExtensionPermissions = map[string]bool{
ExtPermTriggersRegister: true,
ExtPermRealtimePublish: true,
ExtPermBatchExec: true,
ExtPermFilesRead: true,
ExtPermFilesWrite: true,
}
// ── Extension Permission Model ───────────────