You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/quickstart.mdx
+50-10Lines changed: 50 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -50,34 +50,74 @@ This quickstart will guide you through the process of installing the Chainloop C
50
50
Chainloop workflows represent any CI or process you might want to attest. Check [this doc](/getting-started/workflow-definition) for a complete explanation of Workflows and Contracts.
51
51
You might also want to check our [contract reference](/reference/operator/contract).
52
52
53
+
We can check what kind materials the contract expects by checking the output of `attestation init` command:
54
+
53
55
```bash
54
-
chainloop att init --workflow mywf --project myproject
56
+
chainloop att init --workflow mywf --project myproject --contract https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/quickstart/quickstart-contract.yaml
57
+
INF Attestation initialized! now you can check its status or add materials to it
We can see how the contract expects a container image, an SBOM, and a vulnerability report. We can also see that the SBOM is not required and neither the vulnerability report, but the container image is.
56
92
57
-
Once attestation is initiated, we can start [adding materials](/getting-started/attestation-crafting#adding-materials) to it.
58
-
In this case we are adding an OCI container image.
93
+
Once attestation is initiated, we can start [adding materials](/getting-started/attestation-crafting#adding-materials) to it.
94
+
In this case we are adding an OCI container image, SBOM, and a vulnerability report.
59
95
Many other material types are supported, check the [updated the list](/reference/operator/contract#material-schema)
60
96
61
97
```bash
62
-
chainloop att add --value ghcr.io/chainloop-dev/chainloop/control-plane:latest
98
+
chainloop att add --name container --value ghcr.io/chainloop-dev/chainloop/control-plane:latest
63
99
```
64
100
65
-
We just attested the latest version of the control-plane image as an example, remember that you can provide any material you want to attest by pointing to a local filepath too, like for example
101
+
We just attested the latest version of the control-plane image as an example, remember that you can provide any material you want to attest by pointing to a local filepath or URL too, like for example
66
102
67
103
```bash
68
-
chainloop att add --value my-sbom.json
104
+
chainloop att add --name sbom --value https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/quickstart/sbom.json
69
105
```
70
106
71
-
:::info
72
-
The piece of evidence kind were automatically detected, learn more about auto-discover [here](reference/attestations.md).
73
-
:::
107
+
And finally, we can add a vulnerability report:
74
108
75
-
And finally [we sign and push the attestation](/getting-started/attestation-crafting#encode-sign-and-push-attestation) to Chainloop for permanent preservation.
109
+
```bash
110
+
chainloop att add --name vulnerabilities-report --value https://raw.githubusercontent.com/chainloop-dev/chainloop/refs/heads/main/docs/examples/quickstart/vulnerabilities-report.json
111
+
```
112
+
113
+
Once all the materials are pushed we can finally [sign and push the attestation](/getting-started/attestation-crafting#encode-sign-and-push-attestation) to Chainloop for permanent preservation.
76
114
77
115
```bash
78
116
chainloop att push
79
117
```
80
118
119
+
Transparently, Chainloop has signed the attestation and pushed it to the Chainloop Control Plane. You can learn more about the different [signing and verification methods](/reference/signing) in the Chainloop documentation.
120
+
81
121
6. Operate on your data:
82
122
83
123
At this point, we've performed our first attestation, now we can just play with the Chainloop CLI to inspect the attestation, verify it and so on.
0 commit comments