scylladb / scylla-operator

The Kubernetes Operator for ScyllaDB
https://operator.docs.scylladb.com/
Apache License 2.0
324 stars 159 forks source link

Cover configuring CQL credentials in Scylla Manager integration docs pages #1896

Open rzetelskik opened 2 months ago

rzetelskik commented 2 months ago

What should the feature do?

We should cover configuring CQL credentials for ScyllaDB clusters registered with Scylla Manager by Scylla Operator in our docs.

What is the use case behind this feature?

We can't securely sync CQL credentials with Scylla Manager. We should however cover configuring them manually in our docs. Currently, none of the pages in our docs related to Scylla Manager integration or operations cover it. If a user sets up PasswordAuthenticator in ScyllaDB config (as suggested by our examples), and tries to follow the restore procedure, they get the following error:

scylla@scylla-manager-69c446f4d4-fnp8t:/$ sctool restore -c <cluster-id> -L <location> -T <snapshot-tag> --restore-schema
Error: create restore target, units and views: create worker: get CQL cluster session: cluster requires CQL authentication but username/password was not set
Trace ID: f6Wzw43KSLmIVCK6YEISew (grep in scylla-manager logs)

Ref: https://github.com/scylladb/scylla-manager/issues/3804.

Anything else we need to know?

No response

EversonKalafStone commented 1 month ago

Good afternoon, I had the same error, I discovered that when adding the cluster you need to enter the username and password, as below:

sctool cluster add --host=host --name cluster_name --auth-token=token --username username --password password

this way it worked here