LocalDevSigner.fromKeyRef(...)to provide a signer to middleware, gateway, or audit setupinitTracing(...)to point Sec0 traces at your OTLP collector
signer
LocalDevSigner
| Method | Signature | Description |
|---|---|---|
LocalDevSigner.fromKeyRef | (keyRef: string) => LocalDevSigner | Load a base64 Ed25519 key from a file://... path |
Signer interface
| Member | Type | Description | |
|---|---|---|---|
keyId | string | Key identifier | |
sign | `(data: Uint8Array) => Promise<Uint8Array> | Uint8Array` | Sign bytes |
Example
fromKeyRef(...) only accepts file:// paths and honors the allowed key directories controlled by SEC0_SIGNER_KEY_DIRS.
otel
OTelConfig
| Key | Type | Required | Description |
|---|---|---|---|
endpoint | string | Yes | OTLP/gRPC collector endpoint |
serviceName | string | Yes | Service name |
serviceVersion | string | Yes | Service version |
environment | string | Yes | Environment name |
tenant | string | Yes | Tenant identifier |
sample.success | number (0-1) | Yes | Success sampling ratio |
sample.error | number (0-1) | No | Error sampling ratio |