Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: sign container images and checksum assets #2334

Merged
merged 8 commits into from
Nov 1, 2022

Conversation

34fathombelow
Copy link
Member

@34fathombelow 34fathombelow commented Oct 15, 2022

Signed-off-by: Justin Marquis [email protected]
Closes #2330

This PR implements container images and argo-rollouts-checksums.txt to be signed using sigstore/cosign

Three GitHub secrets will need to be created before this PR is merged. The process to do this is listed below.

TLDR: https://docs.sigstore.dev/cosign/git_support

  1. Install Cosign on your workstation. Linux, Homebrew, and container options are available. Execute the command cosign --version to verified it has been installed correctly.
  2. Create or have a valid GitHub PAT token available.
  3. Export your PAT as the environment variable "GITHUB_TOKEN"
  4. Execute cosign generate-key-pair github://argoproj/argo-rollouts This will start the process of creating the GitHub Secrets automatically for you, and prompt you to enter a password. This Password will be stored as the Github secret COSIGN_PASSWORD I would recommend to use well respected password generator such as KeePassXC or Bitwarden and use a paranoid level of characters of at least 32.
  5. Three GitHub secretes should have been created, please verify. COSIGN_PASSWORD COSIGN_PRIVATE_KEY & COSIGN_PUBLIC_KEY
  6. Please comment on this PR with the newly created public key (cosign.pub)

@github-actions
Copy link
Contributor

github-actions bot commented Oct 15, 2022

Go Published Test Results

1 778 tests   1 778 ✔️  2m 31s ⏱️
   101 suites         0 💤
       1 files           0

Results for commit 835c305.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 15, 2022

E2E Tests Published Test Results

89 tests   86 ✔️  44m 14s ⏱️
  1 suites    3 💤
  1 files      0

Results for commit 835c305.

♻️ This comment has been updated with latest results.

Signed-off-by: Justin Marquis <[email protected]>
@codecov
Copy link

codecov bot commented Oct 15, 2022

Codecov Report

Base: 82.76% // Head: 82.76% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (835c305) compared to base (fd6dcc1).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2334      +/-   ##
==========================================
- Coverage   82.76%   82.76%   -0.01%     
==========================================
  Files         121      121              
  Lines       18522    18536      +14     
==========================================
+ Hits        15330    15341      +11     
- Misses       2408     2410       +2     
- Partials      784      785       +1     
Impacted Files Coverage Δ
metricproviders/webmetric/webmetric.go 68.88% <0.00%> (+1.12%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@34fathombelow 34fathombelow added the ready-for-review Ready for final review label Oct 15, 2022
@zachaller zachaller requested a review from jessesuen October 18, 2022 14:11
@zachaller zachaller removed the ready-for-review Ready for final review label Oct 19, 2022
@jessesuen
Copy link
Member

The COSIGN_PASSWORD COSIGN_PRIVATE_KEY & COSIGN_PUBLIC_KEY secrets have been added. Here is the public key:

-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAElm4DvuUfW6x0jB8vZ5wO+XeyaAbK
3/VjNMOsZ2svjls3mc/1eg2cP3MR9kOA7HD75nERY+U82vqhGsZ8bwnMLQ==
-----END PUBLIC KEY-----

I've announced the above public key, but in the future this might change (if we for example switch from github actions), right?

I've discarded the private key and password so they only exist in GitHub now.

Copy link
Member

@jessesuen jessesuen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll merge this in after conflict is resolved. Thanks!

Signed-off-by: Justin Marquis <[email protected]>
@34fathombelow
Copy link
Member Author

I'll merge this in after conflict is resolved. Thanks!

@jessesuen thanks for all your help. Conflicts have been resolved.

.github/workflows/docker-publish.yml Outdated Show resolved Hide resolved
.github/workflows/docker-publish.yml Outdated Show resolved Hide resolved
@sonarcloud
Copy link

sonarcloud bot commented Oct 20, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@zachaller
Copy link
Collaborator

zachaller commented Oct 20, 2022

@jessesuen I went over these changes again and they LGTM with the digest changes.

@zachaller
Copy link
Collaborator

part of #2329

@jessesuen jessesuen merged commit 7085fb2 into argoproj:master Nov 1, 2022
@34fathombelow 34fathombelow deleted the signed-images branch November 1, 2022 15:53
itsme2980 pushed a commit to itsme2980/argo-rollouts that referenced this pull request Nov 3, 2022
jandersen-plaid pushed a commit to jandersen-plaid/argo-rollouts that referenced this pull request Nov 8, 2022
jandersen-plaid pushed a commit to jandersen-plaid/argo-rollouts that referenced this pull request Nov 26, 2022
zachaller added a commit that referenced this pull request Jul 11, 2024
…2388)

* chore(deps): bump actions/upload-artifact from 2 to 3 (#1973)

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@v2...v3)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: toann <[email protected]>

* chore: sign container images and checksum assets (#2334)

Signed-off-by: Justin Marquis <[email protected]>
Signed-off-by: toann <[email protected]>

* chore(deps): upgrade ui deps to fix high security cve's (#2345)

* ui: upgrade deps to fix high security cve's

Signed-off-by: zachaller <[email protected]>

* github trigger re-run

Signed-off-by: zachaller <[email protected]>

Signed-off-by: zachaller <[email protected]>
Signed-off-by: toann <[email protected]>

* chore(deps): bump imjasonh/setup-crane from 0.1 to 0.2 (#2387)

Bumps [imjasonh/setup-crane](https://github.com/imjasonh/setup-crane) from 0.1 to 0.2.
- [Release notes](https://github.com/imjasonh/setup-crane/releases)
- [Commits](imjasonh/setup-crane@v0.1...v0.2)

---
updated-dependencies:
- dependency-name: imjasonh/setup-crane
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: toann <[email protected]>

* docs: Fix the case that autoPromotionSeconds feature is ignored
Signed-off-by: Toan Nguyen <[email protected]>

Signed-off-by: toann <[email protected]>

* chore(deps): bump dependabot/fetch-metadata from 1.3.4 to 1.3.5 (#2390)

Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 1.3.4 to 1.3.5.
- [Release notes](https://github.com/dependabot/fetch-metadata/releases)
- [Commits](dependabot/fetch-metadata@v1.3.4...v1.3.5)

---
updated-dependencies:
- dependency-name: dependabot/fetch-metadata
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: toann <[email protected]>

* Update docs/features/bluegreen.md

Co-authored-by: Rohit Agrawal <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: toann <[email protected]>
Signed-off-by: Justin Marquis <[email protected]>
Signed-off-by: zachaller <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Justin Marquis <[email protected]>
Co-authored-by: Zach Aller <[email protected]>
Co-authored-by: toann <[email protected]>
Co-authored-by: Rohit Agrawal <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create Signed Docker Images
3 participants