Skip to content

Commit

Permalink
hotfix/fix line length
Browse files Browse the repository at this point in the history
  • Loading branch information
tryfunc committed Aug 16, 2024
1 parent e51d47b commit 1e43ddc
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions tabpy/tabpy_server/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,12 @@ def _parse_config(self, config_file):
100, None),
(SettingsParameters.GzipEnabled, ConfigParameters.TABPY_GZIP_ENABLE,
True, parser.getboolean),
(SettingsParameters.ArrowEnabled, ConfigParameters.TABPY_ARROW_ENABLE, False, parser.getboolean),
(SettingsParameters.ArrowFlightPort, ConfigParameters.TABPY_ARROWFLIGHT_PORT, 13622, parser.getint),
(SettingsParameters.ArrowFlightBindIp, ConfigParameters.TABPY_ARROWFLIGHT_BIND_IP, '0.0.0.0', None),
(SettingsParameters.ArrowEnabled, ConfigParameters.TABPY_ARROW_ENABLE,
False, parser.getboolean),
(SettingsParameters.ArrowFlightPort, ConfigParameters.TABPY_ARROWFLIGHT_PORT,
13622, parser.getint),
(SettingsParameters.ArrowFlightBindIp, ConfigParameters.TABPY_ARROWFLIGHT_BIND_IP,
'0.0.0.0', None),
]

for setting, parameter, default_val, parse_function in settings_parameters:
Expand Down Expand Up @@ -502,8 +505,11 @@ def _handle_configuration_without_authentication(self):
confirm_no_auth_msg = "\nWARNING: This TabPy server is not currently configured for username/password authentication. "

if self.settings[SettingsParameters.EvaluateEnabled]:
confirm_no_auth_msg += ("This means that, because the TABPY_EVALUATE_ENABLE feature is enabled, there is "
"the potential that unauthenticated individuals may be able to remotely execute code on this machine. ")
confirm_no_auth_msg += (
"This means that, because the TABPY_EVALUATE_ENABLE feature is enabled, there is "
"the potential that unauthenticated individuals may be able "
"to remotely execute code on this machine. "
)

confirm_no_auth_msg += ("We strongly advise against proceeding without authentication as it poses a significant security risk.\n\n"
"Do you wish to proceed without authentication? (y/N): ")
Expand Down

0 comments on commit 1e43ddc

Please sign in to comment.