@openparachute/vault 0.4.8-rc.8 → 0.4.8-rc.9
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/.parachute/module.json +1 -0
- package/README.md +34 -31
- package/core/src/schema.ts +8 -3
- package/package.json +1 -1
- package/src/auth.test.ts +5 -112
- package/src/cli.ts +38 -18
- package/src/oauth-discovery.ts +95 -0
- package/src/owner-auth.ts +22 -149
- package/src/routing.test.ts +98 -97
- package/src/routing.ts +29 -43
- package/src/server.ts +1 -12
- package/src/vault-name.ts +3 -2
- package/src/oauth.test.ts +0 -2156
- package/src/oauth.ts +0 -973
package/src/vault-name.ts
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
* Validation for vault names.
|
|
3
3
|
*
|
|
4
4
|
* Vault names appear in URLs (`/vault/<name>/mcp`, `/vault/<name>/api/*`),
|
|
5
|
-
* the SQLite filename, and the
|
|
6
|
-
* URL routing or filesystem assumptions has to be
|
|
5
|
+
* the SQLite filename, and the JWT audience claim (`aud: vault.<name>`) —
|
|
6
|
+
* anything that breaks URL routing or filesystem assumptions has to be
|
|
7
|
+
* rejected up front.
|
|
7
8
|
*
|
|
8
9
|
* Rule: lowercase alphanumeric + hyphens or underscores, 2–32 chars, with
|
|
9
10
|
* `list` reserved. Used by the `init` prompt, the `--vault-name` flag, and
|