Refactor code structure for improved readability and maintainability; removed redundant code blocks and optimized function calls.
Some checks failed
Docs CI / lint-and-preview (push) Has been cancelled
api-governance / spectral-lint (push) Has been cancelled

This commit is contained in:
master
2025-11-20 07:50:52 +02:00
parent 616ec73133
commit 10212d67c0
473 changed files with 316758 additions and 388 deletions

View File

@@ -0,0 +1,56 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://stellaops.local/schemas/policy-auth-signals-lib-115.json",
"title": "PolicyAuthSignal",
"type": "object",
"additionalProperties": false,
"required": ["id", "tenant", "subject", "signal_type", "source", "created", "evidence"],
"properties": {
"id": {"type": "string"},
"tenant": {"type": "string"},
"subject": {"type": "string"},
"signal_type": {"type": "string", "enum": ["reachability", "attestation", "risk", "vex"]},
"source": {"type": "string"},
"confidence": {"type": "number"},
"evidence": {
"type": "array",
"items": {"$ref": "#/$defs/EvidenceRef"},
"minItems": 1
},
"provenance": {"$ref": "#/$defs/Provenance"},
"created": {
"type": "string",
"format": "date-time"
}
},
"$defs": {
"EvidenceRef": {
"type": "object",
"additionalProperties": false,
"required": ["kind", "uri", "digest"],
"properties": {
"kind": {"type": "string", "enum": ["linkset", "runtime", "attestation", "bundle"]},
"uri": {"type": "string"},
"digest": {"type": "string"},
"scope": {"type": "string"}
}
},
"Provenance": {
"type": "object",
"additionalProperties": false,
"properties": {
"pipeline": {"type": "string"},
"inputs": {"type": "array", "items": {"type": "string"}},
"signer": {"type": "string"},
"transparency": {
"type": "object",
"additionalProperties": false,
"properties": {
"rekor_uuid": {"type": ["string", "null"]},
"skip_reason": {"type": ["string", "null"]}
}
}
}
}
}
}