Files
git.stella-ops.org/docs/events/attestor.logged@1.json

74 lines
2.0 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://docs.stella-ops.org/events/attestor.logged@1.json",
"title": "Attestor Logged Event",
"description": "Emitted when an attestation is logged to a transparency log",
"type": "object",
"required": ["eventId", "kind", "version", "tenant", "ts", "payload"],
"properties": {
"eventId": {
"type": "string",
"format": "uuid",
"description": "Unique event identifier"
},
"kind": {
"const": "attestor.logged",
"description": "Event kind"
},
"version": {
"const": "1",
"description": "Schema version"
},
"tenant": {
"type": "string",
"description": "Tenant identifier"
},
"ts": {
"type": "string",
"format": "date-time",
"description": "Event timestamp in ISO 8601 format"
},
"actor": {
"type": "string",
"description": "Service or user that triggered the event"
},
"payload": {
"type": "object",
"required": ["attestationId", "imageDigest", "imageName"],
"properties": {
"attestationId": {
"type": "string",
"description": "Unique attestation identifier"
},
"imageDigest": {
"type": "string",
"description": "Image digest (sha256)"
},
"imageName": {
"type": "string",
"description": "Full image name with tag"
},
"predicateType": {
"type": "string",
"description": "In-toto predicate type URI"
},
"logIndex": {
"type": "integer",
"description": "Transparency log index"
},
"links": {
"type": "object",
"properties": {
"attestation": { "type": "string", "format": "uri" },
"rekor": { "type": "string", "format": "uri" }
}
}
}
},
"attributes": {
"type": "object",
"additionalProperties": { "type": "string" }
}
}
}