scylla-cqlsh 6.0.16__tar.gz → 6.0.18__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of scylla-cqlsh might be problematic. Click here for more details.
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/Dockerfile +1 -1
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/PKG-INFO +1 -1
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/bin/cqlsh.py +10 -8
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/cqlsh/cqlsh.py +10 -8
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/cqlshlib/_version.py +2 -2
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/cqlshlib/copyutil.c +170 -90
- {scylla-cqlsh-6.0.16/pylib → scylla_cqlsh-6.0.18}/cqlshlib/sslhandling.py +16 -3
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18/pylib}/cqlshlib/sslhandling.py +16 -3
- scylla_cqlsh-6.0.18/pylib/cqlshlib/test/test_authproviderhandling_config/plain_text_legacy +3 -0
- scylla_cqlsh-6.0.18/pylib/cqlshlib/test/test_legacy_auth.py +55 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/scylla_cqlsh.egg-info/PKG-INFO +1 -1
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/scylla_cqlsh.egg-info/SOURCES.txt +2 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/.dockerignore +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/.github/workflows/build-push.yml +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/.github/workflows/dockerhub-description.yml +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/.gitignore +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/LICENSE.txt +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/README.md +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/SCYLLA-VERSION-GEN +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/bin/cqlsh +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/cqlsh/__init__.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/cqlsh/__main__.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/cqlshlib/__init__.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/cqlshlib/authproviderhandling.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/cqlshlib/copyutil.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/cqlshlib/cql3handling.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/cqlshlib/cqlhandling.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/cqlshlib/cqlshhandling.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/cqlshlib/displaying.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/cqlshlib/formatting.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/cqlshlib/helptopics.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/cqlshlib/pylexotron.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/cqlshlib/saferscanner.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/cqlshlib/tracing.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/cqlshlib/util.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/cqlshlib/wcwidth.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/dist/debian/changelog.template +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/dist/debian/control.template +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/dist/debian/debian/compat +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/dist/debian/debian/copyright +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/dist/debian/debian/rules +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/dist/debian/debian/source/format +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/dist/debian/debian/source/options +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/dist/debian/debian_files_gen.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/dist/redhat/scylla-cqlsh.spec +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/install-dependencies.sh +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/install.sh +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/Dockerfile.ubuntu.py3 +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/Dockerfile.ubuntu.py37 +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/Dockerfile.ubuntu.py38 +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/README.asc +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cassandra-cqlsh-tests.sh +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/__init__.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/authproviderhandling.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/copyutil.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/cql3handling.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/cqlhandling.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/cqlshhandling.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/displaying.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/formatting.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/helptopics.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/pylexotron.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/saferscanner.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/test/__init__.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/test/ansi_colors.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/test/basecase.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/test/cassconnect.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/test/reserved_keywords.txt +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/test/run_cqlsh.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/test/test_authproviderhandling.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/test/test_authproviderhandling_config/complex_auth_provider +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/test/test_authproviderhandling_config/complex_auth_provider_creds +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/test/test_authproviderhandling_config/complex_auth_provider_with_pass +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/test/test_authproviderhandling_config/empty_example +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/test/test_authproviderhandling_config/full_plain_text_example +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/test/test_authproviderhandling_config/illegal_example +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/test/test_authproviderhandling_config/no_classname_example +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/test/test_authproviderhandling_config/partial_example +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/test/test_authproviderhandling_config/plain_text_full_creds +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/test/test_authproviderhandling_config/plain_text_partial_creds +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/test/test_authproviderhandling_config/plain_text_partial_example +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/test/test_constants.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/test/test_copyutil.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/test/test_cql_parsing.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/test/test_cqlsh_completion.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/test/test_cqlsh_output.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/test/test_keyspace_init.cql +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/test/test_unicode.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/test/winpty.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/tracing.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/util.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/cqlshlib/wcwidth.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/requirements.txt +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pylib/setup.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/pyproject.toml +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/reloc/build_deb.sh +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/reloc/build_reloc.sh +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/reloc/build_rpm.sh +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/requirements.txt +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/scripts/create-relocatable-package.py +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/scylla_cqlsh.egg-info/dependency_links.txt +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/scylla_cqlsh.egg-info/entry_points.txt +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/scylla_cqlsh.egg-info/requires.txt +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/scylla_cqlsh.egg-info/top_level.txt +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/setup.cfg +0 -0
- {scylla-cqlsh-6.0.16 → scylla_cqlsh-6.0.18}/setup.py +0 -0
|
@@ -10,7 +10,7 @@ RUN pip install --user .
|
|
|
10
10
|
FROM python:3.11-slim-bullseye AS build-image
|
|
11
11
|
|
|
12
12
|
# Upgrade packages to the latest, pip as well.
|
|
13
|
-
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get upgrade && apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
13
|
+
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -y upgrade && apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
14
14
|
RUN pip install --upgrade --no-cache-dir pip
|
|
15
15
|
|
|
16
16
|
COPY --from=compile-image /root/.local /root/.local
|
|
@@ -48,11 +48,6 @@ UTF8 = 'utf-8'
|
|
|
48
48
|
|
|
49
49
|
description = "CQL Shell for Apache Cassandra"
|
|
50
50
|
|
|
51
|
-
try:
|
|
52
|
-
from cqlshlib._version import __version__ as version
|
|
53
|
-
except ImportError:
|
|
54
|
-
version = "6.2.0"
|
|
55
|
-
|
|
56
51
|
readline = None
|
|
57
52
|
try:
|
|
58
53
|
# check if tty first, cause readline doesn't check, and only cares
|
|
@@ -161,6 +156,10 @@ from cqlshlib.tracing import print_trace, print_trace_session
|
|
|
161
156
|
from cqlshlib.util import get_file_encoding_bomsize
|
|
162
157
|
from cqlshlib.util import is_file_secure, trim_if_present
|
|
163
158
|
|
|
159
|
+
try:
|
|
160
|
+
from cqlshlib._version import __version__ as version
|
|
161
|
+
except ImportError:
|
|
162
|
+
version = "0.0.0"
|
|
164
163
|
|
|
165
164
|
DEFAULT_HOST = '127.0.0.1'
|
|
166
165
|
DEFAULT_PORT = 9042
|
|
@@ -494,6 +493,8 @@ class Shell(cmd.Cmd):
|
|
|
494
493
|
profiles[EXEC_PROFILE_DEFAULT].load_balancing_policy = WhiteListRoundRobinPolicy([self.hostname])
|
|
495
494
|
kwargs['port'] = self.port
|
|
496
495
|
kwargs['ssl_context'] = sslhandling.ssl_settings(hostname, CONFIG_FILE) if ssl else None
|
|
496
|
+
# workaround until driver would know not to lose the DNS names for `server_hostname`
|
|
497
|
+
kwargs['ssl_options'] = {'server_hostname': self.hostname} if ssl else None
|
|
497
498
|
else:
|
|
498
499
|
assert 'scylla' in DRIVER_NAME.lower(), f"{DRIVER_NAME} {DRIVER_VERSION} isn't supported by scylla_cloud"
|
|
499
500
|
kwargs['scylla_cloud'] = cloudconf
|
|
@@ -2131,6 +2132,7 @@ class Shell(cmd.Cmd):
|
|
|
2131
2132
|
kwargs['contact_points'] = (self.hostname,)
|
|
2132
2133
|
kwargs['port'] = self.port
|
|
2133
2134
|
kwargs['ssl_context'] = self.conn.ssl_context
|
|
2135
|
+
kwargs['ssl_options'] = self.conn.ssl_options
|
|
2134
2136
|
if os.path.exists(self.hostname) and stat.S_ISSOCK(os.stat(self.hostname).st_mode):
|
|
2135
2137
|
kwargs['load_balancing_policy'] = WhiteListRoundRobinPolicy([UnixSocketEndPoint(self.hostname)])
|
|
2136
2138
|
else:
|
|
@@ -2421,7 +2423,8 @@ def read_options(cmdlineargs, environment):
|
|
|
2421
2423
|
print("\nWarning: Password is found in an insecure cqlshrc file. The file is owned or readable by other users on the system.",
|
|
2422
2424
|
end='', file=sys.stderr)
|
|
2423
2425
|
print("\nNotice: Credentials in the cqlshrc file is deprecated and will be ignored in the future."
|
|
2424
|
-
"\nPlease use a credentials file to specify the username and password.\n"
|
|
2426
|
+
"\nPlease use a credentials file to specify the username and password.\n"
|
|
2427
|
+
"\nTo use basic authentication, place the username and password in the [PlainTextAuthProvider] section of the credentials file.\n", file=sys.stderr)
|
|
2425
2428
|
|
|
2426
2429
|
optvalues = optparse.Values()
|
|
2427
2430
|
|
|
@@ -2493,7 +2496,7 @@ def read_options(cmdlineargs, environment):
|
|
|
2493
2496
|
credentials.read(options.credentials)
|
|
2494
2497
|
|
|
2495
2498
|
# use the username from credentials file but fallback to cqlshrc if username is absent from the command line parameters
|
|
2496
|
-
options.username = username_from_cqlshrc
|
|
2499
|
+
options.username = option_with_default(credentials.get, 'plain_text_auth', 'username', username_from_cqlshrc)
|
|
2497
2500
|
|
|
2498
2501
|
if not options.password:
|
|
2499
2502
|
rawcredentials = configparser.RawConfigParser()
|
|
@@ -2501,7 +2504,6 @@ def read_options(cmdlineargs, environment):
|
|
|
2501
2504
|
|
|
2502
2505
|
# handling password in the same way as username, priority cli > credentials > cqlshrc
|
|
2503
2506
|
options.password = option_with_default(rawcredentials.get, 'plain_text_auth', 'password', password_from_cqlshrc)
|
|
2504
|
-
options.password = password_from_cqlshrc
|
|
2505
2507
|
elif not options.insecure_password_without_warning:
|
|
2506
2508
|
print("\nWarning: Using a password on the command line interface can be insecure."
|
|
2507
2509
|
"\nRecommendation: use the credentials file to securely provide the password.\n", file=sys.stderr)
|
|
@@ -48,11 +48,6 @@ UTF8 = 'utf-8'
|
|
|
48
48
|
|
|
49
49
|
description = "CQL Shell for Apache Cassandra"
|
|
50
50
|
|
|
51
|
-
try:
|
|
52
|
-
from cqlshlib._version import __version__ as version
|
|
53
|
-
except ImportError:
|
|
54
|
-
version = "6.2.0"
|
|
55
|
-
|
|
56
51
|
readline = None
|
|
57
52
|
try:
|
|
58
53
|
# check if tty first, cause readline doesn't check, and only cares
|
|
@@ -161,6 +156,10 @@ from cqlshlib.tracing import print_trace, print_trace_session
|
|
|
161
156
|
from cqlshlib.util import get_file_encoding_bomsize
|
|
162
157
|
from cqlshlib.util import is_file_secure, trim_if_present
|
|
163
158
|
|
|
159
|
+
try:
|
|
160
|
+
from cqlshlib._version import __version__ as version
|
|
161
|
+
except ImportError:
|
|
162
|
+
version = "0.0.0"
|
|
164
163
|
|
|
165
164
|
DEFAULT_HOST = '127.0.0.1'
|
|
166
165
|
DEFAULT_PORT = 9042
|
|
@@ -494,6 +493,8 @@ class Shell(cmd.Cmd):
|
|
|
494
493
|
profiles[EXEC_PROFILE_DEFAULT].load_balancing_policy = WhiteListRoundRobinPolicy([self.hostname])
|
|
495
494
|
kwargs['port'] = self.port
|
|
496
495
|
kwargs['ssl_context'] = sslhandling.ssl_settings(hostname, CONFIG_FILE) if ssl else None
|
|
496
|
+
# workaround until driver would know not to lose the DNS names for `server_hostname`
|
|
497
|
+
kwargs['ssl_options'] = {'server_hostname': self.hostname} if ssl else None
|
|
497
498
|
else:
|
|
498
499
|
assert 'scylla' in DRIVER_NAME.lower(), f"{DRIVER_NAME} {DRIVER_VERSION} isn't supported by scylla_cloud"
|
|
499
500
|
kwargs['scylla_cloud'] = cloudconf
|
|
@@ -2131,6 +2132,7 @@ class Shell(cmd.Cmd):
|
|
|
2131
2132
|
kwargs['contact_points'] = (self.hostname,)
|
|
2132
2133
|
kwargs['port'] = self.port
|
|
2133
2134
|
kwargs['ssl_context'] = self.conn.ssl_context
|
|
2135
|
+
kwargs['ssl_options'] = self.conn.ssl_options
|
|
2134
2136
|
if os.path.exists(self.hostname) and stat.S_ISSOCK(os.stat(self.hostname).st_mode):
|
|
2135
2137
|
kwargs['load_balancing_policy'] = WhiteListRoundRobinPolicy([UnixSocketEndPoint(self.hostname)])
|
|
2136
2138
|
else:
|
|
@@ -2421,7 +2423,8 @@ def read_options(cmdlineargs, environment):
|
|
|
2421
2423
|
print("\nWarning: Password is found in an insecure cqlshrc file. The file is owned or readable by other users on the system.",
|
|
2422
2424
|
end='', file=sys.stderr)
|
|
2423
2425
|
print("\nNotice: Credentials in the cqlshrc file is deprecated and will be ignored in the future."
|
|
2424
|
-
"\nPlease use a credentials file to specify the username and password.\n"
|
|
2426
|
+
"\nPlease use a credentials file to specify the username and password.\n"
|
|
2427
|
+
"\nTo use basic authentication, place the username and password in the [PlainTextAuthProvider] section of the credentials file.\n", file=sys.stderr)
|
|
2425
2428
|
|
|
2426
2429
|
optvalues = optparse.Values()
|
|
2427
2430
|
|
|
@@ -2493,7 +2496,7 @@ def read_options(cmdlineargs, environment):
|
|
|
2493
2496
|
credentials.read(options.credentials)
|
|
2494
2497
|
|
|
2495
2498
|
# use the username from credentials file but fallback to cqlshrc if username is absent from the command line parameters
|
|
2496
|
-
options.username = username_from_cqlshrc
|
|
2499
|
+
options.username = option_with_default(credentials.get, 'plain_text_auth', 'username', username_from_cqlshrc)
|
|
2497
2500
|
|
|
2498
2501
|
if not options.password:
|
|
2499
2502
|
rawcredentials = configparser.RawConfigParser()
|
|
@@ -2501,7 +2504,6 @@ def read_options(cmdlineargs, environment):
|
|
|
2501
2504
|
|
|
2502
2505
|
# handling password in the same way as username, priority cli > credentials > cqlshrc
|
|
2503
2506
|
options.password = option_with_default(rawcredentials.get, 'plain_text_auth', 'password', password_from_cqlshrc)
|
|
2504
|
-
options.password = password_from_cqlshrc
|
|
2505
2507
|
elif not options.insecure_password_without_warning:
|
|
2506
2508
|
print("\nWarning: Using a password on the command line interface can be insecure."
|
|
2507
2509
|
"\nRecommendation: use the credentials file to securely provide the password.\n", file=sys.stderr)
|