regulated environments security oriented openshift within › files › summit › session-assets...

51
Security oriented OpenShift within regulated environments Dawid Szymański - IT Architect, BZWBK Tomasz Cholewa - Lead Cloud Architect (RHCA), Mindbox Jarosław Stakun - Lead Solutions Architect, Red Hat 9th May 2018

Upload: others

Post on 29-May-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Security oriented OpenShift within regulated environments

Dawid Szymański - IT Architect, BZWBKTomasz Cholewa - Lead Cloud Architect (RHCA), MindboxJarosław Stakun - Lead Solutions Architect, Red Hat

9th May 2018

Page 2: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Why?

Page 3: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Road to OpenShift

Photo credit: Sky Noir on VisualHunt / CC BY-NC

Page 4: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

X86 VM

BeforeContainers

World of Containers

OpenShift Infra Design

OpenShift Pipeline

OpenShift App Devel

Page 5: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

X86 VM IBM LPAR

BeforeContainers

World of Containers

OpenShift Infra Design

OpenShift Pipeline

OpenShift App Devel

Page 6: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

X86 VM IBM LPAR

Technology obsolescence

BeforeContainers

World of Containers

OpenShift Infra Design

OpenShift Pipeline

OpenShift App Devel

Page 7: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

X86 VM IBM LPAR

Technology obsolescence A lot of manual

work

BeforeContainers

World of Containers

OpenShift Infra Design

OpenShift Pipeline

OpenShift App Devel

Page 8: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

X86 VM IBM LPAR

Technology obsolescence A lot of manual

work

Almost no control over development components

BeforeContainers

World of Containers

OpenShift Infra Design

OpenShift Pipeline

OpenShift App Devel

Page 9: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

X86 VM

A lot of different versions of platforms

IBM LPAR

Technology obsolescence A lot of manual

work

Almost no control over development components

BeforeContainers

World of Containers

OpenShift Infra Design

OpenShift Pipeline

OpenShift App Devel

Page 10: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

X86 VM

A lot of different versions of platforms

IBM LPAR

Technology obsolescence A lot of manual

work

Compliance and security are pain in the ...Almost no control

over development components

BeforeContainers

World of Containers

OpenShift Infra Design

OpenShift Pipeline

OpenShift App Devel

Page 11: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

X86 VM

A lot of different versions of platforms

IBM LPAR

Technology obsolescence A lot of manual

work

Compliance and security are pain in the ...Almost no control

over development components

Changes are required in many places

BeforeContainers

World of Containers

OpenShift Infra Design

OpenShift Pipeline

OpenShift App Devel

Page 12: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Docker Swarm Architecture PoC

BeforeContainers

World of Containers

OpenShift Infra Design

OpenShift Pipeline

OpenShift App Devel

Page 13: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Docker Swarm Architecture PoC

FE 2.0 Project

BeforeContainers

World of Containers

OpenShift Infra Design

OpenShift Pipeline

OpenShift App Devel

Page 14: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Docker Swarm Architecture PoC

FE 2.0 Project

Docker Swarm Infra PoC

BeforeContainers

World of Containers

OpenShift Infra Design

OpenShift Pipeline

OpenShift App Devel

Page 15: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Docker Swarm Architecture PoC

FE 2.0 Project

Docker Swarm Infra PoC

BZWBK24Docker in Production

BeforeContainers

World of Containers

OpenShift Infra Design

OpenShift Pipeline

OpenShift App Devel

Page 16: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Docker Swarm Architecture PoC

FE 2.0 Project

Docker Swarm Infra PoC

BZWBK24Docker in Production

We all go together!

BeforeContainers

World of Containers

OpenShift Infra Design

OpenShift Pipeline

OpenShift App Devel

Page 17: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Docker Swarm Architecture PoC

FE 2.0 Project

Docker Swarm Infra PoC

BZWBK24Docker in Production

We all go together! Docker Swarm issues

BeforeContainers

World of Containers

OpenShift Infra Design

OpenShift Pipeline

OpenShift App Devel

Page 18: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Docker Swarm Architecture PoC

FE 2.0 Project

Docker Swarm Infra PoC

BZWBK24Docker in Production

We all go together! Docker Swarm issues

RFIRFP

BeforeContainers

World of Containers

OpenShift Infra Design

OpenShift Pipeline

OpenShift App Devel

Page 19: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Docker Swarm Architecture PoC

FE 2.0 Project

Docker Swarm Infra PoC

BZWBK24Docker in Production

We all go together! Docker Swarm issues

RFIRFP OpenShift!

BeforeContainers

World of Containers

OpenShift Infra Design

OpenShift Pipeline

OpenShift App Devel

Page 20: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Bank central Artifactory repo for images instead of internal registry

Secure by design! IPSEC under OpenShift!

4 Clusters

2 Prod / 2 Test

BeforeContainers

World of Containers

OpenShift Infra Design

OpenShift Pipeline

OpenShift App Devel

Use internal registry and external if needed!

Service Serving Certificate Secrets!

3 Clusters

2 Prod / 1 Test2 Clusters

1 Prod / 1 Test

Page 21: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Adjusting deployments to new cloud native reality

Page 22: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

BeforeContainers

World of Containers

OpenShift Infra Design

OpenShift Pipeline

OpenShift App Devel

Page 23: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Continuous Deployment pipeline

Only defined list of people allowed to approve

Page 24: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Speeding up deployment with CD pipelines

Page 25: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Release pipeline

All that is required to run an app

Multiple microservices

Page 26: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Release pipeline

