Masking Policies - Protect Access to sensitive information from unauthorized users and allow access to authorized users. Its Schema Level object .At Actual storage level its stored as it is but while fetching and displaying masking policies applied over it . Can include conditions and functions to transform data when conditions are met. Can be applied on multiple columns . Role Based Create masking policy Policy_1 as (Cloumn_1 Datatype) returns Datatype⇒ Case When CURRENT_ROLE in (’ROLE_1’) T hen Column_1 else ‘****’ end ; Condition Based Create masking policy Policy_1 as (Cloumn_1 Datatype, Column_2 Datatype) returns Datatype⇒ Case When CURRENT_ROLE in (’role_1’) Then Column_1 when column_2=’ABC then Column_1 else ‘****’ end ; Application - ALTER TABLE TABLENAME MODIFY COLUMN COLUMN_1 SET MASKING POLICY POLICY_1 , MODIFY COLUMN COLUMN_2 SET MASKING POLICY POLICY_2 USING(COLUMN_1, COLUMN_2) ; UNSET -To Remove ; ALTER MASKING POLICY POLICY_NAME RENAME TO NEW_POLICY_NAME; ALTER MASKING POLICY POLICY_NAME SET BODY ⇒ CASE STATEMENT ; DROP MASKING POLICY POLICY_NAME; Before Dropping we need to unset masking policy and datatype of input and output values must be same .
It is a vast topic, can't explain in 2 to 3 line, go through below link, it is well explained in Snowflake documentation. docs.snowflake.com/en/user-guide/security-column-intro
hi sir , masking policy account admin role create chesa , aa table fetch chestunte account admin ki kuda mask avutundi and ye roles ki aithe display avvalo aa roles case statement rasi icham aa roles ki kuda mask aipotundi i mean authorised roles ki kuda mask avutundi and owner role ki kuda mask avutundi. okasari snowsight lo try cheyandi sir meeru cheppindi classic console kada , leda trail account masking policy lu work avvava?
@@mrjana520 nenu chinna mistake chesa sir case statement compulsory ga upper case lo rayali appude work avutundi .but ippudu kuda poorti ga problem solve avaledu. Account admin role nunchi policy create chesa. Authorised roles ki visibility access icha but policy owner I mean account admin ki kuda mask avutundi . Account admin i mean policy owner aa data ni chudalante ela ani ardham avvatledu sir please konchem chepthara
Brother pls dont waste others time, I have clearly explained all these roles, users, access policies in my videos, please watch them, they don't even take 1 hour.
You can get all snowflake Videos, PPTs, Queries, Interview questions and Practice files in my Udemy course for just 499 rupees.. I will be updating this content and will be uploading all new videos in this course. My Snowflake Udemy Course: www.udemy.com/course/snowflake-complete-course-for-clearing-interviews/?couponCode=0D096876AA7A5A91FBCD Use the coupon below to get a discount on my course. Coupon: 0D096876AA7A5A91FBCD
love u bro for ur great explanation about concept end to end
awesome and ultimate explanation.. the way of explanation is excellent.
can you do video on end-to-end ETL workflow of snowflake.
Masking Policies -
Protect Access to sensitive information from unauthorized users and allow access to authorized users. Its Schema Level object .At Actual storage level its stored as it is but while fetching and displaying masking policies applied over it . Can include conditions and functions to transform data when conditions are met. Can be applied on multiple columns .
Role Based
Create masking policy Policy_1 as (Cloumn_1 Datatype) returns Datatype⇒ Case When CURRENT_ROLE in (’ROLE_1’) T hen Column_1 else ‘****’ end ;
Condition Based
Create masking policy Policy_1 as (Cloumn_1 Datatype, Column_2 Datatype) returns Datatype⇒ Case When CURRENT_ROLE in (’role_1’) Then Column_1 when column_2=’ABC then Column_1 else ‘****’ end ;
Application -
ALTER TABLE TABLENAME MODIFY COLUMN COLUMN_1 SET MASKING POLICY POLICY_1 , MODIFY COLUMN COLUMN_2 SET MASKING POLICY POLICY_2 USING(COLUMN_1, COLUMN_2) ;
UNSET -To Remove ;
ALTER MASKING POLICY POLICY_NAME RENAME TO NEW_POLICY_NAME;
ALTER MASKING POLICY POLICY_NAME SET BODY ⇒ CASE STATEMENT ;
DROP MASKING POLICY POLICY_NAME;
Before Dropping we need to unset masking policy and datatype of input and output values must be same .
Can you please upload videos on how to do data profiling and data cleansing in snowflake. Thanks for sharing your knowledge
Hi, even I never did profiling and cleansing in snowflake
Nice. Could you please make a video on Row Level security policy?
We can provide row level security by using views, already there is a video on my channel
sir what is the difference between tokenization and dynamic data masking.
It is a vast topic, can't explain in 2 to 3 line, go through below link, it is well explained in Snowflake documentation.
docs.snowflake.com/en/user-guide/security-column-intro
hi sir , masking policy account admin role create chesa , aa table fetch chestunte account admin ki kuda mask avutundi and ye roles ki aithe display avvalo aa roles case statement rasi icham aa roles ki kuda mask aipotundi i mean authorised roles ki kuda mask avutundi and owner role ki kuda mask avutundi. okasari snowsight lo try cheyandi sir meeru cheppindi classic console kada , leda trail account masking policy lu work avvava?
share the code of your policy creation statement.
I have shown here right with examples, there will be no change between classic and snowsight..
@@mrjana520 nenu chinna mistake chesa sir case statement compulsory ga upper case lo rayali appude work avutundi .but ippudu kuda poorti ga problem solve avaledu. Account admin role nunchi policy create chesa. Authorised roles ki visibility access icha but policy owner I mean account admin ki kuda mask avutundi . Account admin i mean policy owner aa data ni chudalante ela ani ardham avvatledu sir please konchem chepthara
account admin role grant chesina user ku kuda access ivvu policy lo
Grant usage on accountadmin to user RAMESHRAM ; anthena sir command
Brother pls dont waste others time, I have clearly explained all these roles, users, access policies in my videos, please watch them, they don't even take 1 hour.
i want snowflake videos pleaseee
You can get all snowflake Videos, PPTs, Queries, Interview questions and Practice files in my Udemy course for just 499 rupees.. I will be updating this content and will be uploading all new videos in this course.
My Snowflake Udemy Course:
www.udemy.com/course/snowflake-complete-course-for-clearing-interviews/?couponCode=0D096876AA7A5A91FBCD
Use the coupon below to get a discount on my course.
Coupon: 0D096876AA7A5A91FBCD
Sir please provide your mailid
I can be reachable on jana.snowflake2@gmail.com