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

Validate SPIFFE IDs and trust domains via library #592

Merged
merged 2 commits into from
May 17, 2022

Conversation

haydentherapper
Copy link
Contributor

This adds extra enforcement that trust domains are valid on startup, and
validates that SPIFFE IDs in tokens are also of a valid format.
Comparison is now done via the library too.

Signed-off-by: Hayden Blauzvern [email protected]

Summary

Ticket Link

Fixes

Release Note

Stronger validation of SPIFFE IDs and trust domains

This adds extra enforcement that trust domains are valid on startup, and
validates that SPIFFE IDs in tokens are also of a valid format.
Comparison is now done via the library too.

Signed-off-by: Hayden Blauzvern <[email protected]>
@haydentherapper
Copy link
Contributor Author

cc @nsmith5

@codecov-commenter
Copy link

codecov-commenter commented May 17, 2022

Codecov Report

Merging #592 (a6d824e) into main (f334c15) will increase coverage by 0.66%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #592      +/-   ##
==========================================
+ Coverage   48.44%   49.11%   +0.66%     
==========================================
  Files          21       21              
  Lines        1515     1523       +8     
==========================================
+ Hits          734      748      +14     
+ Misses        707      703       -4     
+ Partials       74       72       -2     
Impacted Files Coverage Δ
pkg/challenges/challenges.go 44.85% <100.00%> (+1.50%) ⬆️
pkg/config/config.go 57.76% <100.00%> (+1.07%) ⬆️
pkg/ca/fileca/load.go 68.96% <0.00%> (+10.34%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f334c15...a6d824e. Read the comment docs.

Copy link
Contributor

@nsmith5 nsmith5 left a comment

Choose a reason for hiding this comment

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

Lovely ❤️ Thanks for catching the federation automation stuff as well

@dlorenc dlorenc merged commit 331874d into sigstore:main May 17, 2022
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.

4 participants