25
1 © Hortonworks Inc. 2011 – 2018. All Rights Reserved Hadoop Security

Hadoop Security - ondemand.cloudera.comHDP+HDP-ESS+HDP-123+type@asset... · 4 © Hortonworks Inc. 2011 – 2018. All Rights Reserved The Security Challenge ⬢ In order to protect

  • Upload
    others

  • View
    12

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Hadoop Security - ondemand.cloudera.comHDP+HDP-ESS+HDP-123+type@asset... · 4 © Hortonworks Inc. 2011 – 2018. All Rights Reserved The Security Challenge ⬢ In order to protect

1 © Hortonworks Inc. 2011 – 2018. All Rights Reserved

Hadoop Security

Page 2: Hadoop Security - ondemand.cloudera.comHDP+HDP-ESS+HDP-123+type@asset... · 4 © Hortonworks Inc. 2011 – 2018. All Rights Reserved The Security Challenge ⬢ In order to protect

2 © Hortonworks Inc. 2011 – 2018. All Rights Reserved

Lesson Objectives

⬢ Explain how HDP addresses the key security requirements– Authentication & Authorization

– Audit & Administration

– Data Protection

⬢ Visualize a typical multi-layered deployment strategy for security– Implementing Kerberos

– Enhancing Authentication & Audit with Ranger

– Securing the perimeter with Knox

– Encrypt data at-rest and in-motion

⬢ Explain the benefits and high-level architecture of Apache Ranger

After completing this lesson, students should be able to discuss:

Page 3: Hadoop Security - ondemand.cloudera.comHDP+HDP-ESS+HDP-123+type@asset... · 4 © Hortonworks Inc. 2011 – 2018. All Rights Reserved The Security Challenge ⬢ In order to protect

3 © Hortonworks Inc. 2011 – 2018. All Rights Reserved

HDP Security Solution OverviewMulti-layered ProtectionAuthorization and Auditing with Apache Ranger

Page 4: Hadoop Security - ondemand.cloudera.comHDP+HDP-ESS+HDP-123+type@asset... · 4 © Hortonworks Inc. 2011 – 2018. All Rights Reserved The Security Challenge ⬢ In order to protect

4 © Hortonworks Inc. 2011 – 2018. All Rights Reserved

The Security Challenge

⬢ In order to protect any data system you must implement the following

3 Reasons for Security Focus

• Malicious intent

• Unintentional breach

• ComplianceAdministrationCentrally management & consistent security

AuthenticationAuthenticate users and systems

AuthorizationProvision access to data

AuditMaintain a record of data access

Data ProtectionProtect data at rest and in motion

Page 5: Hadoop Security - ondemand.cloudera.comHDP+HDP-ESS+HDP-123+type@asset... · 4 © Hortonworks Inc. 2011 – 2018. All Rights Reserved The Security Challenge ⬢ In order to protect

5 © Hortonworks Inc. 2011 – 2018. All Rights Reserved

HDP Security: Comprehensive, Complete and Simple

⬢ Security in HDP is the most comprehensive and complete for Hadoop

AdministrationCentral management & consistent security

AuthenticationAuthenticate users and systems

AuthorizationProvision access to data

AuditMaintain a record of data access

Data ProtectionProtect data at rest and in motion

• HDP ensures comprehensive enforcement of security policy across the entire Hadoop stack

• HDP provides functionality across the complete set of security requirements

• HDP is the only solution to provide a single simple interface for security policy definition and maintenance

Page 6: Hadoop Security - ondemand.cloudera.comHDP+HDP-ESS+HDP-123+type@asset... · 4 © Hortonworks Inc. 2011 – 2018. All Rights Reserved The Security Challenge ⬢ In order to protect

6 © Hortonworks Inc. 2011 – 2018. All Rights Reserved

Security Today in Hadoop with HDP

• Wire encryption in Hadoop

• Native and partner encryption

• Centralized audit reporting w/ Apache Ranger

• Fine grain access control with Apache Ranger

AuthorizationWhat can I do?

AuditWhat did I do?

Data ProtectionCan data be encrypted at rest and over the wire?

• Kerberos• API security

with Apache Knox

AuthenticationWho am I/prove it?

HD

PCentralized Security Administration w/ Ranger

Page 7: Hadoop Security - ondemand.cloudera.comHDP+HDP-ESS+HDP-123+type@asset... · 4 © Hortonworks Inc. 2011 – 2018. All Rights Reserved The Security Challenge ⬢ In order to protect

7 © Hortonworks Inc. 2011 – 2018. All Rights Reserved

HDP Security Solution OverviewMulti-layered ProtectionAuthorization and Auditing with Apache Ranger

