hybrid scenarios and securitydownload.microsoft.com/documents/cs-cz/enterprise...2016/04/20  ·...

17
1 Hybrid scenarios and Security Adastra Pavel Stejskal, Consultant Pavel.Stejskal@adastra grp.com linkedin.com/in/pavelstejskal 20.4.2016 Josef Pinkr, Consultant Josef.Pinkr @adastragrp.com cz.linkedin.com/in/josefpinkr

Upload: others

Post on 12-Jul-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Hybrid scenarios and Securitydownload.microsoft.com/documents/cs-cz/enterprise...2016/04/20  · Client side ciphertext •To protect sensitive data •Separatio between those who

1

Hybrid scenarios and

Security

Adastra

Pavel Stejskal, Consultant

[email protected]

linkedin.com/in/pavelstejskal

20.4.2016

Josef Pinkr, Consultant

[email protected]

cz.linkedin.com/in/josefpinkr

Page 2: Hybrid scenarios and Securitydownload.microsoft.com/documents/cs-cz/enterprise...2016/04/20  · Client side ciphertext •To protect sensitive data •Separatio between those who

2

SQL Server 2016 Enhanced backup

Page 3: Hybrid scenarios and Securitydownload.microsoft.com/documents/cs-cz/enterprise...2016/04/20  · Client side ciphertext •To protect sensitive data •Separatio between those who

Enhanced backup in SQL 2016 –key features

3

Managed backup

Granular control of the backup

schedule

Local staging support for faster

recovery and resilient to transient

network issues

Support for system databases

Supports simple recovery mode

Backup to Azure block blobs

Cost savings on storage

Significantly improved restore

performance

More granular control over Azure

Storage

Azure Storage snapshot backup

Fastest method for creating

backups and running restores

Uses SQL Server database files on

Azure Blob storage

Page 4: Hybrid scenarios and Securitydownload.microsoft.com/documents/cs-cz/enterprise...2016/04/20  · Client side ciphertext •To protect sensitive data •Separatio between those who

Backup to Azure block blobs

4

• 2x cheaper storage – page blob vs. block blob

• Backup striping and faster restore

• Maximum backup size is 12.8 TB (1 TB in SQL 2014)

• Granular access and unified credential story (SAS URIs)

• Supports all existing backup/restore features (except append)

AzureBlob Storage

