-
Notifications
You must be signed in to change notification settings - Fork 352
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
crates/core: add ValueRef and Column #235
Conversation
Null, | ||
Integer(i64), | ||
Real(f64), | ||
Text(&'a [u8]), |
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.
Minor but we could leave this as a str
to keep the enforced utf8 since its trivial to convert back into a u8.
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.
fair enough, rusqlite was like that probably mostly to satisfy weird windows encodings, but we're more opinionated on that front
235: Hrana server authentication r=honzasp a=honzasp Implement authentication in Hrana using JWTs. An Ed25519 public key is passed to sqld using `--hrana-jwt-key-file`, and the received JWT is verified using this key. We ignore the claims, except by validating the expiration in `exp`. I also added a helper script `scripts/gen_jwt.py` to generate the key and a JWT. This PR is stacked on top of #231. Co-authored-by: Jan Špaček <[email protected]>
Draft for now, since I'm actively working on migrating sqld on top of the new interfaces. Only once both work, I'll proceed with this PR.