securing sql azure db? how?

31
Boris Hristov, SQL Server MVP Securing SQL Azure DB?

Upload: boris-hristov

Post on 31-Jul-2015

333 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Securing SQL Azure DB? How?

Boris Hristov, SQL Server MVP

Securing SQL Azure DB?

Page 2: Securing SQL Azure DB? How?

Organizer

SQLSaturday Rheinland 201513.06.2015

Page 3: Securing SQL Azure DB? How?

Bronze Sponsor

SQLSaturday Rheinland 201513.06.2015

Page 4: Securing SQL Azure DB? How?

Silver Sponsor

SQLSaturday Rheinland 201513.06.2015

Page 5: Securing SQL Azure DB? How?

Gold Sponsor

SQLSaturday Rheinland 201513.06.2015

Page 6: Securing SQL Azure DB? How?

You rock!

SQLSaturday Rheinland 201513.06.2015

Page 7: Securing SQL Azure DB? How?

That’s not a marketing talk!DISCLAIMER:

Page 8: Securing SQL Azure DB? How?

So who is this guy Boris?

@BorisHristov

Page 9: Securing SQL Azure DB? How?

time

cool

ness Session’s Timeline

Dynamic Data Masking Row Level Security

Page 10: Securing SQL Azure DB? How?

Dynamic Data Masking

Page 11: Securing SQL Azure DB? How?

“Have you ever…”

Page 12: Securing SQL Azure DB? How?

SELECT * FROM dbo.Customers

custid FirstName LastName PhoneNumber EmailAddress CreditcardNumber

1 Boris Hristov +359889000000 [email protected] 1111-1111-1111-1111

2 Ivan Donev +359889000000 [email protected] 2222-2222-2222-2222

3 Stanislav Zhelyaskov +359889000000 [email protected]

3333-3333-3333-3333

4 Ivan Minchev +359889000000 [email protected] 4444-4444-4444-4444

Page 13: Securing SQL Azure DB? How?

custid FirstName LastName PhoneNumber EmailAddress CreditcardNumber

1 Boris Hristov +359889000000 [email protected] xxxx-xxxx-xxxx-1111

2 Ivan Donev +359889000000 [email protected] xxxx-xxxx-xxxx-2222

3 Stanislav Zhelyaskov +359889000000 [email protected] xxxx-xxxx-xxxx-3333

4 Ivan Minchev +359889000000 [email protected] xxxx-xxxx-xxxx-4444

SELECT * FROM dbo.Customers

Page 14: Securing SQL Azure DB? How?

Dynamic Data Masking

Page 15: Securing SQL Azure DB? How?

DEMODynamic Data Masking

Page 16: Securing SQL Azure DB? How?

Row Level Security

Page 17: Securing SQL Azure DB? How?

“Have you ever…”

Page 18: Securing SQL Azure DB? How?

orderid custid orderdate shipdate shipcountry

1 1 4/20/2015 20:15:49 4/20/2015 20:15:49 Bulgaria

2 1 4/20/2015 20:15:49 4/20/2015 20:15:49 Germany

3 2 4/20/2015 20:15:49 4/20/2015 20:15:49 Germany

4 2 4/20/2015 20:15:49 4/20/2015 20:15:49 Bulgaria

5 3 4/20/2015 20:15:49 4/20/2015 20:15:49 Bulgaria

SELECT * FROM dbo.Orders

Page 19: Securing SQL Azure DB? How?

orderid custid orderdate shipdate shipcountry

1 1 4/20/2015 20:15:49 4/20/2015 20:15:49 Bulgaria

4 2 4/20/2015 20:15:49 4/20/2015 20:15:49 Bulgaria

5 3 4/20/2015 20:15:49 4/20/2015 20:15:49 Bulgaria

SELECT * FROM dbo.Orders

Page 20: Securing SQL Azure DB? How?

How is that possible?

Page 21: Securing SQL Azure DB? How?

-- user defined functionCREATE FUNCTION Security.fn_securitypredicate (@SalesRep AS sysname) RETURNS TABLE WITH SCHEMABINDINGAS RETURN SELECT 1 AS fn_securitypredicate_result WHERE @SalesRep = USER_NAME() OR USER_NAME() = 'Manager';

-- security policyCREATE SECURITY POLICY SalesFilter ADD FILTER PREDICATE Security.fn_securitypredicate(SalesRep) ON dbo.Sales WITH (STATE = ON);

No GUI, folks

Page 22: Securing SQL Azure DB? How?

DEMORow Level Security

Page 23: Securing SQL Azure DB? How?

Cool, huh?

Page 24: Securing SQL Azure DB? How?

Not that fast…

Page 25: Securing SQL Azure DB? How?

time

cool

ness

Session’s Timeline

Dynamic Data Masking Row Level Security

Page 26: Securing SQL Azure DB? How?

DEMORow Level Security Issues

Page 27: Securing SQL Azure DB? How?

So is that a security feature

then?

Page 28: Securing SQL Azure DB? How?

Or is that a programmability

feature?

Page 29: Securing SQL Azure DB? How?

Summary

There’s a lot going on in SQL Azure DB

Easily mask sensitive data with Dynamic Data Masking

Limit the rows users can see with Row Level Security

Be aware of the current issues of RLS

Page 30: Securing SQL Azure DB? How?

Save the date!

13.06.2015 SQLSaturday Rheinland 2015