Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the support for separate credential file #74

Merged
merged 3 commits into from
Mar 27, 2024

Conversation

slavavrn
Copy link

@slavavrn slavavrn commented Mar 21, 2024

I have restored the ability to specify a login and password in cqlshrc.
However, I discovered that the features introduced by this commit are not reflected in the documentation.
If you tell me how to make changes to the documentation, I can add a description of using AuthProviders for cqlsh to the documentation.
I also see shortcomings in the tests, for example cqlshlib/test/test_cqlsh_completion.py does not work correctly on an empty database. Therefore, the autotests did not pass completely. But this needs to be corrected with a separate pull request.

Fixes: #73

@fruch
Copy link
Collaborator

fruch commented Mar 21, 2024

Regarding the test, they would work, and can generate its own data.

You'll soon see the CI run, running the suite as in the CI GitHub action, should be working also locally, if not please report in a separate issue.

@fruch
Copy link
Collaborator

fruch commented Mar 21, 2024

Can you add titles and brief descriptions to the commits ?

A nice to have for this fix, is a test using both option of files, to validate this is fixed, and to make sure it won't break again

@slavavrn
Copy link
Author

What should I do better? Close this pull request, remove the commit that changes the notice output to stdout, and create a new pull request? Or make another commit that undoes the last commit?

@fruch
Copy link
Collaborator

fruch commented Mar 21, 2024

What should I do better? Close this pull request, remove the commit that changes the notice output to stdout, and create a new pull request? Or make another commit that undoes the last commit?

I think you can change this PR in place, and remove the change related to the output
a nice to have would be a test as I mentioned, but not critical

@fruch fruch changed the title Issue 73 credential file Fix the support for separate credential file Mar 21, 2024
@fruch
Copy link
Collaborator

fruch commented Mar 21, 2024

@slavavrn did you reported this issue to cassandra as well ?

seems like they are suffering from the same exact issue

… file were ignored.

Now the username and password from credentials file can be used again.
Added description to notice on how to properly use the credentials file
@slavavrn slavavrn force-pushed the issue-73-credential-file branch from e67ee2a to 5252ae6 Compare March 22, 2024 11:36
@slavavrn
Copy link
Author

Maybe I did it wrong, but I replaced the commit so that there were no erroneous commits

@slavavrn
Copy link
Author

@slavavrn did you reported this issue to cassandra as well ?

seems like they are suffering from the same exact issue

No, I didn't do that. Sorry, I don’t understand very well, do I need to duplicate the issue in Cassandra, or can I make a pull request from here?

@fruch
Copy link
Collaborator

fruch commented Mar 24, 2024

@slavavrn did you reported this issue to cassandra as well ?

seems like they are suffering from the same exact issue

No, I didn't do that. Sorry, I don’t understand very well, do I need to duplicate the issue in Cassandra, or can I make a pull request from here?

I'm guessing the fix is similar, and you can open the PR on the Cassandra repository

They usually asks for an issue on their system

@slavavrn slavavrn force-pushed the issue-73-credential-file branch from 260512b to 5252ae6 Compare March 25, 2024 09:20
… file were ignored.

Now the username and password from credentials file can be used again.
Added description to notice on how to properly use the credentials file
Added test to check legacy credential format
@slavavrn
Copy link
Author

I added a test to check credentials

@fruch fruch self-requested a review March 26, 2024 13:01
@slavavrn
Copy link
Author

I also requested registration on the cassandra issues tracker in order to create an issue there

Copy link
Collaborator

@fruch fruch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fruch fruch merged commit 980b4e9 into scylladb:master Mar 27, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error reading data from credential file
2 participants