Parameterized connections with user attributes

Steven Talbot · Friday Demos · November 8, 2024 · 4:51

New tooling that allows database connections to be parameterized via user attributes. This offers some optionality around permissioning (secure connection vs open connection) or even…

Try it yourselfThe full week on docsadministrationmodeling

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. uh I can go so these are a little more on the Rough and Ready side probably cutting more next week have not gotten design love other than my own personal design love uh but um anyway so we've got the we have this existing connection environments concept where you can set up these connection environments and uh toggle around between them in a branch so trying to extend this so you can use a user attribute to toggle between connection environments so set it up real quick and this UI will totally change so this should not really be used as the demo for what the UI will look like triple check that actually worked uh but just basically like set it up there's a user attribute name there's

  2. some values for the user attribute that will take your uh the the default connection and then there's some values that will take this connection environment which is an alternative connection uh so if I pop over here I see that my personal user has Boozle as its value so if I go here I see one count that has it's a number from one of the databases and swzle was the one that was getting the connection environment so that's it working if I change it to this work up over 199 uh and if I up into and actually the back and what should happen this again a little rough but I think this should work fine I'm G pop into a branch yeah so now what's happening

  3. when I pop into a branch is I have ditched the user attribute control BAS basically and I'm back to this explicit control which I think is the right Behavior so like basically as a developer you can go in you don't need to mess around with your own value user attribute and go into Branch mode and just test it out by jumping between the branches between the Stephen does does this start opening up um like different snowflake warehouses to run things type stuff that we've heard asks from that is maybe it's I'm thinking we might want to do something for that because it's like really heavy to set up different connections just to toggle between snowflake warehouses so in that particular one we may want to

  4. just build a special one I agree with that but done you could accomplish it not too hard you just set up two environments and set up the user attributes right you could yes you could accomplish it but I think people mostly want it for like this big this dashboard runs here or this schedule tends to not be a user based Dimension no no that's fair it's just if someone wanted to test the experience now I I think just having a response is pretty interesting as a starting point and then it means that we can come back and clean it up if we yeah yeah yeah yeah Stephen for that other use case would you envision mapping to environment still probably not it would probably be

  5. like truly a one off like a maybe even like a model par go back the kind of thing you want you want like a workbook or like you want to just set it on a schedule or something or maybe I don't know maybe it I don't but just something that's a little bit more likely Stephen is this a way internally as well to uh allow folks to flexibly manage database permissioning so let's say you had like a connection with pii and one without pii you could dynamically expose or uh conceal that info yes that that would be the kinda because it's just it's just two it's essentially just two totally different connections and again like the development switching even is two different schema models so

  6. you could literally have fields that were not even there in when you switched into one connection environment um because they don't come through in the schema model for that connection so yes yes and does it share the same uh model so like of the things that are the same like if you have the same user stable between is the modeling like is it the same I guess yeah yeah so same model yeah that's basically it same model switching between same shared model switching between different schema models and different connections basically depending on the environment um any more questions would we extend the concept to the DBT um environment settings and things or um or no plan to do that no plan to do that above

  7. above my DBT pay grade