-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Publish threat model in documentation #6263
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
base: main
Are you sure you want to change the base?
Changes from all commits
e1405d5
09b918f
2b7379b
409c453
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,62 +2,6 @@ | |
|
||
This page describes Knative security and disclosure information. | ||
|
||
## Knative threat model | ||
|
||
* [Threat model](https://github.com/knative/community/blob/main/working-groups/security/threat-model.md) | ||
|
||
## Code Signature Verification | ||
|
||
### All platforms | ||
|
||
Our releases from 1.9 are signed with [cosign](https://docs.sigstore.dev/cosign/overview). You can use the following steps to verify our binaries. | ||
|
||
1. Download the files you want, and the `checksums.txt`, `checksum.txt.pem` and `checksums.txt.sig` files from the releases page: | ||
```sh | ||
# this example verifies the 1.10.0 kn cli from the knative/client repository | ||
wget https://github.com/knative/client/releases/download/knative-v1.10.0/checksums.txt | ||
wget https://github.com/knative/client/releases/download/knative-v1.10.0/kn-darwin-amd64 | ||
wget https://github.com/knative/client/releases/download/knative-v1.10.0/checksums.txt.sig | ||
wget https://github.com/knative/client/releases/download/knative-v1.10.0/checksums.txt.pem | ||
``` | ||
1. Verify the signature: | ||
```sh | ||
cosign verify-blob \ | ||
--certificate-identity=signer@knative-releases.iam.gserviceaccount.com \ | ||
--certificate-oidc-issuer=https://accounts.google.com \ | ||
--cert checksums.txt.pem \ | ||
--signature checksums.txt.sig \ | ||
checksums.txt | ||
``` | ||
1. If the signature is valid, you can then verify the SHA256 sums match with the downloaded binary: | ||
```sh | ||
sha256sum --ignore-missing -c checksums.txt | ||
``` | ||
|
||
!!! note | ||
Knative images are signed in `KEYLESS` mode. To learn more about keyless signing, please refer to | ||
[Keyless Signatures](https://github.com/sigstore/cosign/blob/main/KEYLESS.md#keyless-signatures) | ||
Our signing identity(Subject) for our releases is `signer@knative-releases.iam.gserviceaccount.com` and the Issuer is `https://accounts.google.com` | ||
|
||
### Apple macOS | ||
|
||
In addition to signing our binaries with `cosign`, we [notarize](https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution) our macOS binaries. You can use the `codesign` utility to verify our binaries from 1.9 release. You should expect an output that looks | ||
like this. The expected TeamIdentifier is `7R64489VHL` | ||
|
||
``` | ||
codesign --verify -d --verbose=2 ~/Downloads/kn-quickstart-darwin-amd64 | ||
|
||
Executable=/Users/REDACTED/Downloads/kn-quickstart-darwin-amd64 | ||
Identifier=kn-quickstart-darwin-amd64 | ||
... | ||
Authority=Developer ID Application: Mahamed Ali (7R64489VHL) | ||
Authority=Developer ID Certification Authority | ||
Authority=Apple Root CA | ||
Timestamp=3 Oct 2022 at 22:50:07 | ||
... | ||
TeamIdentifier=7R64489VHL | ||
``` | ||
|
||
## Report a vulnerability | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe we were planning to move from mailing report to github for reporting a security vulnerability. This ode snot have to be done in this PR, but I thought to bring this up in case we chose to also do it here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was going to do that as a follow-on, as we haven't set up private vulnerability reporting consistently on all the repos yet. |
||
|
||
We're extremely grateful for security researchers and users that report vulnerabilities to the Knative Open Source Community. All reports are thoroughly investigated by a set of community volunteers. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved this to
verifying-cli.md
, as it didn't really fit with the rest of the overview