Skip to content

Commit 7ee4a32

Browse files
doc: Cosign plugin doc (#5665)
* doc for cosign plugin * edits in task name * updates in intro and other fixes. * Attached link to Cosign GitHub repo * Hyperlink fixes --------- Co-authored-by: ashokdevtron <141001279+ashokdevtron@users.noreply.github.com>
1 parent 80f0758 commit 7ee4a32

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

docs/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@
136136
* [Code-Scan](user-guide/plugins/code-scan.md)
137137
* [Copacetic](user-guide/plugins/copacetic.md)
138138
* [Copy Container Image](user-guide/plugins/copy-container-image.md)
139+
* [Cosign](user-guide/plugins/cosign.md)
139140
* [Dependency track - Maven & Gradle](user-guide/plugins/dependency-track-maven-gradle.md)
140141
* [Dependency track - NodeJS](user-guide/plugins/dependency-track-nodejs.md)
141142
* [Dependency track - Python](user-guide/plugins/dependency-track-python.md)

docs/user-guide/plugins/cosign.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Cosign
2+
3+
## Introduction
4+
The **Cosign** plugin by Devtron enables secure signing of your container images, enhancing supply chain security. It authenticates your identity as the creator and ensures image integrity, allowing users to verify the source and detect any tampering. This provides greater assurance to developers incorporating your artifacts into their workflows.
5+
6+
### Prerequisites
7+
Before integrating the Cosign plugin, ensure that you have configured the [Cosign](https://github.com/sigstore/cosign) and have a set of private and public keys to sign the container images.
8+
9+
---
10+
11+
## Steps
12+
1. Go to **Applications****Devtron Apps**.
13+
2. Click your application.
14+
3. Go to **App Configuration****Workflow Editor**.
15+
4. Click **New Workflow** and navigate to the **Build and Deploy from Source Code**.
16+
5. Fill the required fields in the **Create build pipeline** window and navigate to the **Post-build stage**.
17+
18+
{% hint style="warning" %}
19+
If you have already configured workflow, edit the build pipeline, and navigate to **Post-build stage**.
20+
{% endhint %}
21+
22+
6. Under 'TASKS', click the **+ Add task** button.
23+
7. Click the **Cosign** plugin.
24+
8. Enter the following [user inputs](#user-inputs) with appropriate values.
25+
---
26+
27+
## User Inputs
28+
29+
### Task Name
30+
Enter the name of your task
31+
32+
e.g., `Signing of container images`
33+
34+
### Description
35+
Add a brief explanation of the task and the reason for choosing the plugin. Include information for someone else to understand the purpose of the task.
36+
37+
e.g., `The Cosign plugin is integrated for ensuring the authenticity of container images.`
38+
39+
### Input Variables
40+
41+
| Variable | Format | Description | Sample Value |
42+
| ------------------------ | ------------ | ----------- | ------------ |
43+
| PrivateKeyFilePath | STRING | Path of private key file in Git repo | cosign/cosign.key |
44+
| PostCommand | STRING | Command to run after image is signed by Cosign | cosign verify $DOCKER_IMAGE |
45+
| ExtraArguments | STRING | Arguments for Cosign command | --certificate-identity=name@example.com |
46+
| CosignPassword | STRING | Password for Cosign private key | S3cur3P@ssw0rd123! |
47+
| VariableAsPrivateKey | STRING | base64 encoded private-key | @{{COSIGN_PRIVATE_KEY}} |
48+
| PreCommand | STRING | Command to get the required conditions to execute Cosign command | curl -sLJO https://raw.githubusercontent.com/devtron-labs/sampleRepo/branchName/private |
49+
50+
### Trigger/Skip Condition
51+
Here you can set conditions to execute or skip the task. You can select `Set trigger conditions` for the execution of a task or `Set skip conditions` to skip the task.
52+
53+
### Output Variables
54+
Cosign will not be generating an output variable.
55+
56+
Click **Update Pipeline**.
57+
58+
59+

0 commit comments

Comments
 (0)