Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Add TLS support to the docker container command line #107

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

csjperon
Copy link
Collaborator

@csjperon csjperon commented Nov 28, 2019

  • 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)
  • Update some unit tests which are outdated now
  • Add basic documentation for the new options
  • Make sure we aren't stripping escape characters from the YAML specification

- 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
@csjperon csjperon changed the title Add TLS support to the docker container Add TLS support to the docker container command line Nov 29, 2019
docs/Docker.md Outdated Show resolved Hide resolved
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)')
Copy link
Member

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?

Copy link
Collaborator Author

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)')
Copy link
Member

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?

Copy link

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.

Copy link
Member

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.

Copy link
Member

@fgsch fgsch left a 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 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants