Code Monkey home page Code Monkey logo

cloudid-showcase's Introduction

Cloud Native Identity Management Showcase

Provides a showcase for cloud native identity management using SPIFFE, SPIRE and Vault on Kubernetes.

Components

Build & Development

Prerequisites

  • LINUX or macOS is recommended
    • Windows does not support Domain Sockets. Build & development is possible on Windows with limited local testability.
    • Homebrew is recommended on macOS for installing the prerequisites
  • JDK 8 or 9
  • BASH shell (Babun is recommended on Windows. pre-installed on macOS) for the Makefiles
  • GNU make (Pre-installed with Babun on Windows, pre-installed on macOS)
  • Docker CLI
  • kubectl
  • minikube
  • VirtualBox (or another Hypervisor supported by minikube)
  • ZSH with oh-my-zsh and the kubectl and Docker plugins is recommended as development shell
  • IntelliJ IDEA is recommended as IDE
    • Recommended plugins:
      • Kubernetes and Openshift Resource Support Plugin
      • Makefile Support
      • .ignore
      • Lombok Plugin
      • Spock Framework Enhancements
      • Protobuf Support
      • Bash Support
    • Don't forget to activate annotation processing to make Lombok work in IntelliJ IDEA

Minikube

Deployment:

make minikube-deploy

Accessing the demo with a browser:

  • Use make minikube-test-service-url to get the URL of the HTTP ingress
  • Access the URL in the browser

Kubernetes

Fetch certificates from the SPIRE agent:

kubectl -n spire exec $(kubectl -n spire get pod -o name | grep -o 'spire-agent.*$') -- /opt/spire/spire-agent api fetch -socketPath /spire/socket/agent.sock -write /root && kubectl -n spire cp $(kubectl -n spire get pod -o name | grep -o 'spire-agent.*$'):/root .

Register workloads:

kubectl exec $(kubectl get pod -o name | grep -o 'spire-server.*$') -- /opt/spire/spire-server register -parentID spiffe://cloudid.qaware.de/k8s/node/minikube -spiffeID spiffe://cloudid.qaware.de/host/workload -selector k8s:ns:default

Known Issues

  • Ingress does not work on Minikube with TLS-protected backends on Minikube up
  • Minikube API server hickups on Minikube 0.26.1 (0.25 works fine)

Copyright

The showcase is © 2018 QAware, published under the Apache License Version 2.0, with the following exceptions:

cloudid-showcase's People

Contributors

az82 avatar chr-fritz avatar qa-roman-bu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.