Give user the option to disable SSL/TLS for the source and destination individually
This commit is contained in:
33
main.py
33
main.py
@@ -20,7 +20,9 @@ def main():
|
||||
default=None,
|
||||
help="Specify the working directory"
|
||||
)
|
||||
|
||||
|
||||
######################
|
||||
##### Source Arguments
|
||||
parser.add_argument(
|
||||
"--source-hostname", "--source-host",
|
||||
dest="source_hostname",
|
||||
@@ -54,7 +56,9 @@ def main():
|
||||
help="Specify zero or more topics required topics for source repositories."
|
||||
" Any repository that doesn't have all required topics will be skipped"
|
||||
)
|
||||
|
||||
|
||||
###########################
|
||||
##### Destination Arguments
|
||||
parser.add_argument(
|
||||
"--destination-hostname", "--dest-hostname", "--destination-host", "--dest-host",
|
||||
dest="destination_hostname",
|
||||
@@ -124,15 +128,32 @@ def main():
|
||||
action="store_false",
|
||||
help="Do not ask to confirm each migration; Migrate all repos quickly.",
|
||||
)
|
||||
|
||||
|
||||
###################
|
||||
##### SSL/TLS Stuff
|
||||
parser.add_argument(
|
||||
"--no-verify-ssl",
|
||||
dest="verify_ssl",
|
||||
default=True,
|
||||
action="store_false",
|
||||
help="Don't verify SSL certificates",
|
||||
help="Don't verify SSL/TLS certificates",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--no-verify-source-ssl",
|
||||
dest="verify_source_ssl",
|
||||
default=None,
|
||||
action="store_false",
|
||||
help="Don't verify the SSL/TLS certificate for the source host",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--no-verify-destination-ssl",
|
||||
dest="verify_destination_ssl",
|
||||
default=None,
|
||||
action="store_false",
|
||||
help="Don't verify the SSL/TLS certificate for the destination host",
|
||||
)
|
||||
|
||||
# Doesn't seem to be helpful?
|
||||
parser.add_argument(
|
||||
"--ca-bundle",
|
||||
dest="ca_bundle",
|
||||
@@ -153,6 +174,8 @@ def main():
|
||||
destination_port=args.destination_port,
|
||||
destination_token=args.destination_token,
|
||||
verify_ssl=args.verify_ssl,
|
||||
verify_source_ssl=args.verify_source_ssl,
|
||||
verify_destination_ssl=args.verify_destination_ssl,
|
||||
ca_bundle=args.ca_bundle
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user