-
Notifications
You must be signed in to change notification settings - Fork 2
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
FlightSQL endpoint #29
Conversation
@@ -4,11 +4,14 @@ All notable changes to this project will be documented in this file. | |||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | |||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | |||
|
|||
## [0.8.0] - 2023-10-26 |
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.
0.9.0
async fn authenticate(&self, username: &str, password: &str) -> Result<Token, Status> { | ||
// TODO: SEC: Real auth via app token | ||
if username == "kamu" && password == "kamu" { | ||
Ok(String::new()) | ||
} else { | ||
Err(Status::unauthenticated("Invalid credentials!")) | ||
} | ||
} | ||
|
||
#[tracing::instrument(level = "debug", skip_all)] | ||
async fn get_context(&self, _token: &Token) -> Result<Arc<SessionContext>, Status> { | ||
let subject = CurrentAccountSubject::Anonymous( | ||
kamu::domain::AnonymousAccountReason::NoAuthenticationProvided, | ||
); |
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.
Doesn't this thing go through our HTTP authentication middleware? If no, maybe it should.
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.
Arrow Flight is built on top of gRPC, which uses HTTP/2 as transport, so there is a chance we can reuse auth middleware. But I'm still in "just make it work" mode here.
No description provided.