Coder Social home page Coder Social logo

service-mesh-mtls-orig-egress's Introduction

mTLS origination at an egress gateway using OpenShift Service Mesh

This is a demo of mTLS origination at an Istio egress gateway. Access to the server is authorized only if the client presents a certificate that it trusts. The client is a simple proxy that will send a request to the server and return its response.

Provisioning

The following instructions describe how to provision this demo in an OpenShift cluster.

Provision certificate management

  1. Install the Red Hat OpenShift Certificate Manager operator.
  2. Provision the certificate issuers
oc apply -f cert-manager/ -n openshift-cert-manager

Provision the server

oc new-project server
oc apply -f server/manifests/ -n server

Provision the traditional client (optional)

This is an example of traditional client identity instrumentation provided as a comparison. A keystore secret is mounted directly to the application pod and consumed by the application to secure the request.

oc new-project client
oc apply -f client/manifests/ -n client

Provision a service mesh control plane

  1. Install Elasticsearch operator all namespaces
  2. Install OpenShift Distributed Tracing operator all namespaces
  3. Install Kiali operator all namespaces
  4. Install OpenShift Service Mesh operator all namespaces
  5. Create a namespace for the service mesh control plane
  6. Provision a control plane (see below)
oc new-project istio-system
oc apply -f istio-system/ServiceMeshControlPlane_basic.yaml -n istio-system

Configure a service mesh member

oc new-project client-mesh
oc apply -f istio-system/ServiceMeshMemberRoll_default.yaml -n istio-system

Provision a certificate for mTLS origination

oc apply -f istio-system/Secret_client-tls.yaml -f istio-system/Certificate_client-tls.yaml -n istio-system

Provision the client inside the service mesh

Substitute your cluster's wildcard domain into the Gateway and VirtualService for the client UI in order to support ingress to the client endpoint for demonstration.

oc apply -f client-mesh/manifests/ -n client-mesh

Attribution

JavaScript examples: Matteo Mattei

service-mesh-mtls-orig-egress's People

Contributors

davgordo avatar rhatdev avatar

Stargazers

Kunaal Jambhore avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.