Data Redaction / Display Masking / 표시제한조치


Advanced Security Option에 추가

동적 Display Masking 기능


☞ 사용자, IP, application context 등을 기준으로 중요 데이타에 대한 Redaction을 적용하여 인가되지 않은 사용자가 해당데이타를 조회할 때 동적으로 변조된 데이타를 보여 줍니다.

☞ Application의 수정이나 구성 변경이 필요 없습니다. 

☞ Oracle Database에서 사용된 데이타 타입은 모두 지원 됩니다.

☞ 최소 부하



Oracle ASO 데이타 마스킹 구현방법 



1. Redaction 정책을 통한 실행과 중지


Customers  테이블의  중요  정보  (security_id,  credit_card_id,  birth_year)를 redaction 처리. 오직 customers 테이블의 소유자 (BMT)만 오리지널 데이터 확인DBMS_REDACTION 패키지를 이용하여 

수행 Redaction 생성 및 실행을 위한 DBMS_REDACT(ADD, ALTER, DISABLE, DROP, ENABLE, UPDATE 포함) 패키지를

 bmt유저에게 권한 할당을 해줍니다.




conn / as sysdba


alter user scott identified by tiger account unlock;

create user bmt identified by bmt;


grant connect, resource to bmt;

grant select on redaction_policies to bmt;

grant select on redaction_columns to bmt;

grant execute on dbms_redact to bmt;


conn bmt/bmt


create table customers (

   customer_id       number(10),

   customer_name     varchar2(20),

   birth_year        varchar2(2),

   birth_month       varchar2(2),

   birth_day         varchar2(2),

   security_id       varchar2(14),

   card_company_id   varchar2(4),

   credit_card_id    varchar2(20),

   phone1            varchar2(15),

   phone2            varchar2(15),

   zip               varchar2(10),

   address01         varchar2(256),

   address02         varchar2(256)

);


테스트 데이터 생성


conn /as sysdba


grant select on bmt.customers to scott;




2. Redaction Policy 생성


Customers 테이블의 중요 정보 (security_id, credit_card_id, birth_year)를 위한 redaction policy를 생성합니다.



conn bmt/bmt


–============================================================================

–Redaction 적용 1 => security_id                 *BMT

–=========================================================================================



BEGIN

 DBMS_REDACT.ADD_POLICY(

   object_schema       => ‘bmt’, 

   object_name         => ‘customers’, 

   column_name         => ‘security_id’,

   policy_name         => ‘redact_cust_ssns2’, 

   

   function_type       => DBMS_REDACT.PARTIAL,

   function_parameters => ‘VVVVVVFVVVVVVV,VVVVVV-VVVVVVV,*,7,13’,

   expression          => ‘SYS_CONTEXT(”USERENV”,”SESSION_USER”) NOT LIKE ”BMT”’,

   policy_description  => ‘Partially redacts Security numbers’,

   column_description  => ‘ssn contains character Social Security numbers’);

END;

/


–=========================================================================================

–Redaction 적용 2 => CREDIT_CARD_ID              *BMT

–=========================================================================================



BEGIN

 DBMS_REDACT.ALTER_POLICY(

   object_schema       => ‘bmt’, 

   object_name         => ‘customers’, 

   policy_name         => ‘redact_cust_ssns2’, 

   action              => dbms_redact.ADD_COLUMN,

   column_name         => ‘CREDIT_CARD_ID’,

   function_type       => DBMS_REDACT.PARTIAL,

   function_parameters => ‘VVVVFVVVVFVVVVFVVVV,VVVV-VVVV-VVVV-VVVV,*,11,16’,

   expression          => ‘1=1’,

   policy_description  => ‘Partially redacts Card numbers’,

   column_description  => ‘card contains character Card numbers’);

END;

/



–=========================================================================================

–Redaction 적용 3 => BIRTH_YEAR               *BMT

–=========================================================================================



BEGIN

 DBMS_REDACT.ALTER_POLICY(

   object_schema       => ‘bmt’, 

   object_name         => ‘customers’, 

   policy_name         => ‘redact_cust_ssns2’, 

   action              => dbms_redact.ADD_COLUMN,

   column_name         => ‘BIRTH_YEAR’,

   function_type       => DBMS_REDACT.RANDOM,

   expression          => ‘SYS_CONTEXT(”USERENV”,”SESSION_USER”) NOT LIKE ”BMT”’


);


