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

policy: Verify new policy against previous policy #116

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

adityasaky
Copy link
Member

So far, we were verifying each policy state internally. We weren't verifying that a new policy's root role is signed by keys trusted in the previous policy's root. This adds that check, and in the process, I think we solve the issue of not verifying RSL entry signatures for policy changes.

Copy link
Collaborator

@JustinCappos JustinCappos left a comment

Choose a reason for hiding this comment

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

I'm not familiar with Go, but the goal stated in the docs seems correct.

Copy link
Member

@wlynch wlynch left a comment

Choose a reason for hiding this comment

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

One suggestion, but otherwise LGTM! (feel free to submit otherwise)

internal/policy/verify.go Outdated Show resolved Hide resolved
Signed-off-by: Aditya Sirish <aditya@saky.in>
@adityasaky adityasaky merged commit ad5d8c2 into main Oct 2, 2023
8 checks passed
@adityasaky adityasaky deleted the verify-new-policy-root branch October 2, 2023 14:27
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

3 participants