Skip to content

Commit

Permalink
Update CoSWID templates to include tag ID and version, and refine ent…
Browse files Browse the repository at this point in the history
…ity structure

Signed-off-by: Priyanshu Thapliyal <[email protected]>
  • Loading branch information
Priyanshuthapliyal2005 committed Jan 12, 2025
1 parent 7243763 commit 42726c2
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 38 deletions.
Binary file modified cocli.exe
Binary file not shown.
Binary file modified data/coswid/coswid-full.cbor
Binary file not shown.
Binary file added data/coswid/coswid-meta-full.cbor
Binary file not shown.
Binary file added data/coswid/coswid-meta-mini.cbor
Binary file not shown.
37 changes: 18 additions & 19 deletions data/coswid/templates/coswid-full.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,32 @@
"software-name": "Example Software",
"profile": "http://example.com/cosmid/profile/1",
"validity": {
"not-before": "2023-01-01T00:00:00Z",
"not-after": "2025-01-01T00:00:00Z"
"not-before": "2023-01-01T00:00:00Z",
"not-after": "2025-01-01T00:00:00Z"
},
"entity": [
{
"entity-name": "Example Ltd.",
"reg-id": "https://example.com",
"role": [
"tag-creator"
]
}
{
"entity-name": "Example Ltd signing key",
"reg-id": "https://example.com",
"role": ["tag-creator"]
}
],
"version-scheme": "multipartnumeric",
"link": [
{
"rel": "parent",
"href": "https://parent.example/rims/ccb3aa85-61b4-40f1-848e-02ad6e8a254b",
"thumbprint": {
"hash-alg-id": 1,
"hash-value": "5Fty9cDAtXLbTY06t+l/No/3TmI0eoJN7LZ6hOUiTXU="
}
{
"rel": "parent",
"href": "https://parent.example/rims/ccb3aa85-61b4-40f1-848e-02ad6e8a254b",
"thumbprint": {
"hash-alg-id": 1,
"hash-value": "5Fty9cDAtXLbTY06t+l/No/3TmI0eoJN7LZ6hOUiTXU="
}
}
],
"payload": {
"data": "Sample payload data"
"data": "Sample payload data"
},
"evidence": {
"type": "example-evidence",
"value": "Evidence details"
"type": "example-evidence",
"value": "Evidence details"
}
}
26 changes: 13 additions & 13 deletions data/coswid/templates/coswid-meta-full.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"signer": {
"tag-id": "123e4567-e89b-12d3-a456-426614174000",
"tag-version": 1,
"software-name": "Example Software",
"profile": "http://example.com/cosmid/profile/1",
"validity": {
"not-before": "2023-01-01T00:00:00Z",
"not-after": "2025-01-01T00:00:00Z"
},
"entity": [
{
"entity-name": "Example Ltd signing key",
"reg-id": "https://example.com",
"role": [
"tag-creator"
],
"thumbprint": {
"hash-alg-id": 1,
"hash-value": "dGVzdGhhc2g="
}
},
"validity": {
"not-before": "2023-01-01T00:00:00Z",
"not-after": "2025-01-01T00:00:00Z"
}
"role": ["tag-creator"]
}
]
}
17 changes: 11 additions & 6 deletions data/coswid/templates/coswid-meta-mini.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
{
"signer": {
"tag-id": "123e4567-e89b-12d3-a456-426614174000",
"tag-version": 1,
"software-name": "Example Software",
"profile": "http://example.com/cosmid/profile/1",
"entity": [
{
"entity-name": "Example Ltd signing key",
"role": [
"tag-creator"
]
}
}
"reg-id": "https://example.com",
"role": ["tag-creator"]
}
]
}

0 comments on commit 42726c2

Please sign in to comment.