Coder Social home page Coder Social logo

concourse-uaa-credhub-k8s's Introduction

Deploy Concourse with Credhub and UAA oauth

Components

  1. cert-manager with Let’s Encrypt issuers
  2. contour
  3. UAA
  4. Credhub with UAA oauth delegation
  5. Concourse with UAA oauth delegation and Credhub secrets management

Deploy

git clone [email protected]:miclip/concourse-uaa-credhub-k8s.git
cd ./concourse-uaa-credhub-k8s

# Update `values.yaml` with at least domain details. 

./deploy-all.sh 

Deploy script will print the ingress IP/DNS that needs to be setup within external DNS e.g. *.ci.mydomain.io.

Note: Let’s Encrypt can take a while to issue certs, run kubectl get certificates -n concourse and they all should be READY. Have seen it take upwards of an hour.

Test

Test pipeline to verify concourse credhub integration:

credhub login -s https://credhub.mydomain.io -u credhub -p password --skip-tls-validation
credhub set -n /concourse/main/mysecret -v mike -t value
credhub get -n /concourse/main/mysecret 
jobs:
- name: hello-world-job
  plan:
  - task: hello-world-task
    params:
      SECRET_TEST: ((mysecret))
    config:
      platform: linux
      parms:
        SECRET_TEST:
      image_resource:
        type: registry-image
        source:
          repository: busybox 
      run:
        path: sh
        args:
        - -ec
        - |
          echo "HELLO WORLD ${SECRET_TEST}"
fly login -t my-main -c https://concourse.mydomain.io -k -b -n main
fly -t my-main sp -p hello-world -c ./hello-world.yml
fly -t my-main unpause-pipeline -p hello-world
fly -t my-main trigger-job -j hello-world/hello-world-job -w

Expect:

started hello-world/hello-world-job #2

initializing
selected worker: concourse-worker-0
selected worker: concourse-worker-0
selected worker: concourse-worker-1
running sh -ec echo "HELLO WORLD ${SECRET_TEST}"

HELLO WORLD mike

Known Issues

  1. UAA authorize POST is using HTTP and you'll get an alert when authorizing the client. Still investigating...
  2. Using orangeopensource/crehub, had issues with pcfseceng/credhub need to build my own image for Credhub and UAA.

concourse-uaa-credhub-k8s's People

Contributors

miclip avatar

Watchers

 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.