You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 17, 2021. It is now read-only.
In #224 we separated requirements.txt into several different requirements.txt files, which I think is a good thing. In addition to one minor bug that I fixed in commit cc14109 in #234, there is a larger issue with the scanners.
In pshtt.py and in sslyze.py we import pshtt and sslyze, respectively, at the top of the file. This means that when running ./scaneven in Lambda one must have pshtt and trustymail installed locally, on the host where you are running ./scan. This goes against the intent of the splitting of requirements.txt in #224.
Note that trustymail.pydoes not have this problem because we only import trustymail in the scan() function. Hence it is only imported inside the Lambda function and not by the host where ./scan is being run.
I'm not sure it's worth fixing this now, since there is an obvious workaround, but I wanted to make sure this gets taken into account in the work @tadhg-ohiggins is doing in #232. If the scanner classes can work in such a way that the dependencies specific to that particular scanner only get imported inside the Lambda function (when running in Lambda) then we can keep the local dependencies to a minimum.
I hope all this makes sense. Please ask me for clarification if it's not. 😃
In #224 we separated
requirements.txtinto several differentrequirements.txtfiles, which I think is a good thing. In addition to one minor bug that I fixed in commit cc14109 in #234, there is a larger issue with the scanners.In
pshtt.pyand insslyze.pywe importpshttandsslyze, respectively, at the top of the file. This means that when running./scaneven in Lambda one must havepshttandtrustymailinstalled locally, on the host where you are running./scan. This goes against the intent of the splitting ofrequirements.txtin #224.Note that
trustymail.pydoes not have this problem because we only importtrustymailin thescan()function. Hence it is only imported inside the Lambda function and not by the host where./scanis being run.I'm not sure it's worth fixing this now, since there is an obvious workaround, but I wanted to make sure this gets taken into account in the work @tadhg-ohiggins is doing in #232. If the scanner classes can work in such a way that the dependencies specific to that particular scanner only get imported inside the Lambda function (when running in Lambda) then we can keep the local dependencies to a minimum.
I hope all this makes sense. Please ask me for clarification if it's not. 😃