END;

/



3. Redaction 적용 table 조회


실제로 테이블에 데이터가 redaction되어 조회되는지를 확인합니다.



BMT계정으로 조회


conn bmt/bmt


set line 200

col customer_id for 9999

col customer_name for a15

col credit_card_id for a20

col security_id for a15

col birth_year for 99

col birth_month for 99

col birth_day for 99


select customer_id, customer_name, birth_year, birth_month, birth_day, credit_card_id, security_id from customers where customer_id<10 ;




SCOTT 계정으로 조회


conn scott/tiger


set line 200

col customer_id for 9999

col customer_name for a15

col credit_card_id for a20

col security_id for a15

col birth_year for 99

col birth_month for 99

col birth_day for 99


select customer_id, customer_name, birth_year, birth_month, birth_day, credit_card_id, security_id from bmt.customers where customer_id < 10 ;





4. Redaction Policy Disable/Enable/Drop


다음과 같이, 생성된 Redaction policy를 Disable/Enable/Drop 할 수 있습니다.

conn bmt/bmt

BEGIN

  DBMS_REDACT.DISABLE_POLICY (

    object_schema  => ‘bmt’,

    object_name    => ‘customers’,

    policy_name    => ‘redact_cust_ssns2’);

END;

/



conn bmt/bmt


BEGIN

  DBMS_REDACT.ENABLE_POLICY (

    object_schema  => ‘bmt’,

    object_name    => ‘customers’,

    policy_name    => ‘redact_cust_ssns2’);

END;

/



conn bmt/bmt


BEGIN

DBMS_REDACT.drop_policy(object_schema => ‘BMT’

,object_name => ‘CUSTOMERS’

,policy_name => ‘redact_cust_ssns2’

);

END;

/







By haisins

오라클 DBA 박용석 입니다. haisins@gmail.com 으로 문의 주세요.

