cisagov / cisagov/pshtt

Use more formal/complete HSTS parser

Open
#12 7 comments 0 reactions 1 assignee Claimed by @konklone View on GitHub
bug
Dominant language
Python
Stars
693
Forks
91
PR merge metrics
No merged PRs in 30d

Description

Ideally, there would already be a good tested Python library for doing this.

For reference, here's the parser I wrote in Ruby (with careful attention to the HSTS RFC):
https://github.com/benbalter/site-inspector/blob/erics-mode/lib/site-inspector.rb#L28-L84

Fixing this issue should include unit tests validating that the parser meets the HSTS spec. An example of that in a previous (Ruby) project can be seen here:

https://github.com/benbalter/site-inspector/blob/erics-mode/test/test_hsts.rb

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.