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

Sign main branch container builds with cosign #194

Merged
merged 1 commit into from
Dec 16, 2024
Merged

Sign main branch container builds with cosign #194

merged 1 commit into from
Dec 16, 2024

Conversation

withinfocus
Copy link
Contributor

๐ŸŽŸ๏ธ Tracking

https://bitwarden.atlassian.net/browse/VULN-130

๐Ÿ“” Objective

Signs container images built off main with Cosign. This uses Sigstore's in-house certificate authority with short-lived keys that are all self-managed with the tool, which will also utilize GitHub's provided OIDC entity. As part of an effort to increase transparency of what we build as an open source company, these signatures are also sent to Rekor -- users of our images are then free to verify the images against that log.

โฐ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

๐Ÿฆฎ Reviewer guidelines

  • ๐Ÿ‘ (:+1:) or similar for great changes
  • ๐Ÿ“ (:memo:) or โ„น๏ธ (:information_source:) for notes or general info
  • โ“ (:question:) for questions
  • ๐Ÿค” (:thinking:) or ๐Ÿ’ญ (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • ๐ŸŽจ (:art:) for suggestions / improvements
  • โŒ (:x:) or โš ๏ธ (:warning:) for more significant problems or concerns needing attention
  • ๐ŸŒฑ (:seedling:) or โ™ป๏ธ (:recycle:) for future improvements or indications of technical debt
  • โ› (:pick:) for minor or nitpick changes

Copy link

codecov bot commented Dec 13, 2024

Codecov Report

All modified and coverable lines are covered by tests โœ…

Project coverage is 7.04%. Comparing base (f8aa9a9) to head (67226a1).
Report is 1 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main    #194   +/-   ##
=====================================
  Coverage   7.04%   7.04%           
=====================================
  Files         49      49           
  Lines       1818    1818           
  Branches      99      99           
=====================================
  Hits         128     128           
  Misses      1685    1685           
  Partials       5       5           

โ˜” View full report in Codecov by Sentry.
๐Ÿ“ข Have feedback on the report? Share it here.

Copy link
Contributor

Logo
Checkmarx One โ€“ Scan Summary & Details โ€“ 97e43efc-7fde-4649-a709-b54c023a004f

Fixed Issues

Severity Issue Source File / Package
MEDIUM Unpinned Actions Full Length Commit SHA /release.yml: 40
MEDIUM Unpinned Actions Full Length Commit SHA /version-bump.yml: 108
MEDIUM Unpinned Actions Full Length Commit SHA /version-bump.yml: 206
MEDIUM Unpinned Actions Full Length Commit SHA /publish.yml: 60
MEDIUM Unpinned Actions Full Length Commit SHA /version-bump.yml: 25
MEDIUM Unpinned Actions Full Length Commit SHA /version-bump.yml: 115
MEDIUM Unpinned Actions Full Length Commit SHA /version-bump.yml: 47
MEDIUM Unpinned Actions Full Length Commit SHA /release.yml: 88
MEDIUM Unpinned Actions Full Length Commit SHA /version-bump.yml: 123

@@ -41,6 +41,9 @@ jobs:
name: Build Docker images
runs-on: ubuntu-22.04
needs: build-artifacts
permissions:
security-events: write
Copy link
Contributor Author

Choose a reason for hiding this comment

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

โ„น๏ธ This was missed previously so I added it, to keep the token scoped.

@withinfocus withinfocus marked this pull request as ready for review December 13, 2024 20:53
@withinfocus withinfocus requested review from a team as code owners December 13, 2024 20:53
@withinfocus withinfocus merged commit f78640d into main Dec 16, 2024
13 checks passed
@withinfocus withinfocus deleted the cosign branch December 16, 2024 17:36
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.

3 participants