diff --git a/client_reference/kosli_attest_custom.md b/client_reference/kosli_attest_custom.md
index ea1eec7..b2b600e 100644
--- a/client_reference/kosli_attest_custom.md
+++ b/client_reference/kosli_attest_custom.md
@@ -11,7 +11,10 @@ kosli attest custom [IMAGE-NAME | FILE-PATH | DIR-PATH] [flags]
Report a custom attestation to an artifact or a trail in a Kosli flow.
The name of the custom attestation type is specified using the `--type` flag.
-The path to the JSON file the custom type will evaluate is specified using the `--attestation-data` flag.
+The path to the JSON or YAML file the custom type will evaluate is specified using the `--attestation-data` flag.
+A `.yaml` or `.yml` file is converted to JSON before it is sent: dates and timestamps stay strings exactly as written,
+`yes`, `no`, `on` and `off` stay strings, and aliases and merge keys are resolved. Duplicate keys are an error.
+A YAML file with several documents needs `--attestation-data-as-list`, which sends the documents as a JSON list.
The attestation can be bound to a *trail* using the trail name.
@@ -45,7 +48,8 @@ In other CI systems, set them explicitly to capture repository metadata.
| `--annotate` | stringToString | [optional] Annotate the attestation with data using key=value. |
| `-t`, `--artifact-type` | string | The type of the artifact to calculate its SHA256 fingerprint. One of: [oci, docker, file, dir]. Only required if you want Kosli to calculate the fingerprint for you (i.e. when you don't specify '`--fingerprint`' on commands that allow it). |
| `--attachments` | strings | [optional] The comma-separated list of paths of attachments for the reported attestation. Attachments can be files or directories. All attachments are compressed and uploaded to Kosli's evidence vault. |
-| `--attestation-data` | string | The filepath of a JSON file containing the custom attestation data. The maximum JSON payload size is 1MB. |
+| `--attestation-data` | string | The filepath of a JSON or YAML file containing the custom attestation data. The file extension picks the format: .yaml and .yml files are converted to JSON, any other file is read as JSON. In YAML, a number with a leading zero is read as octal (0644 becomes 420), so quote version-like values and codes ("1.10", "0123") to keep them as written. The maximum JSON payload size is 1MB, measured after conversion. |
+| `--attestation-data-as-list` | bool | [optional] Send the custom attestation data as a list with one item per document in the file. A YAML file with several documents (separated by ---) needs this flag; empty documents are skipped. A JSON file is one document, so its value is wrapped in a list of one. |
| `-g`, `--commit` | string | [conditional] The git commit for which the attestation is associated to. Becomes required when reporting an attestation for an artifact before reporting it to Kosli. (defaulted in some CIs: [docs](/integrations/ci_cd) ). If both `--commit` and `--repo-root` are left at their defaults and the commit cannot be read from the repository, a warning is printed and the attestation is sent without commit info. |
| `--description` | string | [optional] attestation description |
| `-D`, `--dry-run` | bool | [optional] Run in dry-run mode. When enabled, no data is sent to Kosli and the CLI exits with 0 exit code regardless of any errors. |
@@ -146,6 +150,16 @@ kosli attest custom
--name yourAttestationName
--attestation-data yourJsonFilePath
--attachments yourAttachmentPathName
+
+```
+
+
+```shell
+kosli attest custom
+ --type customTypeName
+ --name yourAttestationName
+ --attestation-data yourYamlFilePath
+ --attestation-data-as-list
```
diff --git a/client_reference/kosli_diff_snapshots.md b/client_reference/kosli_diff_snapshots.md
index 6768887..2ab687f 100644
--- a/client_reference/kosli_diff_snapshots.md
+++ b/client_reference/kosli_diff_snapshots.md
@@ -70,8 +70,16 @@ kosli diff snapshots aws-beta aws-prod --output=json
```json
{
"snappish1": {
- "snapshot_id": "aws-beta#9011",
+ "snapshot_id": "aws-beta#9014",
"artifacts": [
+ {
+ "fingerprint": "258949b0f1344283f271c2477ee02ae6aa2856d6238556759d4bf5699d928646",
+ "name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/dashboard:e181563@sha256:258949b0f1344283f271c2477ee02ae6aa2856d6238556759d4bf5699d928646",
+ "most_recent_timestamp": 1796117791,
+ "flow": "dashboard-ci",
+ "commit_url": "https://github.com/cyber-dojo/web/commit/e1815634cf9e6279c2df7acf527db5ca034ac3cc",
+ "instance_count": 1
+ },
{
"fingerprint": "4fbeb5b0d5b801f9877ff8a83120042b2a6ee54a38ac4dfe9eda6710e43ae350",
"name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/runner:e9c7c94@sha256:4fbeb5b0d5b801f9877ff8a83120042b2a6ee54a38ac4dfe9eda6710e43ae350",
@@ -88,6 +96,14 @@ kosli diff snapshots aws-beta aws-prod --output=json
"commit_url": "https://github.com/cyber-dojo/saver/commit/c6892657bcbec4570e781918d9dc20496a8d4179",
"instance_count": 1
},
+ {
+ "fingerprint": "cba2e575592ab82c33dd3ac5def54d84511f45a4de8fa934d29627adff309be1",
+ "name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/creator:e181563@sha256:cba2e575592ab82c33dd3ac5def54d84511f45a4de8fa934d29627adff309be1",
+ "most_recent_timestamp": 1796117906,
+ "flow": "creator-ci",
+ "commit_url": "https://github.com/cyber-dojo/web/commit/e1815634cf9e6279c2df7acf527db5ca034ac3cc",
+ "instance_count": 1
+ },
{
"fingerprint": "ccb581f5790b3ce421b351d1fab1a81302a821f433ed273dd3723f76a6c39a3e",
"name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/spooler:d200b81@sha256:ccb581f5790b3ce421b351d1fab1a81302a821f433ed273dd3723f76a6c39a3e",
@@ -95,12 +111,44 @@ kosli diff snapshots aws-beta aws-prod --output=json
"flow": "spooler-ci",
"commit_url": "https://github.com/cyber-dojo/spooler/commit/d200b81309bd7923eff65311beb0f57e90b1c799",
"instance_count": 1
+ },
+ {
+ "fingerprint": "e849442a0b3a0feae95749fa49a256d4d27a933fc59b930b265a54a8de188072",
+ "name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/web:e181563@sha256:e849442a0b3a0feae95749fa49a256d4d27a933fc59b930b265a54a8de188072",
+ "most_recent_timestamp": 1796117836,
+ "flow": "web-ci",
+ "commit_url": "https://github.com/cyber-dojo/web/commit/e1815634cf9e6279c2df7acf527db5ca034ac3cc",
+ "instance_count": 3
}
]
},
"snappish2": {
"snapshot_id": "aws-prod#5668",
"artifacts": [
+ {
+ "fingerprint": "190c8fe875865d44caedea787e083c4abdfb9c4457d5d9693f93dda8224459b6",
+ "name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/creator:f1e01c2@sha256:190c8fe875865d44caedea787e083c4abdfb9c4457d5d9693f93dda8224459b6",
+ "most_recent_timestamp": 1796045361,
+ "flow": "creator-ci",
+ "commit_url": "https://github.com/cyber-dojo/web/commit/f1e01c293f3dd898c4abdcd6ac80612fe643eb6e",
+ "instance_count": 1
+ },
+ {
+ "fingerprint": "93435bc5e86de7f0eaf2dad741fa7c3bf6646dfaace6094db754b2b40b1fe9ed",
+ "name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/web:f1e01c2@sha256:93435bc5e86de7f0eaf2dad741fa7c3bf6646dfaace6094db754b2b40b1fe9ed",
+ "most_recent_timestamp": 1796045446,
+ "flow": "web-ci",
+ "commit_url": "https://github.com/cyber-dojo/web/commit/f1e01c293f3dd898c4abdcd6ac80612fe643eb6e",
+ "instance_count": 3
+ },
+ {
+ "fingerprint": "a45a4ae85425230afaa73a78e1f3fe156617ba0bbda5476cff35c5a75e9512bb",
+ "name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/dashboard:f1e01c2@sha256:a45a4ae85425230afaa73a78e1f3fe156617ba0bbda5476cff35c5a75e9512bb",
+ "most_recent_timestamp": 1796045591,
+ "flow": "dashboard-ci",
+ "commit_url": "https://github.com/cyber-dojo/web/commit/f1e01c293f3dd898c4abdcd6ac80612fe643eb6e",
+ "instance_count": 1
+ },
{
"fingerprint": "a58e61ad43754c9b7c1b31056b450a7c4c15122074b0af54eaf2f547ebe61d39",
"name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/runner:37c1a58@sha256:a58e61ad43754c9b7c1b31056b450a7c4c15122074b0af54eaf2f547ebe61d39",
@@ -132,14 +180,6 @@ kosli diff snapshots aws-beta aws-prod --output=json
},
"not-changed": {
"artifacts": [
- {
- "fingerprint": "190c8fe875865d44caedea787e083c4abdfb9c4457d5d9693f93dda8224459b6",
- "name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/creator:f1e01c2@sha256:190c8fe875865d44caedea787e083c4abdfb9c4457d5d9693f93dda8224459b6",
- "most_recent_timestamp": 1796045361,
- "flow": "creator-ci",
- "commit_url": "https://github.com/cyber-dojo/web/commit/f1e01c293f3dd898c4abdcd6ac80612fe643eb6e",
- "instance_count": 1
- },
{
"fingerprint": "249602ddeee044dd8235458ab5c9b91f12633cf919e2af1255d83255cb7b4547",
"name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/differ:fef1256@sha256:249602ddeee044dd8235458ab5c9b91f12633cf919e2af1255d83255cb7b4547",
@@ -172,22 +212,6 @@ kosli diff snapshots aws-beta aws-prod --output=json
"commit_url": "https://github.com/cyber-dojo/custom-start-points/commit/9efb32ea9284ce621603fd8c38f645c486743fad",
"instance_count": 1
},
- {
- "fingerprint": "93435bc5e86de7f0eaf2dad741fa7c3bf6646dfaace6094db754b2b40b1fe9ed",
- "name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/web:f1e01c2@sha256:93435bc5e86de7f0eaf2dad741fa7c3bf6646dfaace6094db754b2b40b1fe9ed",
- "most_recent_timestamp": 1796045446,
- "flow": "web-ci",
- "commit_url": "https://github.com/cyber-dojo/web/commit/f1e01c293f3dd898c4abdcd6ac80612fe643eb6e",
- "instance_count": 3
- },
- {
- "fingerprint": "a45a4ae85425230afaa73a78e1f3fe156617ba0bbda5476cff35c5a75e9512bb",
- "name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/dashboard:f1e01c2@sha256:a45a4ae85425230afaa73a78e1f3fe156617ba0bbda5476cff35c5a75e9512bb",
- "most_recent_timestamp": 1796045591,
- "flow": "dashboard-ci",
- "commit_url": "https://github.com/cyber-dojo/web/commit/f1e01c293f3dd898c4abdcd6ac80612fe643eb6e",
- "instance_count": 1
- },
{
"fingerprint": "f872399b60ad6c1874390585f58cf4eeb18debec89aa90273ac30e3261be0bca",
"name": "244531986313.dkr.ecr.eu-central-1.amazonaws.com/languages-start-points:c843146@sha256:f872399b60ad6c1874390585f58cf4eeb18debec89aa90273ac30e3261be0bca",
diff --git a/client_reference/kosli_get_environment.md b/client_reference/kosli_get_environment.md
index 00a63ef..36d96b5 100644
--- a/client_reference/kosli_get_environment.md
+++ b/client_reference/kosli_get_environment.md
@@ -55,8 +55,8 @@ kosli get environment aws-prod --output=json
"name": "aws-prod",
"type": "ECS",
"description": "The ECS cluster for production cyber-dojo",
- "last_modified_at": 1796066158.3614018,
- "last_reported_at": 1796066158.3614018,
+ "last_modified_at": 1796139136.0441077,
+ "last_reported_at": 1796139136.0441077,
"last_changed_at": 1796045998.360045,
"state": true,
"include_scaling": false,
diff --git a/client_reference/kosli_get_flow.md b/client_reference/kosli_get_flow.md
index f983982..05f4fdb 100644
--- a/client_reference/kosli_get_flow.md
+++ b/client_reference/kosli_get_flow.md
@@ -62,7 +62,9 @@ kosli get flow dashboard-ci --output=json
"ci": "github",
"repo_url": "https://github.com/cyber-dojo/web",
"kind": "build",
- "env": "aws-beta"
+ "env": "aws-beta",
+ "release-trails": "*",
+ "ships-releases": "true"
}
}
```
diff --git a/client_reference/kosli_get_trail.md b/client_reference/kosli_get_trail.md
index 3eac4e2..9439241 100644
--- a/client_reference/kosli_get_trail.md
+++ b/client_reference/kosli_get_trail.md
@@ -856,7 +856,9 @@ kosli get trail dashboard-ci e4757683b74df7033c95aa544a7824b395c2f8bb --output=j
"ci": "github",
"repo_url": "https://github.com/cyber-dojo/web",
"kind": "build",
- "env": "aws-beta"
+ "env": "aws-beta",
+ "release-trails": "*",
+ "ships-releases": "true"
}
},
"external_urls": null,
diff --git a/client_reference/kosli_list_environments.md b/client_reference/kosli_list_environments.md
index ac11b58..94eda5f 100644
--- a/client_reference/kosli_list_environments.md
+++ b/client_reference/kosli_list_environments.md
@@ -67,9 +67,9 @@ kosli list environments --output=json
"name": "aws-beta",
"type": "ECS",
"description": "The ECS cluster for staging cyber-dojo",
- "last_modified_at": 1796066183.908091,
- "last_reported_at": 1796066183.908091,
- "last_changed_at": 1796055563.8048663,
+ "last_modified_at": 1796139145.1468468,
+ "last_reported_at": 1796139145.1468468,
+ "last_changed_at": 1796117963.8569143,
"state": true,
"include_scaling": false,
"tags": {
@@ -90,9 +90,9 @@ kosli list environments --output=json
"name": "aws-beta-terraform-drift-detection",
"type": "server",
"description": "Detection of drift of the Infrastructure-as-code components of aws-beta",
- "last_modified_at": 1796066109.0590162,
- "last_reported_at": 1796066109.0590162,
- "last_changed_at": 1796055908.5732284,
+ "last_modified_at": 1796139009.374725,
+ "last_reported_at": 1796139009.374725,
+ "last_changed_at": 1796118308.9398153,
"state": true,
"include_scaling": false,
"tags": {},
@@ -108,8 +108,8 @@ kosli list environments --output=json
"name": "aws-prod",
"type": "ECS",
"description": "The ECS cluster for production cyber-dojo",
- "last_modified_at": 1796066158.3614018,
- "last_reported_at": 1796066158.3614018,
+ "last_modified_at": 1796139136.0441077,
+ "last_reported_at": 1796139136.0441077,
"last_changed_at": 1796045998.360045,
"state": true,
"include_scaling": false,
@@ -132,8 +132,8 @@ kosli list environments --output=json
"name": "aws-prod-terraform-drift-detection",
"type": "server",
"description": "Detection of drift of the Infrastructure-as-code components of aws-prod",
- "last_modified_at": 1796066012.1063197,
- "last_reported_at": 1796066012.1063197,
+ "last_modified_at": 1796138912.1305978,
+ "last_reported_at": 1796138912.1305978,
"last_changed_at": 1796046512.0178065,
"state": true,
"include_scaling": false,
@@ -169,9 +169,9 @@ kosli list environments --output=json
"name": "staging",
"type": "logical",
"description": "Staging environments for cyber-dojo",
- "last_modified_at": 1796055908.5732284,
+ "last_modified_at": 1796118308.9398153,
"last_reported_at": null,
- "last_changed_at": 1796055908.5732284,
+ "last_changed_at": 1796118308.9398153,
"state": true,
"include_scaling": false,
"tags": {},
diff --git a/client_reference/kosli_list_flows.md b/client_reference/kosli_list_flows.md
index 1d12f0f..1901b46 100644
--- a/client_reference/kosli_list_flows.md
+++ b/client_reference/kosli_list_flows.md
@@ -67,7 +67,7 @@ kosli list flows --output=json
"template": "version: 1\ntrail:\n attestations:\n - name: drift-detection\n type: decision\n",
"repo_url": "",
"tags": {},
- "latest_activity_at": 1795998323.9962578,
+ "latest_activity_at": 1796066810.8660243,
"latest_state": "COMPLIANT"
},
{
@@ -79,7 +79,7 @@ kosli list flows --output=json
"template": "version: 1\ntrail:\n attestations:\n - name: drift-detection\n type: decision\n",
"repo_url": "",
"tags": {},
- "latest_activity_at": 1795998318.0379457,
+ "latest_activity_at": 1796066811.1768854,
"latest_state": "COMPLIANT"
},
{
@@ -94,9 +94,11 @@ kosli list flows --output=json
"ci": "github",
"repo_url": "https://github.com/cyber-dojo/web",
"kind": "build",
- "env": "aws-beta"
+ "env": "aws-beta",
+ "release-trails": "*",
+ "ships-releases": "true"
},
- "latest_activity_at": 1796045458.4525013,
+ "latest_activity_at": 1796117963.8569143,
"latest_state": "COMPLIANT"
},
{
@@ -128,9 +130,11 @@ kosli list flows --output=json
"ci": "github",
"repo_url": "https://github.com/cyber-dojo/web",
"kind": "build",
- "env": "aws-beta"
+ "env": "aws-beta",
+ "release-trails": "*",
+ "ships-releases": "true"
},
- "latest_activity_at": 1796045638.4697764,
+ "latest_activity_at": 1796117843.9486358,
"latest_state": "COMPLIANT"
},
{
@@ -380,7 +384,7 @@ kosli list flows --output=json
"template": "version: 1\ntrail:\n attestations:\n - name: terraform-plan\n type: generic\n - name: terraform-apply\n type: generic\n artifacts:\n - name: terraform-state\n - name: drift-plan\n",
"repo_url": "https://github.com/cyber-dojo/web",
"tags": {},
- "latest_activity_at": 1796044808.685545,
+ "latest_activity_at": 1796118308.9398153,
"latest_state": "COMPLIANT"
},
{
@@ -404,7 +408,7 @@ kosli list flows --output=json
"template": "version: 1\ntrail:\n attestations:\n - name: terraform-plan\n type: generic\n - name: terraform-apply\n type: generic\n artifacts:\n - name: terraform-state\n - name: drift-plan\n",
"repo_url": "https://github.com/cyber-dojo/web",
"tags": {},
- "latest_activity_at": 1796044808.685545,
+ "latest_activity_at": 1796118308.9398153,
"latest_state": "COMPLIANT"
},
{
@@ -512,7 +516,7 @@ kosli list flows --output=json
"template": "version: 1\ntrail:\n attestations:\n - name: terraform-plan\n type: generic\n - name: terraform-apply\n type: generic\n artifacts:\n - name: terraform-state\n - name: drift-plan\n",
"repo_url": "https://github.com/cyber-dojo/web",
"tags": {},
- "latest_activity_at": 1796044808.685545,
+ "latest_activity_at": 1796118308.9398153,
"latest_state": "COMPLIANT"
},
{
@@ -707,9 +711,11 @@ kosli list flows --output=json
"ci": "github",
"repo_url": "https://github.com/cyber-dojo/web",
"kind": "build",
- "env": "aws-beta"
+ "env": "aws-beta",
+ "release-trails": "*",
+ "ships-releases": "true"
},
- "latest_activity_at": 1796045518.543297,
+ "latest_activity_at": 1796117903.9971433,
"latest_state": "COMPLIANT"
}
]
diff --git a/client_reference/kosli_list_snapshots.md b/client_reference/kosli_list_snapshots.md
index 62dbd7f..4db8831 100644
--- a/client_reference/kosli_list_snapshots.md
+++ b/client_reference/kosli_list_snapshots.md
@@ -72,7 +72,7 @@ kosli list snapshots aws-prod --output=json
"from": 1796045998.360045,
"to": 0.0,
"compliant": true,
- "duration": 20220.011751890182
+ "duration": 93175.27080750465
},
{
"index": 5667,
diff --git a/client_reference/overview.md b/client_reference/overview.md
index 1b71790..da4ebaf 100644
--- a/client_reference/overview.md
+++ b/client_reference/overview.md
@@ -4,7 +4,7 @@ description: "Reference documentation for the Kosli CLI."
---
- This reference was generated from Kosli CLI **v2.61.0**.
+ This reference was generated from Kosli CLI **v2.61.1**.
The Kosli CLI allows you to interact with Kosli from your terminal and CI/CD pipelines.