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

Fix: fixed notation cert command #483

Merged
merged 7 commits into from Dec 20, 2022

Conversation

patrickzheng200
Copy link
Contributor

Before adding a file into the trust store using notation cert add, notation CLI would check if it's valid first. Only file containing valid certificate(s) will be added. Same rule applies to the notation cert list command.

This PR fixes #482.

Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
@patrickzheng200 patrickzheng200 self-assigned this Dec 13, 2022
@patrickzheng200 patrickzheng200 added the bug Something isn't working label Dec 13, 2022
@patrickzheng200 patrickzheng200 added this to the RC-2 milestone Dec 13, 2022
@codecov-commenter
Copy link

codecov-commenter commented Dec 13, 2022

Codecov Report

Merging #483 (035971a) into main (7a947d5) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #483   +/-   ##
=======================================
  Coverage   32.14%   32.14%           
=======================================
  Files          25       25           
  Lines        1341     1341           
=======================================
  Hits          431      431           
  Misses        898      898           
  Partials       12       12           

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

Copy link
Contributor

@JeyJeyGao JeyJeyGao left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
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

Copy link
Contributor

@priteshbandi priteshbandi 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 4a4a820 into notaryproject:main Dec 20, 2022
@patrickzheng200 patrickzheng200 deleted the fix_cert branch December 20, 2022 06:30
vaninrao10 pushed a commit to vaninrao10/notation that referenced this pull request Dec 29, 2022
Before adding a file into the trust store using `notation cert add`,
notation CLI would check if it's valid first. Only file containing valid
certificate(s) will be added. Same rule applies to the `notation cert
list` command.

This PR fixes notaryproject#482.

Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: vaninrao10 <111005862+vaninrao10@users.noreply.github.com>
vaninrao10 pushed a commit to vaninrao10/notation that referenced this pull request Dec 29, 2022
Before adding a file into the trust store using `notation cert add`,
notation CLI would check if it's valid first. Only file containing valid
certificate(s) will be added. Same rule applies to the `notation cert
list` command.

This PR fixes notaryproject#482.

Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: vaninrao10 <111005862+vaninrao10@users.noreply.github.com>
vaninrao10 pushed a commit to vaninrao10/notation that referenced this pull request Dec 29, 2022
Before adding a file into the trust store using `notation cert add`,
notation CLI would check if it's valid first. Only file containing valid
certificate(s) will be added. Same rule applies to the `notation cert
list` command.

This PR fixes notaryproject#482.

Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: vaninrao10 <111005862+vaninrao10@users.noreply.github.com>
vaninrao10 pushed a commit to vaninrao10/notation that referenced this pull request Jan 3, 2023
Before adding a file into the trust store using `notation cert add`,
notation CLI would check if it's valid first. Only file containing valid
certificate(s) will be added. Same rule applies to the `notation cert
list` command.

This PR fixes notaryproject#482.

Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: vaninrao10 <111005862+vaninrao10@users.noreply.github.com>
vaninrao10 pushed a commit to vaninrao10/notation that referenced this pull request Jan 3, 2023
Before adding a file into the trust store using `notation cert add`,
notation CLI would check if it's valid first. Only file containing valid
certificate(s) will be added. Same rule applies to the `notation cert
list` command.

This PR fixes notaryproject#482.

Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: vaninrao10 <111005862+vaninrao10@users.noreply.github.com>
vaninrao10 pushed a commit to vaninrao10/notation that referenced this pull request Jan 3, 2023
Before adding a file into the trust store using `notation cert add`,
notation CLI would check if it's valid first. Only file containing valid
certificate(s) will be added. Same rule applies to the `notation cert
list` command.

This PR fixes notaryproject#482.

Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: vaninrao10 <111005862+vaninrao10@users.noreply.github.com>
vaninrao10 pushed a commit to vaninrao10/notation that referenced this pull request Jan 5, 2023
Before adding a file into the trust store using `notation cert add`,
notation CLI would check if it's valid first. Only file containing valid
certificate(s) will be added. Same rule applies to the `notation cert
list` command.

This PR fixes notaryproject#482.

Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: vaninrao10 <111005862+vaninrao10@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Notation CLI: can add an empty .docx file into the trust store and list it
6 participants