
Native field masking
You could already mask fields via custom SQL but we're building some native gestures to make it easier to build and manage.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
All right. Uh, how does this thing work? So, we have had this pattern in um people see my screen? Yes. Great. uh we've got this we've got this pattern and it's it's it's documented in one of our community articles for if you want to be able to mask data. So maybe you've got some users who are allowed to see some sensitive data and some who are not.
And the pattern that we've had is using a user attribute write a case uh when statement in the dimension that is um sensitive and then you know show an MD5 hash if they don't have the appropriate user attribute value and otherwise show the actual raw value. Uh so I thought, hey, be nice to make that a native uh gesture that you can just assign to a dimension to mask it.
And so in this demo, what I've got going on is I have this access grant, the name of the access grants demo, user attribute bar, allowed values allow. And uh you can see actually that I've added this property which is currently warning me uh that demos access grant doesn't exist. I did that on purpose actually. Uh so now my validation's gone and model kind is now um masked unless I have the access grant demo satisfied.
So just to prove that works uh let's see here's my user attribute. Oh y currently have the value allow. So uh just we'll just run this was when the access grant this is from when the access grant was uh has a wrong access grant referenced. But if I refresh this we should be able to count model kinds.
Oh no. Oh, I lost my AWS. Um, rights. Conrad, question while you're digging. Yeah, I'm not digging. I just got to refresh my my AWS. Uh, do you are we is there an affordance for the type of masking that gets done? Sometimes you have masks that retain grouping, sometimes you don't. Sometimes you want to put a word in there, sometimes you don't.
Um like curious what your handler is for the cases. Right now it just does a case MD5 hash. Okay. We we want we we probably want to extend that to um like what you can put in the hash because there's times where you want to retain um like row granularity. An MD5 hash would be the example of that.
And there's times where you don't where you want it to say unknown or you want to null it out. Then you lose row granularity. So we want we wanted some affordance for that. Okay, we'll have to maybe go back to the drawing board a little bit um to Will it work this time? H refreshing my credentials didn't didn't do Colin.
Oh, and it's probably not going to restart because of that local bug. Let me let me restart my server and we'll see if I can continue my demo here. Um that is a great point, Colin. and taking that into consideration might actually want to make the the property name uh like a complex object that that I think we want to and so uh I actually released this this week.
I don't know if anybody's picked it up and started using it but but um glad I'm getting that feedback and it's definitely achievable. Uh, I've been bitten by the uh the local development bug here. So, I'm not going to be able to demo currently uh what's going on here. Bummer. We will I guess uh get it next week.
All right, take two. Now that I've got my instance back to a good state, uh sharing. Well, for the f sake of the people who didn't see uh the first take on this, we'll start over again. Uh we have this pattern in Omni if you want to mask sensitive data for some users where you can add to the dimension a case statement which basically says if this user attri you know case user attribute value is the value that's allowed just reference the underlying field otherwise MD5 hash of said underlying field.
Uh so I've added that as a native gesture in the model. Uh so you can just apply it to whatever dimensions you want. So in this case, I've added this access grant to my model. And somewhere down in one of these views, I have a new property mask unless access grants. And the access grant the user must have is demo.
You can see the description over here. If it's specified, uh, then the user must satisfy the access grants, otherwise they're going to get their data masked. If we jump over into a query, I've selected that model kind, and uh, currently my user attribute does satisfy that access grant. it's allowed. So, I'm getting data back. If I come in and change my value for this to something that's not allowed, no longer satisfying the access grant, and I rerun, you can see that we're now caching all of the sensitive values.
Yes, model kind. Um, so that's that piece. Actually, the first time I started to show this, Colin brought up a a great point that some folks might not want to uh necessarily use an MD5 hash. They may want to make it all a single string like unknown or something along those lines. So, um that is something that I'll probably work to modify this implementation to support that in the coming weeks or week perhaps or maybe right after we got off this call.
Um, so the other thing that I wanted to show is, okay, I'll just use this branch that I've already got. I'm going to create a pull request. And I'll just do this quickly to prove this all works. And then we'll see if anybody noticed what was interesting about what I'm doing right now. Hint, this is a newly supported git service provider.
So hopefully by end of day today, genius, we should be able to link Omni with Bitbucket. And that is all I have to share.