-
Notifications
You must be signed in to change notification settings - Fork 1
Driver: Add page about Crystal #421
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
base: main
Are you sure you want to change the base?
Conversation
WalkthroughAdds a new Crystal driver guide for connecting to CrateDB using the crystal-pg driver and updates the drivers index to include Crystal in the language grid and site navigation. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
:::{rubric} CrateDB Cloud | ||
::: | ||
|
||
For connecting to CrateDB Cloud, use `sslmode=require&auth_methods=cleartext` | ||
parameters, and replace username, password and hostname with values matching | ||
your environment. | ||
```crystal | ||
DB.open("postgres://admin:[email protected]:5432/doc?sslmode=require&auth_methods=cleartext") | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Problem
When not permitting auth_methods=cleartext
, the connection will fail, because cleartext
is disabled by default.
Unhandled exception: (DB::ConnectionRefused)
Caused by: server asked for disabled authentication method: cleartext (PQ::ConnectionError)
Background
By default this driver will accept
scram-sha-256
andmd5
, as well as
trust
. Howevercleartext
is disabled by default. You can control exactly
which auth methods the client will accept by passing in a comma separated list
to theauth_methods
parameter.
Thoughts
Do you think it is applicable to report this to crate/crate, so it may possibly support md5
or scram-sha-256
in the future?
About
What the title says.
Preview
https://cratedb-guide--421.org.readthedocs.build/connect/crystal/