@redaksjon/protokoll 1.0.24 → 1.0.26-dev.20260303192935.68bd283
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/deploy/cloud-run/env.example.yaml +8 -0
- package/deploy/cloud-run/rbac-keys.example.yaml +11 -0
- package/deploy/cloud-run/rbac-policy.example.yaml +20 -0
- package/deploy/cloud-run/rbac-users.example.yaml +10 -0
- package/dist/engineLogging.js +1 -1
- package/dist/engineLogging.js.map +1 -1
- package/dist/mcp/server-hono.js +532 -8
- package/dist/mcp/server-hono.js.map +1 -1
- package/guide/cloud-run.md +15 -0
- package/guide/configuration.md +10 -0
- package/guide/mcp-integration.md +10 -0
- package/package.json +1 -1
|
@@ -45,3 +45,11 @@ PROTOKOLL_STORAGE_GCS_CONTEXT_PREFIX: "context"
|
|
|
45
45
|
|
|
46
46
|
# Cloud Run/GCP context (recommended with storage.backend: gcs).
|
|
47
47
|
GOOGLE_CLOUD_PROJECT: "replace-me-project-id"
|
|
48
|
+
|
|
49
|
+
# Optional secured mode (API key + RBAC).
|
|
50
|
+
# When enabled, RBAC files must be present in the image/container filesystem.
|
|
51
|
+
PROTOKOLL_HTTP_SECURED: "false"
|
|
52
|
+
# RBAC_USERS_PATH: "/app/rbac/users.yaml"
|
|
53
|
+
# RBAC_KEYS_PATH: "/app/rbac/keys.yaml"
|
|
54
|
+
# RBAC_POLICY_PATH: "/app/rbac/policy.yaml"
|
|
55
|
+
# RBAC_RELOAD_SECONDS: "300"
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
keys:
|
|
2
|
+
- key_id: admin-key-2026-03
|
|
3
|
+
user_id: admin-user
|
|
4
|
+
# Replace with a generated scrypt hash:
|
|
5
|
+
# scrypt$N$r$p$<salt_base64>$<derived_key_base64>
|
|
6
|
+
secret_hash: scrypt$16384$8$1$RkFLRV9TQUxUX0JBU0U2NA==$RkFLRV9ERVJJVkVEX0tFWV9CQVNFNjQ=
|
|
7
|
+
enabled: true
|
|
8
|
+
- key_id: editor-key-2026-03
|
|
9
|
+
user_id: editor-user
|
|
10
|
+
secret_hash: scrypt$16384$8$1$QU5PVEhFUl9TQUxUX0I2NA==$QU5PVEhFUl9ERVJJVkVEX0I2NA==
|
|
11
|
+
enabled: true
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
policy:
|
|
2
|
+
- path: /health
|
|
3
|
+
methods: [GET]
|
|
4
|
+
public: true
|
|
5
|
+
|
|
6
|
+
- path: /auth/whoami
|
|
7
|
+
methods: [GET]
|
|
8
|
+
any_roles: ["*"]
|
|
9
|
+
|
|
10
|
+
- path: /admin/ping
|
|
11
|
+
methods: [GET]
|
|
12
|
+
any_roles: [admin]
|
|
13
|
+
|
|
14
|
+
- path: /mcp
|
|
15
|
+
methods: [GET, POST, DELETE, OPTIONS]
|
|
16
|
+
any_roles: ["*"]
|
|
17
|
+
|
|
18
|
+
- path: /audio/*
|
|
19
|
+
methods: [GET, POST, OPTIONS]
|
|
20
|
+
any_roles: ["*"]
|
package/dist/engineLogging.js
CHANGED
|
@@ -208,7 +208,7 @@ function isProtokolUri(uri) {
|
|
|
208
208
|
return uri.startsWith(`${SCHEME}://`);
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
const VERSION = "1.0.
|
|
211
|
+
const VERSION = "1.0.26-dev.20260303192935.68bd283 (working/68bd283 2026-03-03 11:29:16 -0800) linux arm64 v24.14.0";
|
|
212
212
|
const PROGRAM_NAME = "protokoll";
|
|
213
213
|
const DATE_FORMAT_YEAR_MONTH_DAY_HOURS_MINUTES_SECONDS = "YYYY-M-D-HHmmss";
|
|
214
214
|
const DEFAULT_AUDIO_EXTENSIONS = ["mp3", "mp4", "mpeg", "mpga", "m4a", "wav", "webm", "qta"];
|