Page 8: Hadoop Security - ondemand.cloudera.comHDP+HDP-ESS+HDP-123+type@asset... · 4 © Hortonworks Inc. 2011 – 2018. All Rights Reserved The Security Challenge ⬢ In order to protect

8 © Hortonworks Inc. 2011 – 2018. All Rights Reserved

Typical Flow – SQL Access through Beeline Client

HDFSHiveServer 2

A B C

Beeline Client

Page 9: Hadoop Security - ondemand.cloudera.comHDP+HDP-ESS+HDP-123+type@asset... · 4 © Hortonworks Inc. 2011 – 2018. All Rights Reserved The Security Challenge ⬢ In order to protect

9 © Hortonworks Inc. 2011 – 2018. All Rights Reserved

LAuthenticate through Kerberos

HDFSHiveServer 2

A B C

KDC

Login into Hive using AD password

Hive gets Namenode (NN) service ticket

Hive creates map reduce using NN ST

Client gets service ticket for Hive

Beeline Client

Active Directory

Page 10: Hadoop Security - ondemand.cloudera.comHDP+HDP-ESS+HDP-123+type@asset... · 4 © Hortonworks Inc. 2011 – 2018. All Rights Reserved The Security Challenge ⬢ In order to protect

10 © Hortonworks Inc. 2011 – 2018. All Rights Reserved

Add Authorization through Kerberos

HDFSHiveServer 2

A B C

KDC

Hive gets Namenode (NN) service ticket

Column level access control, auditing

Ranger

Beeline Client

File level access control

Active Directory

Import users/groups from LDAP

Login into Hive using AD password

Page 11: Hadoop Security - ondemand.cloudera.comHDP+HDP-ESS+HDP-123+type@asset... · 4 © Hortonworks Inc. 2011 – 2018. All Rights Reserved The Security Challenge ⬢ In order to protect

11 © Hortonworks Inc. 2011 – 2018. All Rights Reserved

Add Firewall Routed through Knox Gateway

HDFSHiveServer 2

A B C

KDC

Use Hive ST, submit query

Hive gets Namenode (NN) service ticket

Hive creates map reduce using NN ST

Ranger

Knox gets service ticket for Hive

Knox runs as proxy user using Hive ST

Original request w/user id/password

Client gets query result

Beeline Client

Apache Knox

Active Directory

Page 12: Hadoop Security - ondemand.cloudera.comHDP+HDP-ESS+HDP-123+type@asset... · 4 © Hortonworks Inc. 2011 – 2018. All Rights Reserved The Security Challenge ⬢ In order to protect

12 © Hortonworks Inc. 2011 – 2018. All Rights Reserved

Add Wire and File Encryption

HDFSHiveServer 2

A B C

KDC

Use Hive ST, submit query

Hive gets Namenode (NN) service ticket

Hive creates map reduce using NN ST

Ranger

Knox gets service ticket for Hive

Knox runs as proxy user using Hive ST

Original request w/user id/password

Client gets query result

SSL

Beeline Client

SSL SASL

SSL SSL

Apache Knox

Active Directory

Page 13: Hadoop Security - ondemand.cloudera.comHDP+HDP-ESS+HDP-123+type@asset... · 4 © Hortonworks Inc. 2011 – 2018. All Rights Reserved The Security Challenge ⬢ In order to protect

13 © Hortonworks Inc. 2011 – 2018. All Rights Reserved

HDP Security Solution OverviewMulti-layered ProtectionAuthorization and Auditing with Apache Ranger

Page 14: Hadoop Security - ondemand.cloudera.comHDP+HDP-ESS+HDP-123+type@asset... · 4 © Hortonworks Inc. 2011 – 2018. All Rights Reserved The Security Challenge ⬢ In order to protect

14 © Hortonworks Inc. 2011 – 2018. All Rights Reserved

Authorization and Audit

Control access into

system

Flexibility in defining

policies

⬢ AuthorizationFine grain access control

– HDFS – Folder, File

– Hive – Database, Table, Column

– HBase – Table, Column Family, Column

– Storm, Knox and more

⬢ AuditExtensive user access auditing in HDFS, Hive and HBase

– IP Address

– Resource type/ resource

– Timestamp

– Access granted or denied

Page 15: Hadoop Security - ondemand.cloudera.comHDP+HDP-ESS+HDP-123+type@asset... · 4 © Hortonworks Inc. 2011 – 2018. All Rights Reserved The Security Challenge ⬢ In order to protect

15 © Hortonworks Inc. 2011 – 2018. All Rights Reserved

Central Security Administration

⬢ Apache Ranger• Delivers a ‘single pane of glass’ for the

security administrator

• Centralises administration of security policy

• Ensures consistent coverage across the entire Hadoop stack

