-
Notifications
You must be signed in to change notification settings - Fork 8
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
forces_https sometimes null #532
Comments
After looking at our code and at the code for pshtt, it's my opinion that there are not three legitimate states. The non-boolean state occurs when the insecure version of the domain ( I recommend we treat |
That makes sense to me, thanks. Indeed looking at the scan results with Would you mind filing an upstream issue with |
Here, `pshtt` sometimes returns `None` in the case where the landing page domain's non-HTTPS responses are not redirects. We consider this a failure of our forces-http test, so we want to ensure those cases are converted to `False` before being saved. Test added with a VCR recording of a domain that exhibited the quirk of having `None` in `pshtt_results['Strictly Forces HTTPS']`. Refs #532
Here, `pshtt` sometimes returns `None` in the case where the landing page domain's non-HTTPS responses are not redirects. We consider this a failure of our forces-http test, so we want to ensure those cases are converted to `False` before being saved. Test added with a VCR recording of a domain that exhibited the quirk of having `None` in `pshtt_results['Strictly Forces HTTPS']`. Refs #532
I've created cisagov/pshtt#176 to track this on their end. |
Here, `pshtt` sometimes returns `None` in the case where the landing page domain's non-HTTPS responses are not redirects. We consider this a failure of our forces-http test, so we want to ensure those cases are converted to `False` before being saved. Test added with a VCR recording of a domain that exhibited the quirk of having `None` in `pshtt_results['Strictly Forces HTTPS']`. Refs #532
If you look at http://securedrop.org/media/documents/scanresults.csv , you will note that the forces_https column is sometimes neither
True
norFalse
. What scan result does this third state represent? If there are legitimately three states, we have to change the field to non-Boolean, otherwise we should resolve to eitherTrue
orFalse
.The text was updated successfully, but these errors were encountered: