You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: attestation-service/docs/config.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,9 +18,25 @@ section:
18
18
|`work_dir`| String | The location for Attestation Service to store data. | False | Firstly try to read from ENV `AS_WORK_DIR`. If not any, use `/opt/confidential-containers/attestation-service`|
|`allow_unsigned`| Boolean | If `false`, uploaded components must be signed with `wasmsign2` and verify against `trusted_public_keys`. | No |`false`|
35
+
|`trusted_public_keys`| Array of String | Paths to trusted public keys (raw/DER/PEM/OpenSSH) for verifying components. | No |`[]`|
36
+
|`registry_dir`| String | Directory to store registered components; defaults to `<work_dir>/components`. | No | - |
37
+
|`default_component_id`| String | Default verifier component ID to use when a request does not provide `verifier_component` or `verifier_component_id`. | No | - |
38
+
|`wasi_cache_dir`| String | Directory pre-opened to components as `cache/` (for collateral caching); defaults to `<work_dir>/wasm-cache`. | No | - |
39
+
|`wasmtime_cache_config`| String | Wasmtime cache config file path; defaults to `<work_dir>/wasmtime-cache.toml`. | No | - |
Copy file name to clipboardExpand all lines: attestation-service/docs/restful-as.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,18 @@ The value is a base64 encoded JWT. The body of the JWT is showed in the [example
57
57
58
58
More configuration items please refer to the [document](./config.md).
59
59
60
+
## Wasm Component Verifiers
61
+
62
+
This build can host platform-specific verifiers as Wasm *components* (Component Model) instead of native verifier drivers.
63
+
64
+
-`POST /component`: register a verifier component and get a `component_id` back.
65
+
-`POST /attestation`: each `verification_request` can either embed a verifier component (`verifier_component`) or refer to a previously registered component (`verifier_component_id`).
66
+
67
+
Notes:
68
+
-`verifier_component` is base64url (no pad) encoded raw `.wasm` component bytes.
69
+
- If both `verifier_component` and `verifier_component_id` are provided, `verifier_component` takes precedence and is deduplicated/registered by hash.
70
+
- If neither is provided, the service uses `wasm_verifier.default_component_id` (if configured) or rejects the request.
0 commit comments