GithubHelp home page GithubHelp logo

Comments (11)

tdcmeehan avatar tdcmeehan commented on July 25, 2024 1

Wondering if this use case, providing per-session authentication credentials, is common enough that it should have its own abstraction in Velox?

from presto.

ashkrisk avatar ashkrisk commented on July 25, 2024

FYI @tdcmeehan

from presto.

aditi-pandit avatar aditi-pandit commented on July 25, 2024

@majetideepak

from presto.

majetideepak avatar majetideepak commented on July 25, 2024

@ashkrisk Velox does not have some of the Presto Java abstractions such as Session, Identity. An easy workaround is to combine the extraCredentials and other session properties along with the ConnectorQueryCtx.sessionProperties map.
I added this implementation below. Will that work for you?
#22859

from presto.

ashkrisk avatar ashkrisk commented on July 25, 2024

@majetideepak yes, we can work with this, thanks 👍
Should the credentials added to the session be prefixed like ec.<name> or extraCreds.<name> before adding them to the list of session properties to avoid conflicts?

from presto.

majetideepak avatar majetideepak commented on July 25, 2024

Wondering if this use case, providing per-session authentication credentials, is common enough that it should have its own abstraction in Velox?

Yes, we should add an identity/credentials abstraction in Velox. The complexity is to make this engine agnostic.
Is it going to simply be another map?

from presto.

majetideepak avatar majetideepak commented on July 25, 2024

Should the credentials added to the session be prefixed

We can add a prefix. I assume the extraCredentials keys are fixed per connector.

from presto.

tdcmeehan avatar tdcmeehan commented on July 25, 2024

Wondering if this use case, providing per-session authentication credentials, is common enough that it should have its own abstraction in Velox?

Yes, we should add an identity/credentials abstraction in Velox. The complexity is to make this engine agnostic. Is it going to simply be another map?

That's how it is in Presto. Connectors will either expect a specific key in that map, or it may be configurable as a property.

from presto.

majetideepak avatar majetideepak commented on July 25, 2024

I added a simple Identity API in Velox. Let me know your feedback.
facebookincubator/velox#9982

from presto.

majetideepak avatar majetideepak commented on July 25, 2024

@ashkrisk can you update the RFC to explain how and where the Extra Credentials will be used?

from presto.

ashkrisk avatar ashkrisk commented on July 25, 2024

@majetideepak added a couple of lines to explain where the extraCredentials will be used.

https://github.com/prestodb/rfcs/blob/1c8a264658eda3c47e2ba4bda2ecb32fb391992f/RFC-0003-arrow-flight-connector.md?plain=1#L110-L112

from presto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.