Page 27: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

BeforeContainers

World of Containers

OpenShift Infra Design

OpenShift Pipeline

OpenShift App Devel

Creating secure and compliant container images

Page 28: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Use github.com to fork/clone images sources

BeforeContainers

World of Containers

OpenShift Infra Design

OpenShift Pipeline

OpenShift App Devel

Page 29: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Use github.com to fork/clone images sources

Need all images to be RHEL based

BeforeContainers

World of Containers

OpenShift Infra Design

OpenShift Pipeline

OpenShift App Devel

Page 30: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Use github.com to fork/clone images sources

Need all images to be RHEL based

Sources not binaries! No docker hub!

BeforeContainers

World of Containers

OpenShift Infra Design

OpenShift Pipeline

OpenShift App Devel

Page 31: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Use github.com to fork/clone images sources

Need all images to be RHEL based

Sources not binaries! No docker hub!

Own proxies and repos

BeforeContainers

World of Containers

OpenShift Infra Design

OpenShift Pipeline

OpenShift App Devel

Page 32: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Use github.com to fork/clone images sources

Create own base images for s2i and other products

Need all images to be RHEL based

Sources not binaries! No docker hub!

Own proxies and repos

BeforeContainers

World of Containers

OpenShift Infra Design

OpenShift Pipeline

OpenShift App Devel

Page 33: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Use github.com to fork/clone images sources

Create own base images for s2i and other products

Need all images to be RHEL based

Sources not binaries! No docker hub!

Own proxies and repos

Internal non-public Certificate Authority

BeforeContainers

World of Containers

OpenShift Infra Design

OpenShift Pipeline

OpenShift App Devel

Page 34: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Use github.com to fork/clone images sources

Create own base images for s2i and other products

Need all images to be RHEL based

Sources not binaries! No docker hub!

Own proxies and repos

Internal non-public Certificate Authority

BeforeContainers

World of Containers

OpenShift Infra Design

OpenShift Pipeline

OpenShift App Devel

All exposed services protected by TLS

Page 35: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Use github.com to fork/clone images sources

Create own base images for s2i and other products

Need all images to be RHEL based

Sources not binaries! No docker hub!

Own proxies and repos

Internal non-public Certificate Authority

Need to provide boilerplates for developers

BeforeContainers

World of Containers

OpenShift Infra Design

OpenShift Pipeline

OpenShift App Devel

All exposed services protected by TLS

Page 36: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Use github.com to fork/clone images sources

Create own base images for s2i and other products

Need all images to be RHEL based

Sources not binaries! No docker hub!

Own proxies and repos

Internal non-public Certificate Authority

Need to provide boilerplates for developers

When you need adjustment you change it in one place

BeforeContainers

World of Containers

OpenShift Infra Design

OpenShift Pipeline

OpenShift App Devel

All exposed services protected by TLS

Page 37: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

FROM registry.access.redhat.com/rhel7:latest

RUN ln -sf /usr/share/zoneinfo/Europe/Warsaw /etc/localtimeRUN cd /etc/pki/ca-trust/source/anchors/ && \ curl -Awget -O "http://pki.bzwbk.pl/pki/CA1.crt" && \ update-ca-trust extract[...]

BeforeContainers

World of Containers

OpenShift Infra Design

OpenShift Pipeline

OpenShift App Devel

Page 38: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Dealing with security and compliance requirements

Page 39: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments
Page 40: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Security controlled with code

SSL

APP1 APP1

OpenShift Router (https)

Old New

SSL

APP3

SSL

APP3 APP1 APP1

Page 41: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Traffic isolation between applications

Page 42: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Traffic isolation

Project1 Project2

Page 43: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Outbound traffic

Project1 Project2

Traditional (static) firewall

Page 44: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Inbound traffic

Project1 Project2

Traditional (static) firewall

Page 45: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

You can’t always get what you want

Project1 Project2

???Impossible in

OpenShift < 3.9

Page 46: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Overcoming OpenShift shortcomings

Page 47: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

OpenShift Application Lifecycle Management(CI/CD)

Build Automation Deployment Automation

Service Catalog(Language Runtimes, Middleware, Databases)

Self-Service

Infrastructure Automation & Management

Networking Storage Registry Logs & Metrics Security

Container Orchestration & Cluster Management(Kubernetes)

Red Hat Enterprise LinuxAtomic Host

Container Runtime & Packaging

Enterprise Container Host

SECURITY ACROSS ALL LAYERS

CONTROLApplication

Security

DEFENDInfrastructure

EXTEND

Page 48: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

AUTOMATED & INTEGRATED SECURITY

Container Content

Container Registry

CI/CD Pipeline

Deployment Policies

Security Ecosystem

CONTROLApplication

Security

DEFENDInfrastructure

EXTEND

Container Host Multi-tenancyContainer Platform

Network Isolation Storage

Audit & Logging API Management

https://www.redhat.com/en/resources/container-security-openshift-cloud-devops-whitepaper

Page 49: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments
Page 50: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Andthis is what we call

DevOps

In a

ban

k!

Page 51: regulated environments Security oriented OpenShift within › files › summit › session-assets › 2018 › S17… · Security oriented OpenShift within regulated environments

Contact us

Dawid Szymański, BZWBK

IT Architect

[email protected]

https://www.bzwbk.pl

Tomasz Cholewa, Mindbox

Lead Cloud Architect

[email protected]

https://mindboxgroup.com

Jarosław Stakun, Red Hat

Lead Solution Architect

[email protected]

http://www.openshift.com