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

FlightSQL endpoint #29

Merged
merged 1 commit into from
Oct 26, 2023
Merged

FlightSQL endpoint #29

merged 1 commit into from
Oct 26, 2023

Conversation

sergiimk
Copy link
Member

No description provided.

@sergiimk sergiimk merged commit b884acd into master Oct 26, 2023
3 checks passed
@sergiimk sergiimk deleted the feature/flight-sql branch October 26, 2023 22:38
@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

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

0.9.0

Comment on lines +73 to +86
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,
);
Copy link
Contributor

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.

Copy link
Member Author

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.

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.

2 participants