feat: add blob policy import and show commands#1126
Merged
JeyJeyGao merged 27 commits intonotaryproject:mainfrom Jan 15, 2025
Merged
feat: add blob policy import and show commands#1126JeyJeyGao merged 27 commits intonotaryproject:mainfrom
blob policy import and show commands#1126JeyJeyGao merged 27 commits intonotaryproject:mainfrom
Conversation
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1126 +/- ##
==========================================
+ Coverage 72.38% 73.30% +0.91%
==========================================
Files 50 53 +3
Lines 3125 3240 +115
==========================================
+ Hits 2262 2375 +113
- Misses 670 671 +1
- Partials 193 194 +1 ☔ View full report in Codecov by Sentry. |
blob policy import and show commands
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
shizhMSFT
requested changes
Dec 27, 2024
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
shizhMSFT
reviewed
Dec 30, 2024
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Closed
ghost
reviewed
Jan 7, 2025
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
shizhMSFT
approved these changes
Jan 7, 2025
shizhMSFT
requested changes
Jan 7, 2025
Contributor
shizhMSFT
left a comment
There was a problem hiding this comment.
Please address the comments in the last review.
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
ghost
reviewed
Jan 9, 2025
ghost
left a comment
There was a problem hiding this comment.
This PR depends on: notaryproject/notation-go#502 which fixes an error message of blob trust policy.
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
Contributor
Author
Updated. |
This was referenced Mar 12, 2025
7h3-3mp7y-m4n
pushed a commit
to 7h3-3mp7y-m4n/notation
that referenced
this pull request
Mar 29, 2025
Feat: - added `notation blob import` and `notation blob show` commands Test: - added E2E test cases Corresponding spec: https://github.com/notaryproject/notation/blob/2ff8754717877adfd45266cfa8ba65705c397ea0/specs/commandline/blob.md help example: > $ notation -h ``` Notation - a tool to sign and verify artifacts Usage: notation [command] Available Commands: blob Sign, verify and inspect singatures associated with blobs certificate Manage certificates in trust store completion Generate the autocompletion script for the specified shell help Help about any command inspect Inspect all signatures associated with the signed artifact key Manage keys used for signing list List signatures of the signed artifact login Login to registry logout Log out from the logged in registries plugin Manage plugins policy Manage trust policy configuration sign Sign artifacts verify Verify OCI artifacts version Show the notation version information Flags: -h, --help help for notation Use "notation [command] --help" for more information about a command. ``` > $ notation blob -h ``` Sign, inspect, and verify signatures and configure trust policies. Usage: notation blob [command] Available Commands: policy Manage trust policy configuration for signed blobs Flags: -h, --help help for blob Use "notation blob [command] --help" for more information about a command. ``` > $ notation blob policy -h ``` Manage trust policy configuration for arbitrary blob signature verification. Usage: notation blob policy [command] Available Commands: import Import trust policy configuration from a JSON file show Show trust policy configuration Flags: -h, --help help for policy Use "notation blob policy [command] --help" for more information about a command. ``` > $ notation blob policy import -h ``` Import blob trust policy configuration from a JSON file. Example - Import trust policy configuration from a file: notation blob policy import my_policy.json Usage: notation blob policy import [flags] <file_path> Flags: --force override the existing trust policy configuration, never prompt -h, --help help for import ``` > $ notation blob policy show -h ``` Show blob trust policy configuration. Example - Show current blob trust policy configuration: notation blob policy show Example - Save current blob trust policy configuration to a file: notation blob policy show > my_policy.json Usage: notation blob policy show [flags] Flags: -h, --help help for show ``` --------- Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
FeynmanZhou
pushed a commit
to FeynmanZhou/notation
that referenced
this pull request
May 15, 2025
Feat: - added `notation blob import` and `notation blob show` commands Test: - added E2E test cases Corresponding spec: https://github.com/notaryproject/notation/blob/2ff8754717877adfd45266cfa8ba65705c397ea0/specs/commandline/blob.md help example: > $ notation -h ``` Notation - a tool to sign and verify artifacts Usage: notation [command] Available Commands: blob Sign, verify and inspect singatures associated with blobs certificate Manage certificates in trust store completion Generate the autocompletion script for the specified shell help Help about any command inspect Inspect all signatures associated with the signed artifact key Manage keys used for signing list List signatures of the signed artifact login Login to registry logout Log out from the logged in registries plugin Manage plugins policy Manage trust policy configuration sign Sign artifacts verify Verify OCI artifacts version Show the notation version information Flags: -h, --help help for notation Use "notation [command] --help" for more information about a command. ``` > $ notation blob -h ``` Sign, inspect, and verify signatures and configure trust policies. Usage: notation blob [command] Available Commands: policy Manage trust policy configuration for signed blobs Flags: -h, --help help for blob Use "notation blob [command] --help" for more information about a command. ``` > $ notation blob policy -h ``` Manage trust policy configuration for arbitrary blob signature verification. Usage: notation blob policy [command] Available Commands: import Import trust policy configuration from a JSON file show Show trust policy configuration Flags: -h, --help help for policy Use "notation blob policy [command] --help" for more information about a command. ``` > $ notation blob policy import -h ``` Import blob trust policy configuration from a JSON file. Example - Import trust policy configuration from a file: notation blob policy import my_policy.json Usage: notation blob policy import [flags] <file_path> Flags: --force override the existing trust policy configuration, never prompt -h, --help help for import ``` > $ notation blob policy show -h ``` Show blob trust policy configuration. Example - Show current blob trust policy configuration: notation blob policy show Example - Save current blob trust policy configuration to a file: notation blob policy show > my_policy.json Usage: notation blob policy show [flags] Flags: -h, --help help for show ``` --------- Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Feat:
notation blob importandnotation blob showcommandsTest:
Corresponding spec:
https://github.com/notaryproject/notation/blob/2ff8754717877adfd45266cfa8ba65705c397ea0/specs/commandline/blob.md
help example: