-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Update trust_key_mng.md #1883
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
Merged
Merged
Update trust_key_mng.md #1883
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,13 +7,13 @@ title: Manage keys for content trust | |
Trust for an image tag is managed through the use of keys. Docker's content | ||
trust makes use of five different types of keys: | ||
|
||
| Key | Description | | ||
|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
| root key | Root of content trust for an image tag. When content trust is enabled, you create the root key once. Also known as the offline key, because it should be kept offline. | | ||
| targets | This key allows you to sign image tags, to manage delegations including delegated keys or permitted delegation paths. Also known as the repository key, since this key determines what tags can be signed into an image repository. | | ||
| snapshot | This key signs the current collection of image tags, preventing mix and match attacks. | ||
| timestamp | This key allows Docker image repositories to have freshness security guarantees without requiring periodic content refreshes on the client's side. | | ||
| delegation | Delegation keys are optional tagging keys and allow you to delegate signing image tags to other publishers without having to share your targets key. | | ||
| Key | Description | | ||
|:-----------|:----------- | | ||
| root key | Root of content trust for an image tag. When content trust is enabled, you create the root key once. Also known as the offline key, because it should be kept offline. | | ||
| targets | This key allows you to sign image tags, to manage delegations including delegated keys or permitted delegation paths. Also known as the repository key, since this key determines what tags can be signed into an image repository. | | ||
| snapshot | This key signs the current collection of image tags, preventing mix and match attacks. | | ||
| timestamp | This key allows Docker image repositories to have freshness security guarantees without requiring periodic content refreshes on the client's side. | | ||
| delegation | Delegation keys are optional tagging keys and allow you to delegate signing image tags to other publishers without having to share your targets key. | | ||
|
||
When doing a `docker push` with Content Trust enabled for the first time, the | ||
root, targets, snapshot, and timestamp keys are generated automatically for | ||
|
@@ -37,9 +37,9 @@ repositories created with newer versions of Docker. | |
## Choosing a passphrase | ||
|
||
The passphrases you chose for both the root key and your repository key should | ||
be randomly generated and stored in a password manager. Having the repository key | ||
be randomly generated and stored in a password manager. Having the repository key | ||
allows users to sign image tags on a repository. Passphrases are used to encrypt | ||
your keys at rest and ensures that a lost laptop or an unintended backup doesn't | ||
your keys at rest and ensure that a lost laptop or an unintended backup doesn't | ||
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. 👍 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. Thanks :) |
||
put the private key material at risk. | ||
|
||
## Back up your keys | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
👍