how not to have a ‘bad time’ securing your micro-services · how not to have a ‘bad time’...

16
How not to have a ‘bad time’ securing your micro-services Or, how to avoid firewall hell @liljenstolpe | [email protected]

Upload: others

Post on 21-May-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: How not to have a ‘bad time’ securing your micro-services · How not to have a ‘bad time’ securing your micro-services Or, how to avoid firewall hell @liljenstolpe | cdl@projectcalico.org

How not to have a ‘bad time’

securing your micro-services

Or, how to avoid firewall hell@liljenstolpe | [email protected]

Page 2: How not to have a ‘bad time’ securing your micro-services · How not to have a ‘bad time’ securing your micro-services Or, how to avoid firewall hell @liljenstolpe | cdl@projectcalico.org
Page 3: How not to have a ‘bad time’ securing your micro-services · How not to have a ‘bad time’ securing your micro-services Or, how to avoid firewall hell @liljenstolpe | cdl@projectcalico.org

Remember  3-­‐tier  architectures?

Page 4: How not to have a ‘bad time’ securing your micro-services · How not to have a ‘bad time’ securing your micro-services Or, how to avoid firewall hell @liljenstolpe | cdl@projectcalico.org

Getting  Medieval

Page 5: How not to have a ‘bad time’ securing your micro-services · How not to have a ‘bad time’ securing your micro-services Or, how to avoid firewall hell @liljenstolpe | cdl@projectcalico.org

Fast  forward  to  the  present

Page 6: How not to have a ‘bad time’ securing your micro-services · How not to have a ‘bad time’ securing your micro-services Or, how to avoid firewall hell @liljenstolpe | cdl@projectcalico.org

Increased  complexity

Page 7: How not to have a ‘bad time’ securing your micro-services · How not to have a ‘bad time’ securing your micro-services Or, how to avoid firewall hell @liljenstolpe | cdl@projectcalico.org

Resource  Fungibility

Page 8: How not to have a ‘bad time’ securing your micro-services · How not to have a ‘bad time’ securing your micro-services Or, how to avoid firewall hell @liljenstolpe | cdl@projectcalico.org

Tear  down  the  walls?

Page 9: How not to have a ‘bad time’ securing your micro-services · How not to have a ‘bad time’ securing your micro-services Or, how to avoid firewall hell @liljenstolpe | cdl@projectcalico.org

The  opportunity?

Page 10: How not to have a ‘bad time’ securing your micro-services · How not to have a ‘bad time’ securing your micro-services Or, how to avoid firewall hell @liljenstolpe | cdl@projectcalico.org

The  opportunity?

Page 11: How not to have a ‘bad time’ securing your micro-services · How not to have a ‘bad time’ securing your micro-services Or, how to avoid firewall hell @liljenstolpe | cdl@projectcalico.org

PSA:  Do  not  use  port  mapping

NetworkFabric80  <-­‐>  5389

Port  80

Port  80

4397<-­‐>80

Page 12: How not to have a ‘bad time’ securing your micro-services · How not to have a ‘bad time’ securing your micro-services Or, how to avoid firewall hell @liljenstolpe | cdl@projectcalico.org

The  Distributed  Firewall

NetworkFabric

Routing

10.0.0.1

192.168.1.2

192.168.1.1

Routing10.0.0.2

192.168.1.3

192.168.1.4

Page 13: How not to have a ‘bad time’ securing your micro-services · How not to have a ‘bad time’ securing your micro-services Or, how to avoid firewall hell @liljenstolpe | cdl@projectcalico.org

Project  Calico  architecture

RouteReflector

Kernel

Routing

10.0.0.2

192.168.1.3

192.168.1.4

Routes

iptablesFelix

BGP

Page 14: How not to have a ‘bad time’ securing your micro-services · How not to have a ‘bad time’ securing your micro-services Or, how to avoid firewall hell @liljenstolpe | cdl@projectcalico.org

admin-ui.yaml

kind:  NetworkPolicyapiVersion:  net.alpha.kubernetes.io/v1alpha1metadata:

namespace:  defaultname:  allow-­‐ui

spec:podSelector:ingress:-­‐ from:

-­‐ namespaces:role:  management-­‐ui

Metadata

Empty selector applies to all pods

Allow from management namespace

Page 15: How not to have a ‘bad time’ securing your micro-services · How not to have a ‘bad time’ securing your micro-services Or, how to avoid firewall hell @liljenstolpe | cdl@projectcalico.org

Network  Intent

Page 16: How not to have a ‘bad time’ securing your micro-services · How not to have a ‘bad time’ securing your micro-services Or, how to avoid firewall hell @liljenstolpe | cdl@projectcalico.org

Thank’s for  watching

•Main  project  website:  www.projectcalico.org•https://github.com/Metaswitch/calico•http://lists.projectcalico.org/listinfo/calico•Download  &  try  it  out•We  welcome  your  feedback  and  contributions• Follow  us                @projectcalico• Follow  me                @liljenstolpe