
Topic permissions
New controls to allow topic-by-topic permissions in a single model
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
uh I got one um this is mostly stuff that's already merged but it's not hooked up so this is kind of the demo of it being hooked up with the one crucial piece so this is the concept of access grants in topics so we've got this access grants thing the top level of the model for some of us this may look familiar um the it just says you know so I have an access grant called Fu my user attribute some user called region needs to be set to California in order for me to have access to this grant uh and then I have this topic users that requires the access Grant Fu for me to see it uh same thing different very exciting topic users
to that requires the attribute the access filter access Grant fuu um so then if I go over and I look at workbook I see that it's I can't see users two but if I go and I add this is an allowed value can see it all right that's the whole demo uh the the interesting thing for engineers is the way this is working currently because I didn't want to have the remix server box up all the user attributes and send them over the wire every time we want to ask for a model of any kind because we do that a lot and it's a G request so you wouldn't want to stick in the whole URL um this is actually the the cot this is
the first thing that's done like this the cotlin service is reaching back out to the node server via the internal API which someone already built for this Schuler uh maybe Cory thanks Corey anyway works great uh um and well I actually don't know that it works in production or not I think I copy pasted the pattern right so we'll uh we'll we'll test we'll put it in production before releasing it make sure it uh checks out and everything but I think it should just work um and it just means that kind of the life cycle is right and we don't have to implement user attribute handling in two places and yeah do we do we think that the pattern that'll always be the pattern like
API cuz like we could also just have the cin service reach into the database also uh do think we're going to do API based which I'm not notos I'm just curious yeah yeah no I mean that the it's yeah we there was there was some discussion on slack about whether um whether that was the right whether we should do that or have it reach to the database the the i' and I've gone I've literally gone back and forth but then I tried this and it was pretty easy so I was like okay um the it's possible that someday if we want to get very fancy and be able to draw one of those diagrams with like the eight boxes of services then there will be
this just service that sits there and everybody asks it for stuff about user attributes um but for now the reason I shied away from the database thing is that then you would the logic to kind of get the bundle of user attributes from the database is I mean it's not crazy but it's not totally trivial so then you'd have to have kind of two duplicated yeah yeah so yeah I will put my foot down and say early I would really like us to not let anything touch the other things database directly like because it's just D that is how we get ourselves in in trouble I don't want to build thousands of microservices but I really like the idea of facades that each surf each
service controls its underlying database and does not expose it directly um because it leaves us the ability to like decide user attributes ch change how they work and we change it in one place and the backend Services other services don't care that frug what is what does the API look like here too is it like a is a user ID or something that we're requesting the attributes for or something like that yeah like uh whatever attributes org ID user ID uh and you don't it's it's unauthenticated I was all I had a bunch of fud about like oh how am I going to do this authentication thing and then I tried it the first time and it worked I was like oh it's internal in
the cluster it is not authenticated so um that uh that works great what's the experience for loading a link to one to like a query in a topic that you don't have access to uh good question let's see I can do this without my screen sharing in case really bad and then I'll show you um yeah I mean it's uh oh well okay so there's what I see here and but this is not really very realistic because realistically you would only do this for topic only users yeah what happened is it I'm actually surprised it was smart enough to do this it booted me out of the topic uh put me in All Views and Fields because I'm kind that's actually what I would expect
like that's it's because you're you have SQL access here yeah I have I have seq of using Fields access so it booted me out and it says I can't and for a non-topic for a for a viewer it probably is just G to have an error like you Lo a work page won't even show this I think it'll load the page um it load it to all but it we that user doesn't have access to All Views and Fields do that that you're right it's definitely that's definitely worth checking let's just chase that down I just want to make sure that it is uh at least not a 404 yeah no or maybe we want a 404 I don't know it's I I just want
it to be what we want it to be it's a good question about what we show on the field picker I I would expect you get an error at the top like when you are a topic viewer and you can't access All Views and Fields we give you an error saying you don't have access to that we probably want something similar we have to figure out to show and then on the dashboard same like what do we do if you what do we do if you open a workbook to a connection you don't have access to right now I will definitely edit this section out how does our product work uh no yeah I don't that's a good I I actually have no idea later
I think a connection you don't have access to it's going to be a hard 404 on the workbook page yeah yeah um I I don't know I'd have to check but I think it's yeah this top for a topic only user for a topic you can't see that I don't know I'll up