in search of segmentation

36
In Search of Segmentation Adrian Cockcroft @adrianco Technology Fellow - Battery Ventures February 2016

Upload: adrian-cockcroft

Post on 09-Jan-2017

187.324 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: In Search of Segmentation

In Search of SegmentationAdrian Cockcroft @adrianco

Technology Fellow - Battery Ventures February 2016

Page 2: In Search of Segmentation

What does @adrianco do?

@adrianco

Technology Due Diligence on Deals

Presentations at Conferences

Presentations at Companies

Technical Advice for Portfolio

Companies

Program Committee for Conferences

Networking with Interesting PeopleTinkering with

Technologies

Maintain Relationship with Cloud Vendors

http://www.slideshare.net/adriancockcroft

Page 3: In Search of Segmentation

Segmentation

Page 4: In Search of Segmentation

Industry Trends

Page 5: In Search of Segmentation

Airgaps closing Industrial IoT

Security blanket perimeter firewalls Datacenter to cloud transitions

New systems of engagement

http://peanuts.wikia.com/wiki/Linus'_security_blanket

Page 6: In Search of Segmentation

Policy

Page 7: In Search of Segmentation

A can talk to B B can talk to C

A must not talk to CA B C

Page 8: In Search of Segmentation

Y and Z failure modes must be independent so X can always succeed

Y X Z

Page 9: In Search of Segmentation

Availability requirements drive a need for distributed

segmentation

Page 10: In Search of Segmentation

Choices?

Page 11: In Search of Segmentation

Too many choices!

Page 12: In Search of Segmentation

Over-reliance on one mechanism leads to abuse…

Page 13: In Search of Segmentation

Lack of coordination across many mechanisms leads to

fragility

Page 14: In Search of Segmentation

Example segmentation mechanisms

Page 15: In Search of Segmentation

Disclaimer: I’m not a developer, I don’t have hands-on experience with any of these mechanisms, I’m looking for input where I’m wrong or

missed something. Also, apologies if I didn’t namecheck your favorite project/product.

Page 16: In Search of Segmentation

Datacenters/AWS Accounts IAM/AD/LDAP Roles VPC/VLAN Networks

Security Groups/Hypervisor IPtables/Calico Policy

Docker Links/Weave Overlay

Ops

Dev

Page 17: In Search of Segmentation

B

Accounts and Roles Who can set policy for what?

Needs distributed policy managementA C

Page 18: In Search of Segmentation

Network Segmentation Who controls the network?

A B C

Page 19: In Search of Segmentation

Network Segmentation

Datacenter policies are based on separation of duties. Tickets, Network admins and VLANs

Page 20: In Search of Segmentation

Network Segmentation

AWS VPC networking uses developer-driven automation,

loses separation of duties…

Page 21: In Search of Segmentation

VPC Abuse Antipattern

Lots of small VPC networks for microservices, end up in IP address space capacity management hell…

Page 22: In Search of Segmentation

Hypervisor and Security Group Segmentation

Distributed firewall rulesA B CA B

Page 23: In Search of Segmentation

Security Group Abuse Antipattern

Too many microservices need to be in the same group, overloads configuration

limitations

Page 24: In Search of Segmentation

Kernel eBPF & Calico IPtables Segmentation

Distributed firewall rulesA B CA B

Page 25: In Search of Segmentation

IPtables Segmentation

Can use IP Sets to scale Managed in the container host OS

Separates routing reachability from access policy

Page 26: In Search of Segmentation

Docker & Weave Segmentation

Docker daemon manages connectionsB CA B C

Page 27: In Search of Segmentation

proxy: build: ./proxy ports: - "8080:8080" links: - app app: build: ./app links: - db

db: image: postgres

Docker Compose V1

proxy app db8080

Page 28: In Search of Segmentation

version: '2'

services: proxy: build: ./proxy ports: - "8080:8080" networks: - front app: build: ./app networks: - front - back db: image: postgres networks: - back

networks: front: back:

Docker Compose V2

proxy app db8080front backfront

Page 29: In Search of Segmentation

Docker Segmentation

Overlay network created and managed by Docker or Weave.

DNS based lookups.

Page 30: In Search of Segmentation

Segmentation Scalability

Real world microservices architectures have hundreds to

thousands of distinct microservices

Page 31: In Search of Segmentation

Segmentation Scalability

There’s often a few very popular microservices that everyone else

wants to talk to

Page 32: In Search of Segmentation

Datacenters/AWS Accounts IAM/AD/LDAP Roles VPC/VLAN Networks

Security Groups/Hypervisor IPtables/Calico Policy

Docker Links/Weave Overlay

How to coordinate across all

these layers?

How to scale to 1000+ segments?

Page 33: In Search of Segmentation

Hierarchical Segmentation Enforced by IAM roles at every level

B C A B C

E F D E F

Security Group X Security Group YVPC Z - Manage a reasonable number of large network spaces

D X

An AWS oriented example…

AWS Account - Manage across multiple accounts

Page 34: In Search of Segmentation

Policy Specification Options

Docker Compose V2 Kubernetes/Mesos policy

Calico/Cisco Contiv AWS IAM/AD Policies

How to coordinate any/all of

these?

Page 35: In Search of Segmentation

Comments and Questions?Adrian Cockcroft @adrianco

http://slideshare.com/adriancockcroftTechnology Fellow - Battery Ventures

See www.battery.com for a list of portfolio investments

Page 36: In Search of Segmentation

Security

Visit http://www.battery.com/our-companies/ for a full list of all portfolio companies in which all Battery Funds have invested.

Palo Alto Networks

Enterprise IT

Operations & Management

Big DataCompute

Networking

Storage