-
Notifications
You must be signed in to change notification settings - Fork 59
Add TLS support to the docker container command line #107
base: master
Are you sure you want to change the base?
Conversation
- Introduce two options --port and --protocol which will allow users to override the YAML specification and test using TLS (or on alternate ports) - Properly handle exceptions when we are expecting gzip'ed data but actually get clear text (or invalid compressed data)
- The content of example.com changed, the string be searched for is no longer there. Fix this test to identify a string that is present as of this commit
- When loading files from the host environment, they could contain escaped characters. The backslashes from the YAML need to be preserved
parser.add_argument('--protocol', default=None, | ||
help='Specify protocol: http or https (default http)') | ||
parser.add_argument('--port', default=None, | ||
help='Specify port number (default 80)') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this true (default to 80) or whatever is specified in the yaml files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is true
@@ -26,16 +26,24 @@ def main(): | |||
help='Destination host for the payloads') | |||
parser.add_argument('--destaddr_as_host', action='store_true', | |||
help='Use destination address as the Host header') | |||
parser.add_argument('--protocol', default=None, | |||
help='Specify protocol: http or https (default http)') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this true (default to http) or whatever is specified in the yaml files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, we default the port to 80 in the YAML files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, but if the yaml file uses something else it won't be.
Personally I'd remove the default from the help.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left my personal preference but either way looks good to me 👍
--port
and--protocol
which will allow users to overridethe YAML specification and test using TLS (or on alternate ports)
get clear text (or invalid compressed data)