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

Restrict Revocation List allowed URL schemes #317

Merged
merged 2 commits into from Oct 13, 2021

Conversation

clehner
Copy link
Contributor

@clehner clehner commented Sep 30, 2021

Revocation List 2020 doesn't say what is a URL. But examples and test vectors use https. This implementation has been allowing http also. For a more secure default, this PR changes it to allow only https.
We could later add some option or mode for allowing HTTP where it is safe and necessary to do so, and/or other protocols/schemes.

If merged, a change similar to this one should be made in the implementation of Status List 2021 in #278.

@clehner clehner marked this pull request as ready for review September 30, 2021 19:31
@bumblefudge
Copy link
Contributor

hold off til override methinks, lots of people use DIDKit in secure environments/PoCs and would need the override!

Copy link
Member

@chunningham chunningham left a comment

Choose a reason for hiding this comment

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

Happy with the implementation here. Should we allow some means of configuring which schemes are supported? A feature just for this seems overkill but I cant think of anything else. Until we need it though IMO this is good.

@clehner
Copy link
Contributor Author

clehner commented Oct 13, 2021

Rebasing and merging... Re-allowing HTTP revocation list loading is being tracked in #320

@clehner clehner force-pushed the fix/revocation-list-protocol-security branch from f4ea255 to dffe8b5 Compare October 13, 2021 13:58
@clehner clehner merged commit dffe8b5 into main Oct 13, 2021
@clehner clehner deleted the fix/revocation-list-protocol-security branch October 13, 2021 13:58
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