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

feat!: add signingkeys.json validation check #246

Merged
merged 16 commits into from
Feb 3, 2023

Conversation

priteshbandi
Copy link
Contributor

@priteshbandi priteshbandi commented Jan 22, 2023

Change to validate signingkeys are valid(unique name) for both read and write operation.

Signed-off-by: Pritesh Bandi [email protected]

@codecov-commenter
Copy link

codecov-commenter commented Jan 22, 2023

Codecov Report

Merging #246 (0e9a1dc) into main (32d2372) will decrease coverage by 3.79%.
The diff coverage is 19.42%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main     #246      +/-   ##
==========================================
- Coverage   73.35%   69.56%   -3.79%     
==========================================
  Files          23       23              
  Lines        1775     1909     +134     
==========================================
+ Hits         1302     1328      +26     
- Misses        375      483     +108     
  Partials       98       98              
Impacted Files Coverage Δ
config/keys.go 21.56% <19.42%> (-15.28%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

config/keys.go Outdated Show resolved Hide resolved
config/keys.go Outdated Show resolved Hide resolved
config/keys.go Outdated Show resolved Hide resolved
config/keys.go Outdated Show resolved Hide resolved
config/keys.go Outdated Show resolved Hide resolved
config/keys.go Outdated Show resolved Hide resolved
config/keys.go Outdated Show resolved Hide resolved
@priteshbandi priteshbandi force-pushed the signingkey-fix branch 2 times, most recently from cef7edd to a0e70c8 Compare February 1, 2023 07:57
Pritesh Bandi and others added 9 commits February 1, 2023 00:03
Fix error message: Instead of printing bytes in error message convert them to string.

Signed-off-by: Pritesh Bandi <[email protected]>
This PR adds examples for notation-go sign and verify including fully
functional examples (can run in go playground) for local sign and local
verify.

Signed-off-by: Patrick Zheng <[email protected]>
Signed-off-by: Pritesh Bandi <[email protected]>
Signed-off-by: Patrick Zheng <[email protected]>
Signed-off-by: Pritesh Bandi <[email protected]>
Signed-off-by: Pritesh Bandi <[email protected]>
Signed-off-by: Pritesh Bandi <[email protected]>
config/keys.go Outdated Show resolved Hide resolved
config/keys.go Outdated Show resolved Hide resolved
config/keys.go Outdated Show resolved Hide resolved
config/keys.go Outdated Show resolved Hide resolved
config/keys.go Outdated Show resolved Hide resolved
Signed-off-by: Pritesh Bandi <[email protected]>
Copy link
Contributor

@patrickzheng200 patrickzheng200 left a comment

Choose a reason for hiding this comment

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

LGTM. We could wait for Shiwei in case he has extra comments on the PR.

config/keys.go Outdated Show resolved Hide resolved
Pritesh Bandi and others added 2 commits February 1, 2023 21:44
@shizhMSFT shizhMSFT changed the title Adds siningkeys.json validation check feat!: add signingkeys.json validation check Feb 2, 2023
internal/slices/slices.go Outdated Show resolved Hide resolved
internal/slices/slices.go Outdated Show resolved Hide resolved
config/keys.go Outdated Show resolved Hide resolved
config/keys.go Outdated Show resolved Hide resolved
config/keys.go Outdated Show resolved Hide resolved
config/keys.go Outdated Show resolved Hide resolved
config/keys.go Outdated Show resolved Hide resolved
config/keys.go Show resolved Hide resolved
Pritesh Bandi and others added 3 commits February 2, 2023 10:28
Signed-off-by: Pritesh Bandi <[email protected]>
Signed-off-by: Pritesh Bandi <[email protected]>
Copy link
Contributor

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

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

LGTM

@priteshbandi priteshbandi merged commit 510def1 into notaryproject:main Feb 3, 2023
@priteshbandi priteshbandi deleted the signingkey-fix branch February 3, 2023 03:19
priteshbandi added a commit to priteshbandi/notation-go that referenced this pull request Feb 3, 2023
Change to validate signingkeys are valid(unique name) for both read and write operation.

Signed-off-by: Pritesh Bandi <[email protected]>
priteshbandi added a commit to notaryproject/notation that referenced this pull request Feb 3, 2023
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.

None yet

8 participants