CREATE CREDENTIAL [https://<account>.blob.core.windows.net/<container>]

WITH IDENTITY = 'Shared Access Signature',

SECRET = 'sig=mw3K6dpwV%2BWUPj8L4Dq3cyNxCI'

BACKUP DATABASE database TO

URL = N'https://<account>.blob.core.windows.net/<container>/<blob1>',

URL = N'https://<account>.blob.core.windows.net/<container>/<blob2>'

Page 5: Hybrid scenarios and Securitydownload.microsoft.com/documents/cs-cz/enterprise...2016/04/20  · Client side ciphertext •To protect sensitive data •Separatio between those who

Backup to Azure with file snapshots

5

SQL

Server 2016

InstanceDB

Azure

Virtual machine

Azure Blob Storage

MDF LDFSnapshot

.BAK

Snapshot

BACKUP DATABASE DB TO

URL = N'https://<account>.blob.core.windows.net/<container>/<backupfile.bak>‘

WITH FILE_SNAPSHOT

Pointer

Page 6: Hybrid scenarios and Securitydownload.microsoft.com/documents/cs-cz/enterprise...2016/04/20  · Client side ciphertext •To protect sensitive data •Separatio between those who

6

Stretch Database in SQL 2016

Page 7: Hybrid scenarios and Securitydownload.microsoft.com/documents/cs-cz/enterprise...2016/04/20  · Client side ciphertext •To protect sensitive data •Separatio between those who

Maintain large data volumes with shrinking IT?

7

• Massive tables

(hundreds of millions/billions of rows, TBs size)

• Users want/need to retain data indefinitely

• Cold data infrequently accessed but must be online

• Datacenter consolidation

• Maintenance challenges

• Business SLAs at risk

Solutions:

1. Expand server and storage

2. Move data elsewhere

Page 8: Hybrid scenarios and Securitydownload.microsoft.com/documents/cs-cz/enterprise...2016/04/20  · Client side ciphertext •To protect sensitive data •Separatio between those who

Hybrid solution with Stretch Database

8

App

Cloud solution

On-Premises solution

CREATE TABLE <table name> ...

WITH (

REMOTE_DATA_ARCHIVE = ON (

FILTER_PREDICATE =

dbo.fn_stretchpredicate(date),

MIGRATION_STATE = PAUSED

)

);

COLD

HOT

TLS 1.1/1.2

Performance (DSU)

Storage (Page Blob)

Pricing based on

Scale up/down anytime

• All queries to

On-Premises SQL

• No changes in

existing scripts/app

Page 9: Hybrid scenarios and Securitydownload.microsoft.com/documents/cs-cz/enterprise...2016/04/20  · Client side ciphertext •To protect sensitive data •Separatio between those who

9

Enhanced Availability in SQL 2016

Page 10: Hybrid scenarios and Securitydownload.microsoft.com/documents/cs-cz/enterprise...2016/04/20  · Client side ciphertext •To protect sensitive data •Separatio between those who

The need for mission-critical availability

10

Unified, simplified solution

Easy to deploy, manage, and monitor

Reuse existing investments

SAN/DAS environments

Able to use HA hardware resources

Fast, transparent failover

Detects failures reliably

Able to handle multiple failures Reliable

Integrated

Flexible

Efficient

Page 11: Hybrid scenarios and Securitydownload.microsoft.com/documents/cs-cz/enterprise...2016/04/20  · Client side ciphertext •To protect sensitive data •Separatio between those who

Enhanced AlwaysOnAvailability Groups

11

Greater scalability• Load balancing readable secondaries

• Increased number of automatic failover

targets

• Log transport performance

Improved manageability• DTC support – Distributed Transactions

• Database-level health monitoring

• Group Managed Service Account

• Domain-independent Availability Groups

AG_Listener

New York(Primary)

Asynchronous data Movement

Synchronous data Movement

Unified HA solution

AG

Hong Kong(Secondary)

AG

New Jersey(Secondary)

AG

Operational Analytics

Page 12: Hybrid scenarios and Securitydownload.microsoft.com/documents/cs-cz/enterprise...2016/04/20  · Client side ciphertext •To protect sensitive data •Separatio between those who

In Summary

12

2005 / 2008 / 2008 R2 2012 / 2014 2016

o Failover Clustering

o Database Mirroring

o Replication

o Transaction Log

Shipping

o AlwaysOn Availability

Groups

o Increased Auto Failover Targets

o Automatic failover based on DB

Health

o Cross / No Domain Support

o DTC Support

o Round robin load balancing of

replicas

o SSISDB Support

o GMSA support

o Online Operations

o Log Transport Performance

o Standard Edition Support

Page 13: Hybrid scenarios and Securitydownload.microsoft.com/documents/cs-cz/enterprise...2016/04/20  · Client side ciphertext •To protect sensitive data •Separatio between those who

13

Always Encrypted

Page 14: Hybrid scenarios and Securitydownload.microsoft.com/documents/cs-cz/enterprise...2016/04/20  · Client side ciphertext •To protect sensitive data •Separatio between those who

Always Encrypted

14

dbo.Patients

Jane Doe

Name

243-24-9812

SSN

USA

Country

Jim Gray 198-33-0987 USA

John Smith 123-82-1095 USA

dbo.Patients

Jane Doe

Name

1x7fg655se2

e

SSN

USA

Jim Gray 0x7ff654ae6d USA

John Smith 0y8fj754ea2c USA

Country

Result Set

Jim Gray

Name

Jane Doe

Name

1x7fg655se2

e

SSN

USA

Country

Jim Gray 0x7ff654ae6d USA

John Smith 0y8fj754ea2c USA

dbo.Patients

SQL Server

Query

TrustedApps

SELECT Name FROM

Patients WHERE SSN=@SSN

@SSN='198-33-0987'

Result Set

Jim Gray

Name

SELECT Name FROM

Patients WHERE SSN=@SSN

@SSN=0x7ff654ae6d

Column Encryption

Key

Enhanced

ADO.NET

Library

ColumnMasterKey

Client side

ciphertext

• To protect sensitive data

• Separatio between those who own the data and those who manage the data

Page 15: Hybrid scenarios and Securitydownload.microsoft.com/documents/cs-cz/enterprise...2016/04/20  · Client side ciphertext •To protect sensitive data •Separatio between those who

16

Row-Level Security

Page 16: Hybrid scenarios and Securitydownload.microsoft.com/documents/cs-cz/enterprise...2016/04/20  · Client side ciphertext •To protect sensitive data •Separatio between those who

Row-Level Security

17

Scenarios

• Sales– Allows Managers to view data rows for their own region only

• Finance– Restrict access to rows of financial data based on the employee's

business division, or based on the employee's role within the company

• Multi-tenant app– A multi-tenant application can create a policy to enforce a logical

separation of each tenant's data rows from every other tenant's rows.

Efficiencies are achieved by the storage of data for many tenants in a

single table. Of course, each tenant can see only its data rows.

• enables you to implement restrictions on data row access– access to only the relevant data

• access restriction logic is located in the database

Page 17: Hybrid scenarios and Securitydownload.microsoft.com/documents/cs-cz/enterprise...2016/04/20  · Client side ciphertext •To protect sensitive data •Separatio between those who

ADASTRA CZECH REPUBLICAdastra, s.r.o.

Karolinská 654/2, 186 00 Praha 8

Tel.: +420 271 733 303

[email protected]

www.adastra.cz

ADASTRA GROUP North America8500 Leslie St.

Markham, Ontario, L3T 7M8

Tel: +1 905 881 7946

[email protected]

Restrictions for public release and use:This document can comprise confidential information. As such it may not, without Adastra’s prior consent, be copied or transferred.

Important:All brands and names of products given in this documentation are or can be registered trademarks of their owners.© 2016 Adastra, all rights reserved.

18

Thank you!