95 thoughts on “ORACLE ASO 데이타 마스킹 방법”
  1. If job safety is high on your list of priorities, this is another
    issue thats not offered by freelancing. Many individuals should
    be assured of regular income, at a fee that theyll rely on, with a purpose
    to hold their bills and on a regular basis living expenses up to date.

    Freelancing wont provide the job and income security
    that youd have from being on the employees of
    a legislation firm.

  2. You can play it anytime you want.? Daddy answered. ?As a result of speaking about how nice God is makes him glad and its worship.
    Play it earlier than you go to sleep tonight and while you wake up within the morning and God will
    probably be near you all day long.

  3. Just want to say your article is as amazing.
    The clearness in your post is just nice and i
    could assume you’re an expert on this subject. Fine with your permission allow
    me to grab your RSS feed to keep updated with forthcoming post.

    Thanks a million and please keep up the gratifying work.

  4. With havin so much content do you ever run into any issues of plagorism or copyright violation? My blog has a lot of exclusive content I’ve
    either authored myself or outsourced but it appears a lot of
    it is popping it up all over the internet without my authorization. Do you know any solutions to
    help protect against content from being ripped off?

    I’d definitely appreciate it.

  5. It is appropriate time to make some plans for the future and it is time to be happy.
    I’ve read this post and if I could I wish to suggest
    you few interesting things or suggestions. Perhaps you can write next articles referring to this article.
    I wish to read even more things about it!

  6. Heya i’m for the first time here. I found this board
    and I find It truly useful & it helped me out a lot.
    I hope to give something back and help others like you helped me.

  7. certainly like your web site but you have to take a look at
    the spelling on quite a few of your posts. A number of them are rife with spelling
    issues and I in finding it very bothersome to inform the
    reality then again I’ll surely come back again.

  8. I visited multiple websites however the audio quality for
    audio songs current at this web page is genuinely superb.

  9. What’s Happening i am new to this, I stumbled upon this I have discovered It absolutely helpful and it has
    aided me out loads. I’m hoping to contribute & assist other users like its helped me.

    Great job.

  10. Hi my friend! I want to say that this post is awesome,
    great written and include approximately all significant infos.
    I would like to peer more posts like this .

  11. What’s up everyone, it’s my first go to see at this web page,
    and article is in fact fruitful in support of me, keep up posting these articles.

  12. Right away I am going to do my breakfast, later
    than having my breakfast coming over again to read
    further news.

  13. At this time it appears like Movable Type is the preferred blogging platform available right now.
    (from what I’ve read) Is that what you are using
    on your blog?

  14. An outstanding share! I’ve just forwarded this onto a colleague who has
    been conducting a little homework on this. And he in fact ordered me dinner because I discovered it
    for him… lol. So allow me to reword this….
    Thank YOU for the meal!! But yeah, thanks for spending time to discuss this matter here on your blog.

  15. whoah this weblog is wonderful i love studying your posts.
    Stay up the great work! You realize, many persons are searching around for this info, you can aid them greatly.

  16. continuously i used to read smaller articles which also clear their motive, and that is also
    happening with this post which I am reading at this place.

  17. If you are going to another city and locate that there’s a
    good show in this city, you cannot look at different companies to the box office,
    stand in a line and buy the tickets. There we were holding,
    anticipating their forthcoming experience and joyously reliving
    the final one — Peter, Susan, Edmund, and Lucy, within the guises of actors William Moseley (now a dashing 20-year-old), Anna Popplewell
    (a newly minted Oxford freshman), Skandar Keynes (with
    vocal octaves more deeply at 15), and Georgie Henley (approaching teenhood, a fantastic six
    inches taller than we last saw her). The Open Video Project:
    This is site with a huge variety of digital video
    for sharing.

  18. Woah! I’m really digging the template/theme of this website.
    It’s simple, yet effective. A lot of times it’s challenging to get that
    “perfect balance” between usability and appearance.
    I must say that you’ve done a superb job with this.
    Additionally, the blog loads very quick for me on Chrome.
    Excellent Blog!

  19. Pretty great post. I just stumbled upon your weblog and wished to say
    that I’ve really loved surfing around your weblog posts.
    After all I will be subscribing for your feed and I hope you write again soon!

  20. Hello! This is my first visit to your blog! We are a collection of volunteers
    and starting a new initiative in a community in the same niche.
    Your blog provided us valuable information to work on. You have done
    a outstanding job!

  21. You can certainly see your expertise in the article you write.
    The sector hopes for more passionate writers like you who are not afraid
    to say how they believe. At all times go after your
    heart.

  22. I do not even know how I finished up right here, but I assumed this put up was great.

    I don’t recognise who you are but definitely you are going
    to a well-known blogger if you happen to aren’t already.
    Cheers!

  23. Hey I know this is off topic but I was wondering
    if you knew of any widgets I could add to my blog that automatically tweet
    my newest twitter updates. I’ve been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this.
    Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.

  24. Hey! I understand this is kind of off-topic
    however I had to ask. Does managing a well-established website such as yours take a large
    amount of work? I am completely new to running a
    blog but I do write in my journal on a daily basis. I’d like to start a blog so
    I will be able to share my own experience and feelings online.
    Please let me know if you have any suggestions
    or tips for brand new aspiring blog owners. Appreciate it!

  25. Ignatius Piazza, the Millionaire Patriot, wants you to see probably the most awe inspiring reality show series ever,
    called Front Sight Challenge. While online machines offer the players the opportunity decide how much
    they decide to wager, these online video poker machine
    provide that same feeling of strategizing and negotiations with oneself so often yearned for by players who miss the land-based casinos.

    The Open Video Project: This is site which has a huge variety of digital
    video for sharing.

  26. Free PC alternatives to Recycle and Phatmatik Pro:
    Loopdrive3 VSTABS. While online machines provide you with the
    players the opportunity to decide how much
    they choose to wager, these online video poker machine
    provide that same a sense strategizing and negotiations with oneself usually
    yearned for by players who miss the land-based casinos.
    These art reproductions of paintings printed on canvas sheets or paper and then framed and
    hung on walls.

  27. You can even replace your preferred MP3 music with one
    of these in order that if you are in regards to the gym, you’ll be able
    to still understand interesting points in the book
    or listen on the docs from perform that you simply need to examine.
    Contestants worldwide will record songs on their own, or team
    up into virtual bands of a couple of musicians, and compete for $5600 in prizes.
    Here you can shop by theme or browse an entire variety of themes if
    you’re sill unsure on the to base the party.

  28. Having read this I believed it was really informative. I appreciate you finding the time and effort to put this informative article together.
    I once again find myself personally spending a significant amount of time both reading and leaving comments.
    But so what, it was still worth it!

  29. Just wish to say your article is as surprising.
    The clarity for your submit is simply great and i
    can think you are an expert on this subject. Well together with your permission let me
    to snatch your RSS feed to stay up to date with forthcoming post.

    Thanks a million and please carry on the rewarding work.

  30. The process begins from the uncomplicated activity of
    the account option. There these were, anticipating their forthcoming experience and joyously reliving
    the very last one — Peter, Susan, Edmund, and Lucy, inside
    guises of actors William Moseley (now a dashing
    20-year-old), Anna Popplewell (a newly minted Oxford freshman), Skandar Keynes (with vocal
    octaves much deeper when he was 15), and Georgie Henley (approaching
    teenhood, a fantastic six inches taller than we last
    saw her). The Open Video Project: This is site having a huge collection of digital video for sharing.

  31. First off I want to say fantastic blog! I had a quick question that I’d like to ask if
    you don’t mind. I was interested to find out how you center
    yourself and clear your thoughts before writing. I’ve had trouble clearing my thoughts in getting my ideas out.
    I do take pleasure in writing however it just seems like the first 10
    to 15 minutes tend to be lost just trying to figure out how
    to begin. Any ideas or tips? Many thanks!

  32. Spot on with this write-up, I truly think this amazing site needs a great deal more attention.
    I’ll probably be returning to see more, thanks for the advice!

  33. Magnificent site. Lots of helpful info here.
    I’m sending it to a few friends ans also
    sharing in delicious. And naturally, thanks to your sweat!

  34. Howdy! This is my 1st comment here so I just wanted to give a quick shout out and say I really enjoy reading your articles.

    Can you recommend any other blogs/websites/forums that
    cover the same subjects? Thank you so much!

  35. The camera will make the brightest of scenes appear to be it had been taken during an eclipse.
    These guides allow you to practice when you are prepared and
    have the time for it to do so. Here you can shop by theme or browse an entirely selection of themes if you’re sill unsure on the to base the party.

  36. I’m no longer positive where you are getting your information, however great topic.
    I needs to spend some time studying much more or
    figuring out more. Thanks for great info I used to be on the lookout for this info for my mission.

  37. Wonderful beat ! I wish to apprentice while you amend your site, how
    can i subscribe for a blog web site? The account helped me a acceptable deal.
    I had been tiny bit acquainted of this your broadcast provided bright clear concept

  38. I always emailed this blog post page to all my contacts,
    since if like to read it afterward my friends will too.

  39. Asking questions are genuinely fastidious thing if you are not understanding anything fully, however this piece of writing presents pleasant
    understanding yet.

  40. Normally I do not learn pst on blogs, however I wish to say that this write-up very compelled me to take a look
    at and do so! Your writing taste hass been amazed me. Thanks, very
    nice article.

  41. What’s up friends, fastidious argicle and fastidious arguments commented at this place,
    I am genuinely enjoying by these.

  42. What i do not realize is actually how you’re no
    longer really much more neatly-liked than you might be right
    now. You’re very intelligent. You already knoow therefore
    significantly when it comes to this subject,
    made mee for myy part consider it from a lot of varied angles.
    Its lik men and women don’t seem to be involved
    unless it’s something to do with Lady gaga!
    Your personal stuffs excellent. At all times care for it up!

  43. I really like your blog.. very nice colors & theme. Did you create this website yourself or
    did you hire someone to do it for you? Plz respond as I’m looking to construct my own blog and
    would like to know where u got this from. thanks a lot

  44. A fascinating discussion is definitely worth comment.
    There’s no doubt that that you should write more
    on this topic, it might not be a taboo subject but usually folks don’t speak about these issues.
    To the next! Best wishes!!

  45. Awesome! Its truly remarkable piece of writing, I have got much clear idea concerning
    from this paragraph.

  46. You really make it seem so easy with your presentation but I find this topic to be actually something which I
    think I would never understand. It seems too complicated and extremely
    broad for me. I’m looking forward for your next post, I’ll try to get the hang of it!

  47. Good day! I know this is somewhat off topic but I was wondering which blog platform aare you using for this website?
    I’m getting tired of WordPress because I’ve haad problems with hackers
    and I’m looking at options for another platform. I would be great if you could point me in the direction of
    a god platform.

  48. I like what you guys tend to be upp too. This ttype of clever work and exposure!
    Keep up the awesome works guys I’ve incorporated you guys to my
    personal blogroll.

  49. Howdy just wanted to give you a quick heads up.
    The words in your article seem to be running off the screen in Opera.
    I’m not sure if this is a formatting issue or something to do with
    browser compatibhility but I thought I’d post to let yoou know.
    The design look great though! Hope yoou get the proble fixed soon. Kudos

  50. I always emjailed this weeb site post page to all my contacts,
    for thee reason that if like to read it afterward my friends will too.

  51. Wonderful article!We are linking to this great content on our site.

    Keep up the great writing.

  52. Very shortly this web page will be famous amid all blogging
    and site-building users, due to it’s pleasant articles or reviews

  53. I think the admin of this web site is genuinely working hard in favor of his web page, for the reason that here every
    material is quality based data.

  54. Just want to say your article is as surprising. The clearness in your post is simply excellent and i can assume
    you’re an expert on this subject. Well with your permission let me to grab your RSS feed to
    keep updated with forthcoming post. Thanks a million and please continue the enjoyable work.

  55. Helplo to every single one, it’s in fact a goo
    for me to payy a visit this web site, it consists of useful Information.

  56. Good post. I learn something new and challenging on sites I stumbleupon everyday.
    It will always be helpful to read content from other writers and practice a little something from other websites.

  57. Hey this is kind of of off topic but I was wanting to
    know if blogs use WYSIWYG editors or if you have to manually code with HTML.
    I’m starting a blog soon but have no coding knowledge so I wanted to get advice from someone with experience.
    Any help would be greatly appreciated!

  58. Heya i am for the primary time here. I came across this
    board and I in finding It really helpful
    & it helped me out much. I’m hoping to offer something again and
    help others such as you helped me.

  59. Hello my loved one! I wish to say that this post is amazing, great written and come with almost all vital infos.

    I woud like to see extra posts like this .

  60. Today, while I was at work, my cousin stole my iphone and
    tested to see if it can survive a forty foot drop, just so
    she can be a youtube sensation. My apple ipad is now destroyed and she has 83
    views. I know this is completely off topic but I had to share it with someone!

  61. Somebody necessarily help to make severely posts I’d state.
    That is the first time I frequented your web page and
    up to now? I amazed with the analysis you made to create this particular post
    extraordinary. Wonderful task!

  62. What i don’t understood is if truth be told how you are no longer really much more
    well-favored than you might be right now. You are so intelligent.
    You understand thus significantly on the subject of this matter, made me in my view believe it from numerous numerous angles.
    Its like women and men don’t seem to be fascinated
    except it’s one thing to do with Lady gaga! Your own stuffs outstanding.
    All the time maintain it up!

  63. We’re a group of volunteers and starting a new scheme in our community.
    Your site offered us with valuable info to work on. You have performed a formidable task and our whole community can be grateful to you.

  64. Hi I am so happyy I found your blog page, I really found you by accident,while I was browsing on Askjeeve for something else, Anyhow I
    am here now and would just like to say thanks a lot for a incredible post
    annd a all round thrilling blog (I also love thhe theme/design), I don’t have time to
    browse it all at the momet but I have saved it and also
    added your RSS feeds, so when I have time I will be back to read more, Please do keep up the
    great work.

  65. Hurrah! After all I got a webpage frokm where I be able
    to genuinely otain helpful data regarding my study and knowledge.

  66. Excellent website. Lots of helpful info here.I am sending it
    to a few pals ans also sharing in delicious. And naturally, thank
    you on your effort!

  67. I always used to read post iin news papers but now as I am a user of
    internet therefore from now I am using net for articles, thanks to web.

  68. We are a group of volunteers andd stzrting a neww scheme in our community.
    Yoour website provided us with valuable info too work on.
    You’ve donee a formidabl job and our whole community will
    be grateful to you.

  69. It’s awesome to pay a visit this web site and reading the views of all colleagues concerning this
    paragraph, while I am also eager off getting know-how.

  70. Hmm is aanyone else experiencing problems with the
    pictures oon this blog loading? I’m trying to fiyure out if its a problem oon my end or
    if it’s the blog. Any responses would be greatly appreciated.

  71. My brother suggested I might like this web site. He was totally right.

    Thiis post actually maee my day. You can not imagine smply how much
    time I had spent for this info! Thanks!

Comments are closed.