Page 16: Hadoop Security - ondemand.cloudera.comHDP+HDP-ESS+HDP-123+type@asset... · 4 © Hortonworks Inc. 2011 – 2018. All Rights Reserved The Security Challenge ⬢ In order to protect

16 © Hortonworks Inc. 2011 – 2018. All Rights Reserved

Set Up Authorization Policies

file level access control, flexible definition

Control permissions

Page 17: Hadoop Security - ondemand.cloudera.comHDP+HDP-ESS+HDP-123+type@asset... · 4 © Hortonworks Inc. 2011 – 2018. All Rights Reserved The Security Challenge ⬢ In order to protect

17 © Hortonworks Inc. 2011 – 2018. All Rights Reserved

Monitor through Auditing

Page 18: Hadoop Security - ondemand.cloudera.comHDP+HDP-ESS+HDP-123+type@asset... · 4 © Hortonworks Inc. 2011 – 2018. All Rights Reserved The Security Challenge ⬢ In order to protect

18 © Hortonworks Inc. 2011 – 2018. All Rights Reserved

Authorization and Auditing with Ranger

HDFS

Ranger Administration Portal

HBase

Hive Server2

Ranger Policy ServerRanger Audit Server

Ranger Plugin

Had

oo

p C

om

po

nen

tsEn

terp

rise

U

sers

Ranger Plugin

Ranger Plugin

Legacy Tools &

Data Governance

Integration APIHDFS

Knox

Storm

Ranger Plugin

Ranger Plugin

RDBMS

TBD

Ente

rpri

se S

ervi

ces:

Sec

uri

ty

Ranger Plugin*

Page 19: Hadoop Security - ondemand.cloudera.comHDP+HDP-ESS+HDP-123+type@asset... · 4 © Hortonworks Inc. 2011 – 2018. All Rights Reserved The Security Challenge ⬢ In order to protect

19 © Hortonworks Inc. 2011 – 2018. All Rights Reserved

Knowledge Check

Page 20: Hadoop Security - ondemand.cloudera.comHDP+HDP-ESS+HDP-123+type@asset... · 4 © Hortonworks Inc. 2011 – 2018. All Rights Reserved The Security Challenge ⬢ In order to protect

20 © Hortonworks Inc. 2011 – 2018. All Rights Reserved

Questions

1. What are the primary requirements for security?

Page 21: Hadoop Security - ondemand.cloudera.comHDP+HDP-ESS+HDP-123+type@asset... · 4 © Hortonworks Inc. 2011 – 2018. All Rights Reserved The Security Challenge ⬢ In order to protect

21 © Hortonworks Inc. 2011 – 2018. All Rights Reserved

Questions

1. What are the primary requirements for security?

2. What technology guarantees strong authentication in Hadoop?

Page 22: Hadoop Security - ondemand.cloudera.comHDP+HDP-ESS+HDP-123+type@asset... · 4 © Hortonworks Inc. 2011 – 2018. All Rights Reserved The Security Challenge ⬢ In order to protect

22 © Hortonworks Inc. 2011 – 2018. All Rights Reserved

Questions

1. What are the primary requirements for security?

2. What technology guarantees strong authentication in Hadoop?

3. Which requirements does Ranger address?

Page 23: Hadoop Security - ondemand.cloudera.comHDP+HDP-ESS+HDP-123+type@asset... · 4 © Hortonworks Inc. 2011 – 2018. All Rights Reserved The Security Challenge ⬢ In order to protect

23 © Hortonworks Inc. 2011 – 2018. All Rights Reserved

Questions

1. What are the primary requirements for security?

2. What technology guarantees strong authentication in Hadoop?

3. Which requirements does Ranger address?

4. Does Hadoop tackle data encryption at-rest or in-motion?

Page 24: Hadoop Security - ondemand.cloudera.comHDP+HDP-ESS+HDP-123+type@asset... · 4 © Hortonworks Inc. 2011 – 2018. All Rights Reserved The Security Challenge ⬢ In order to protect

24 © Hortonworks Inc. 2011 – 2018. All Rights Reserved

Summary

Page 25: Hadoop Security - ondemand.cloudera.comHDP+HDP-ESS+HDP-123+type@asset... · 4 © Hortonworks Inc. 2011 – 2018. All Rights Reserved The Security Challenge ⬢ In order to protect

25 © Hortonworks Inc. 2011 – 2018. All Rights Reserved

Summary

⬢ HDP ensures comprehensive enforcement of security requirements across the entire Hadoop stack.

⬢ Kerberos is the key to strong authentication.

⬢ Ranger provides a single simple interface for security policy definition and maintenance.

⬢ Encryption options available for data at-rest and in-motion.