Skip to content

Commit

Permalink
adding indentation for the schemas
Browse files Browse the repository at this point in the history
Signed-off-by: chaosinthecrd <[email protected]>
  • Loading branch information
ChaosInTheCRD committed May 10, 2024
1 parent c5ff51a commit 009796d
Show file tree
Hide file tree
Showing 17 changed files with 2,301 additions and 18 deletions.
97 changes: 96 additions & 1 deletion schemagen/aws.json
Original file line number Diff line number Diff line change
@@ -1 +1,96 @@
{"$schema":"https://json-schema.org/draft/2020-12/schema","$ref":"#/$defs/Attestor","$defs":{"Attestor":{"properties":{"devpayProductCodes":{"items":{"type":"string"},"type":"array"},"marketplaceProductCodes":{"items":{"type":"string"},"type":"array"},"availabilityZone":{"type":"string"},"privateIp":{"type":"string"},"version":{"type":"string"},"region":{"type":"string"},"instanceId":{"type":"string"},"billingProducts":{"items":{"type":"string"},"type":"array"},"instanceType":{"type":"string"},"accountId":{"type":"string"},"pendingTime":{"type":"string","format":"date-time"},"imageId":{"type":"string"},"kernelId":{"type":"string"},"ramdiskId":{"type":"string"},"architecture":{"type":"string"},"rawiid":{"type":"string"},"rawsig":{"type":"string"},"publickey":{"type":"string"}},"additionalProperties":false,"type":"object","required":["devpayProductCodes","marketplaceProductCodes","availabilityZone","privateIp","version","region","instanceId","billingProducts","instanceType","accountId","pendingTime","imageId","kernelId","ramdiskId","architecture","rawiid","rawsig","publickey"]}}}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$ref": "#/$defs/Attestor",
"$defs": {
"Attestor": {
"properties": {
"devpayProductCodes": {
"items": {
"type": "string"
},
"type": "array"
},
"marketplaceProductCodes": {
"items": {
"type": "string"
},
"type": "array"
},
"availabilityZone": {
"type": "string"
},
"privateIp": {
"type": "string"
},
"version": {
"type": "string"
},
"region": {
"type": "string"
},
"instanceId": {
"type": "string"
},
"billingProducts": {
"items": {
"type": "string"
},
"type": "array"
},
"instanceType": {
"type": "string"
},
"accountId": {
"type": "string"
},
"pendingTime": {
"type": "string",
"format": "date-time"
},
"imageId": {
"type": "string"
},
"kernelId": {
"type": "string"
},
"ramdiskId": {
"type": "string"
},
"architecture": {
"type": "string"
},
"rawiid": {
"type": "string"
},
"rawsig": {
"type": "string"
},
"publickey": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"devpayProductCodes",
"marketplaceProductCodes",
"availabilityZone",
"privateIp",
"version",
"region",
"instanceId",
"billingProducts",
"instanceType",
"accountId",
"pendingTime",
"imageId",
"kernelId",
"ramdiskId",
"architecture",
"rawiid",
"rawsig",
"publickey"
]
}
}
}
87 changes: 86 additions & 1 deletion schemagen/command-run.json
Original file line number Diff line number Diff line change
@@ -1 +1,86 @@
{"$schema":"https://json-schema.org/draft/2020-12/schema","$ref":"#/$defs/CommandRun","$defs":{"CommandRun":{"properties":{"cmd":{"items":{"type":"string"},"type":"array"},"stdout":{"type":"string"},"stderr":{"type":"string"},"exitcode":{"type":"integer"},"processes":{"items":{"$ref":"#/$defs/ProcessInfo"},"type":"array"}},"additionalProperties":false,"type":"object","required":["cmd","exitcode"]},"DigestSet":{"additionalProperties":{"type":"string"},"type":"object"},"ProcessInfo":{"properties":{"program":{"type":"string"},"processid":{"type":"integer"},"parentpid":{"type":"integer"},"programdigest":{"$ref":"#/$defs/DigestSet"},"comm":{"type":"string"},"cmdline":{"type":"string"},"exedigest":{"$ref":"#/$defs/DigestSet"},"openedfiles":{"additionalProperties":{"$ref":"#/$defs/DigestSet"},"type":"object"},"environ":{"type":"string"},"specbypassisvuln":{"type":"boolean"}},"additionalProperties":false,"type":"object","required":["processid","parentpid"]}}}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$ref": "#/$defs/CommandRun",
"$defs": {
"CommandRun": {
"properties": {
"cmd": {
"items": {
"type": "string"
},
"type": "array"
},
"stdout": {
"type": "string"
},
"stderr": {
"type": "string"
},
"exitcode": {
"type": "integer"
},
"processes": {
"items": {
"$ref": "#/$defs/ProcessInfo"
},
"type": "array"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"cmd",
"exitcode"
]
},
"DigestSet": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"ProcessInfo": {
"properties": {
"program": {
"type": "string"
},
"processid": {
"type": "integer"
},
"parentpid": {
"type": "integer"
},
"programdigest": {
"$ref": "#/$defs/DigestSet"
},
"comm": {
"type": "string"
},
"cmdline": {
"type": "string"
},
"exedigest": {
"$ref": "#/$defs/DigestSet"
},
"openedfiles": {
"additionalProperties": {
"$ref": "#/$defs/DigestSet"
},
"type": "object"
},
"environ": {
"type": "string"
},
"specbypassisvuln": {
"type": "boolean"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"processid",
"parentpid"
]
}
}
}
33 changes: 32 additions & 1 deletion schemagen/environment.json
Original file line number Diff line number Diff line change
@@ -1 +1,32 @@
{"$schema":"https://json-schema.org/draft/2020-12/schema","$ref":"#/$defs/Attestor","$defs":{"Attestor":{"properties":{"os":{"type":"string"},"hostname":{"type":"string"},"username":{"type":"string"},"variables":{"additionalProperties":{"type":"string"},"type":"object"}},"additionalProperties":false,"type":"object","required":["os","hostname","username"]}}}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$ref": "#/$defs/Attestor",
"$defs": {
"Attestor": {
"properties": {
"os": {
"type": "string"
},
"hostname": {
"type": "string"
},
"username": {
"type": "string"
},
"variables": {
"additionalProperties": {
"type": "string"
},
"type": "object"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"os",
"hostname",
"username"
]
}
}
}
66 changes: 65 additions & 1 deletion schemagen/gcp-iit.json
Original file line number Diff line number Diff line change
@@ -1 +1,65 @@
{"$schema":"https://json-schema.org/draft/2020-12/schema","$ref":"#/$defs/Attestor","$defs":{"Attestor":{"properties":{"jwt":{"$ref":"#/$defs/Attestor"},"project_id":{"type":"string"},"project_number":{"type":"string"},"zone":{"type":"string"},"instance_id":{"type":"string"},"instance_hostname":{"type":"string"},"instance_creation_timestamp":{"type":"string"},"instance_confidentiality":{"type":"string"},"licence_id":{"items":{"type":"string"},"type":"array"},"cluster_name":{"type":"string"},"cluster_uid":{"type":"string"},"cluster_location":{"type":"string"}},"additionalProperties":false,"type":"object","required":["jwt","project_id","project_number","zone","instance_id","instance_hostname","instance_creation_timestamp","instance_confidentiality","licence_id","cluster_name","cluster_uid","cluster_location"]}}}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$ref": "#/$defs/Attestor",
"$defs": {
"Attestor": {
"properties": {
"jwt": {
"$ref": "#/$defs/Attestor"
},
"project_id": {
"type": "string"
},
"project_number": {
"type": "string"
},
"zone": {
"type": "string"
},
"instance_id": {
"type": "string"
},
"instance_hostname": {
"type": "string"
},
"instance_creation_timestamp": {
"type": "string"
},
"instance_confidentiality": {
"type": "string"
},
"licence_id": {
"items": {
"type": "string"
},
"type": "array"
},
"cluster_name": {
"type": "string"
},
"cluster_uid": {
"type": "string"
},
"cluster_location": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"jwt",
"project_id",
"project_number",
"zone",
"instance_id",
"instance_hostname",
"instance_creation_timestamp",
"instance_confidentiality",
"licence_id",
"cluster_name",
"cluster_uid",
"cluster_location"
]
}
}
}
Loading

0 comments on commit 009796d

Please sign in to comment.