-
Notifications
You must be signed in to change notification settings - Fork 92
Add Notation Quick Start #87
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
Changes from all commits
1db7a79
bd6054b
f1ea87a
531a109
9b64000
26b2dae
ae46647
e4c7de4
dd51d47
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 | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -4,12 +4,31 @@ Notation is a project to add signatures as standard items in the registry ecosys | |||||||
|
|
||||||||
| ## Table of Contents | ||||||||
|
|
||||||||
| - [Notation Quick Start](#notation-quick-start) | ||||||||
| - [Branch](#branch) | ||||||||
| - [Core Documents](#core-documents) | ||||||||
| - [Community](#community) | ||||||||
| - [Code of Conduct](#code-of-conduct) | ||||||||
| - [License](#license) | ||||||||
|
|
||||||||
| ## Notation Quick Start | ||||||||
|
|
||||||||
| - Install the Notation CLI from [Notation Releases][notation-releases] | ||||||||
| ```bash | ||||||||
| curl -Lo notation.tar.gz https://github.com/shizhMSFT/notation/releases/download/v0.5.2/notation_0.5.2_linux_amd64.tar.gz | ||||||||
| tar xvzf notation.tar.gz -C ~/bin notation | ||||||||
| ``` | ||||||||
| - Build, Push, Sign, Verify the `net-monitor` software | ||||||||
| ```bash | ||||||||
| export IMAGE=localhost:5000/net-monitor:v1 | ||||||||
| docker build -t $IMAGE https://github.com/wabbit-networks/net-monitor.git#main | ||||||||
| docker push $IMAGE | ||||||||
| notation cert generate-test --default --trust "wabbit-networks-dev" | ||||||||
| notation sign $IMAGE | ||||||||
|
Contributor
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. Do we want to demonstrate push/pull signatures from repository?
Contributor
Author
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.
|
||||||||
| notation list $IMAGE | ||||||||
|
Contributor
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. A comments explaining what this command does will help.
Contributor
Author
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.
Contributor
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.
Suggested change
|
||||||||
| notation verify $IMAGE | ||||||||
| ``` | ||||||||
|
|
||||||||
| ## Branch | ||||||||
|
|
||||||||
| [Prototype 2][prototype-2] - signing and verifying OCI artifacts, using signatures persisted [ORAS Artifacts manifests][artifact-manifest] | ||||||||
|
|
@@ -36,4 +55,8 @@ This project has adopted the [CNCF Code of Conduct](https://github.com/cncf/foun | |||||||
|
|
||||||||
| ## License | ||||||||
|
|
||||||||
| This project is covered under the Apache 2.0 license. You can read the license [here](LICENSE). | ||||||||
| This project is covered under the Apache 2.0 license. You can read the license [here](LICENSE). | ||||||||
|
|
||||||||
| [notation-releases]: https://github.com/shizhMSFT/notation/releases/tag/v0.5.0 | ||||||||
| [artifact-manifest]: https://github.com/oras-project/artifacts-spec/blob/main/artifact-manifest.md | ||||||||
| [cncf-distribution]: https://github.com/oras-project/distribution | ||||||||
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.
It's not clear what --default and --trust do, and what is wabbit-networks-dev. We can add comments where we want to explain what a particular notation command does.
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.
This was the quick-start, which is an abbreviated version of: #78
This is the challenge with having required parameters, for good security reasons, while enabling quick-starts.
What would you suggest to keep that balance?
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.
The other docker commands are straightforward and probably well known to the reader. Where we introduce the notation commands, it would be nice to have a one line comments explaining what the specific command does.