@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.
@@ -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: ["*"]
@@ -0,0 +1,10 @@
1
+ users:
2
+ - user_id: admin-user
3
+ roles:
4
+ - admin
5
+ - editor
6
+ enabled: true
7
+ - user_id: editor-user
8
+ roles:
9
+ - editor
10
+ enabled: true
@@ -208,7 +208,7 @@ function isProtokolUri(uri) {
208
208
  return uri.startsWith(`${SCHEME}://`);
209
209
  }
210
210
 
211
- const VERSION = "1.0.24 (HEAD/4971e43 T:v1.0.24 2026-03-03 09:02:15 -0800) linux arm64 v24.14.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"];