
DB OAuth passthrough (soon)
Getting close to the launch of OAuth passthrough from the database in Omni. This would allow Omni to absorb any per-user permissioning from the database.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
Yeah, I'm up. Um, I land on some things, but in the background was working on this uh making connections have a user ooth authentication, which is a long-standing sort of boring thing to implement. Uh, but here it is. So for BigQuery, Snowflake and data bricks, you can switch this and get these still this is not released uh somewhat unstyled buttons.
Um or you go through authenticate we have got to fix our omni.co bigquery organization because I don't know what that means but that is our omni.co bigquery organization. Uh now I'm authenticated. And then snowflake. Oh, whoops. Meant to delete my go. Okay. Snowflake update data bricks. most exciting demo ever dedicated update. Um, and then prove that it works.
We're getting so this is I think this is big query. So look, got my user data bricks got my user over in Snowflake. My user was already Stephen at omni.co. So you have to trust me. This is my ooth user. And one way to verify is that I messed up my OOTH permissions. So that if I try to run a query that I usually can run, it doesn't work for some reason.
So that's some database OOTH configuration. Exciting, but just shows that you're running as a different user. And then if I delete my OOTH, like go to the database and delete it. Um, this is the experience you get. And I think we'll have to once Sarah and Jarrett come back, um, we'll have to figure out exactly, but right now, so right now it's kind of in this.
You get this, you open this button that let email email console have all my data two but I'm not going to subject you all to that. So that's pretty close. Needs some styling. Need some so close scrutiny but it's close. It's Stephen for that. How is the plan to just allow one person to Oop in for a connection or like sorry no should have made that way more clear.
Uh no so it's per user and you have a uh but you do have a yeah so way it's going to work it's per user but you still need a service account. So like BigQuery, you still need what the heck? Uh you still need a service account. Um Snowflake, you need a a user service account uh data bricks.
You still need to set up your M toM as like a service account so that it can fetch the schema and that has these implications, right? Like the schema model will be what this service account can see. And so users won't be able to query D tables they don't have access to but they may be able to see those views in Omni unless you use access grants to restrict them etc all that.
So that's that's the implication we're going to get and there's some still some open questions around like scheduling content. I I think v0 might will just be like if content runs as whoever's looking at it scheduling runs as you or if you do run as recipient runs as the recipient but some details to to work out there especially around like what if they're not logged in.
Got it. Thanks. Um I know there's like tokens attached to these also. Do we know how long the like tokens last for the users? So I mean off tokens very short lifespan refresh tokens when you configure it you can select them max lifespan. I'm slightly worried about data bricks unless I was misreading it. I'm pretty sure when I set it up the max refresh token lifespan I think was 129,000 and something which is not very many seconds.
Snowflake it was like ridiculously long. So, that would be one thing we'll have to keep an eye on, but I might have been misreading it. Um, but like essentially, yeah, the refresh token is what will keep it going. Um, yep. So, yeah. Um, which dialects are supported? Snowflake data birthquery. That's awesome. Is this uh behind a feature flag still in development status?
development. Not I think I don't think we'd put it behind a feature flag. It's kind of like once we feel it's ready for someone to test like they can someone can use it or not. Um but yeah, it it should be I don't see it being more than a week out. It's got some styling and some scrutiny and the model's still on a service account, right?
Yeah, the model the Skiva model is generated by a service account. Um, are there caching implications? I imagine is it like per user cache? Exact. Yep. It's exactly what you think. Per user cache. The basically the if you have OOTH on per user oath the the user ID goes into kind of canonical cache hash and all caches per user.
Stephen, what's the um you like do you have to be an admin then or is there like a separate user flow to authenticate? Um like so that was that was what I was trying to show over here like basically if and I think we need to make this a little more user friendly but here if this uh if as a user come to this page I'm not logged in.
Got it. And I think on a dashboard definitely need to figure I think on a dashboard this just you you'd be screwed. So like we definitely need to make a popup on a dash probably is solved. Um yeah, you authenticate as a user.