Document plugin secret binding contract
API checks / checks (push) Canceled after 0s
API dependency and security checks / audit (push) Canceled after 0s

This commit is contained in:
2026-10-25 06:16:30 +01:00
parent ceef6b11b2
commit 99a1e3e07d
3 changed files with 18 additions and 2 deletions
+2 -2
View File
@@ -32,8 +32,8 @@ and `backup-restore-response.json` contracts; test fixtures contain no real
database paths or credentials. database paths or credentials.
The authenticated WebAssembly plugin lifecycle uses the manifest, install, The authenticated WebAssembly plugin lifecycle uses the manifest, install,
and installed-response contracts. Fixtures contain only synthetic package installed-response, and plugin-secret-binding-request contracts. Fixtures
metadata and no executable module or secret. contain only synthetic package metadata and no executable module or secret.
Command simulation uses `bot-command-simulate-request.json` and Command simulation uses `bot-command-simulate-request.json` and
`bot-command-simulate-response.json`. A sample response is the default and `bot-command-simulate-response.json`. A sample response is the default and
@@ -0,0 +1,12 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://trixie.local/contracts/v1/plugin-secret-binding-request.json",
"title": "Plugin secret binding request",
"type": "object",
"required": ["secret_name", "approved"],
"properties": {
"secret_name": { "type": "string", "pattern": "^[A-Za-z0-9_]{1,100}$" },
"approved": { "type": "boolean" }
},
"additionalProperties": false
}
@@ -0,0 +1,4 @@
{
"secret_name": "VTS_API_TOKEN",
"approved": true
}