-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
551 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$ref": "#/$defs/Attestor", | ||
"$defs": { | ||
"Attestor": { | ||
"properties": { | ||
"Envelope": { | ||
"$ref": "#/$defs/Envelope" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object", | ||
"required": [ | ||
"Envelope" | ||
] | ||
}, | ||
"Element": { | ||
"properties": { | ||
"type": { | ||
"type": "string" | ||
}, | ||
"sha1": { | ||
"type": "string" | ||
}, | ||
"sha256": { | ||
"type": "string" | ||
}, | ||
"gitoid:sha1": { | ||
"type": "string" | ||
}, | ||
"gitoid:sha256": { | ||
"type": "string" | ||
}, | ||
"posix": { | ||
"$ref": "#/$defs/Posix" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object", | ||
"required": [ | ||
"type" | ||
] | ||
}, | ||
"Envelope": { | ||
"properties": { | ||
"header": { | ||
"$ref": "#/$defs/Header" | ||
}, | ||
"mapping": { | ||
"additionalProperties": { | ||
"$ref": "#/$defs/Element" | ||
}, | ||
"type": "object" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object", | ||
"required": [ | ||
"header", | ||
"mapping" | ||
] | ||
}, | ||
"Feature": { | ||
"properties": { | ||
"algorithms": { | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object" | ||
}, | ||
"Header": { | ||
"properties": { | ||
"features": { | ||
"additionalProperties": { | ||
"$ref": "#/$defs/Feature" | ||
}, | ||
"type": "object" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object", | ||
"required": [ | ||
"features" | ||
] | ||
}, | ||
"Posix": { | ||
"properties": { | ||
"atime": { | ||
"type": "string" | ||
}, | ||
"ctime": { | ||
"type": "string" | ||
}, | ||
"creation_time": { | ||
"type": "string" | ||
}, | ||
"extended_attributes": { | ||
"type": "string" | ||
}, | ||
"file_device_id": { | ||
"type": "string" | ||
}, | ||
"file_flags": { | ||
"type": "string" | ||
}, | ||
"file_inode": { | ||
"type": "string" | ||
}, | ||
"file_system_id": { | ||
"type": "string" | ||
}, | ||
"file_type": { | ||
"type": "string" | ||
}, | ||
"hard_link_count": { | ||
"type": "string" | ||
}, | ||
"mtime": { | ||
"type": "string" | ||
}, | ||
"metadata_ctime": { | ||
"type": "string" | ||
}, | ||
"owner_gid": { | ||
"type": "string" | ||
}, | ||
"owner_uid": { | ||
"type": "string" | ||
}, | ||
"permissions": { | ||
"type": "string" | ||
}, | ||
"size": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
## Schema | ||
```json | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$ref": "#/$defs/Attestor", | ||
"$defs": { | ||
"Attestor": { | ||
"properties": { | ||
"Envelope": { | ||
"$ref": "#/$defs/Envelope" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object", | ||
"required": [ | ||
"Envelope" | ||
] | ||
}, | ||
"Element": { | ||
"properties": { | ||
"type": { | ||
"type": "string" | ||
}, | ||
"sha1": { | ||
"type": "string" | ||
}, | ||
"sha256": { | ||
"type": "string" | ||
}, | ||
"gitoid:sha1": { | ||
"type": "string" | ||
}, | ||
"gitoid:sha256": { | ||
"type": "string" | ||
}, | ||
"posix": { | ||
"$ref": "#/$defs/Posix" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object", | ||
"required": [ | ||
"type" | ||
] | ||
}, | ||
"Envelope": { | ||
"properties": { | ||
"header": { | ||
"$ref": "#/$defs/Header" | ||
}, | ||
"mapping": { | ||
"additionalProperties": { | ||
"$ref": "#/$defs/Element" | ||
}, | ||
"type": "object" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object", | ||
"required": [ | ||
"header", | ||
"mapping" | ||
] | ||
}, | ||
"Feature": { | ||
"properties": { | ||
"algorithms": { | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object" | ||
}, | ||
"Header": { | ||
"properties": { | ||
"features": { | ||
"additionalProperties": { | ||
"$ref": "#/$defs/Feature" | ||
}, | ||
"type": "object" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object", | ||
"required": [ | ||
"features" | ||
] | ||
}, | ||
"Posix": { | ||
"properties": { | ||
"atime": { | ||
"type": "string" | ||
}, | ||
"ctime": { | ||
"type": "string" | ||
}, | ||
"creation_time": { | ||
"type": "string" | ||
}, | ||
"extended_attributes": { | ||
"type": "string" | ||
}, | ||
"file_device_id": { | ||
"type": "string" | ||
}, | ||
"file_flags": { | ||
"type": "string" | ||
}, | ||
"file_inode": { | ||
"type": "string" | ||
}, | ||
"file_system_id": { | ||
"type": "string" | ||
}, | ||
"file_type": { | ||
"type": "string" | ||
}, | ||
"hard_link_count": { | ||
"type": "string" | ||
}, | ||
"mtime": { | ||
"type": "string" | ||
}, | ||
"metadata_ctime": { | ||
"type": "string" | ||
}, | ||
"owner_gid": { | ||
"type": "string" | ||
}, | ||
"owner_uid": { | ||
"type": "string" | ||
}, | ||
"permissions": { | ||
"type": "string" | ||
}, | ||
"size": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object" | ||
} | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://github.com/in-toto/go-witness/attestation/sbom/sbom-attestor", | ||
"$ref": "#/$defs/SBOMAttestor", | ||
"$defs": { | ||
"SBOMAttestor": { | ||
"properties": { | ||
"SBOMDocument": true | ||
}, | ||
"additionalProperties": false, | ||
"type": "object", | ||
"required": [ | ||
"SBOMDocument" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# SBOM Attestor | ||
|
||
The SBOM attestor records the contents of any [products](./product.md) that are valid [CycloneDX](https://cyclonedx.org/specification/overview/) or [SPDX](https://spdx.dev/learn/overview/) json files. The SBOM file is parsed and the contents are recorded in the attestation. | ||
|
||
## Schema | ||
```json | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://github.com/in-toto/go-witness/attestation/sbom/sbom-attestor", | ||
"$ref": "#/$defs/SBOMAttestor", | ||
"$defs": { | ||
"SBOMAttestor": { | ||
"properties": { | ||
"SBOMDocument": true | ||
}, | ||
"additionalProperties": false, | ||
"type": "object", | ||
"required": [ | ||
"SBOMDocument" | ||
] | ||
} | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.