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 validations for symlink #316

Merged
merged 2 commits into from
May 25, 2023

Conversation

priteshbandi
Copy link
Contributor

Added validations to make sure singingkeys.json, trustpolicy.json and config.json doesnt read's symlink

closes notaryproject/notation#634

@codecov-commenter
Copy link

codecov-commenter commented May 24, 2023

Codecov Report

Merging #316 (8de9203) into main (9b0e472) will increase coverage by 0.00%.
The diff coverage is 76.66%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@           Coverage Diff           @@
##             main     #316   +/-   ##
=======================================
  Coverage   74.80%   74.80%           
=======================================
  Files          23       23           
  Lines        2179     2203   +24     
=======================================
+ Hits         1630     1648   +18     
- Misses        433      437    +4     
- Partials      116      118    +2     
Impacted Files Coverage Δ
verifier/trustpolicy/trustpolicy.go 91.48% <76.47%> (-0.77%) ⬇️
config/base.go 63.63% <76.92%> (+6.49%) ⬆️

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

config/base.go Outdated Show resolved Hide resolved
verifier/trustpolicy/trustpolicy.go Outdated Show resolved Hide resolved
config/base.go Outdated Show resolved Hide resolved
@shizhMSFT shizhMSFT changed the title Add validations for symlink feat: add validations for symlink May 24, 2023
config/base.go Outdated Show resolved Hide resolved
@priteshbandi priteshbandi force-pushed the symlink branch 2 times, most recently from e9f1be7 to 1a1dfca Compare May 24, 2023 08:57
config/base.go Outdated Show resolved Hide resolved
verifier/trustpolicy/trustpolicy.go Outdated Show resolved Hide resolved
@priteshbandi priteshbandi force-pushed the symlink branch 2 times, most recently from 3274970 to 29e5a81 Compare May 24, 2023 09:12
@Two-Hearts
Copy link
Contributor

@priteshbandi it seems that your commits are not signed? Otherwise, LGTM.

@priteshbandi priteshbandi force-pushed the symlink branch 2 times, most recently from 8ee79be to 5e3dc2e Compare May 24, 2023 09:18
Signed-off-by: Pritesh Bandi <[email protected]>
@priteshbandi
Copy link
Contributor Author

@priteshbandi it seems that your commits are not signed? Otherwise, LGTM.

Fixed the issue, the email address in git config was incorrect.

Copy link
Contributor

@Two-Hearts Two-Hearts 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

@rgnote rgnote 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

@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 but we definitely can refactor the open file sub-routine in a future PR.

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

@priteshbandi priteshbandi merged commit 69cf11b into notaryproject:main May 25, 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.

Standardize symlink checking per trust store spec
6 participants