/generic-bank

Demo online-banking services for Kubernetes

Primary LanguageGo

Generic-Bank - a demo app for Kubernetes

CircleCI Tufin

Deploy

To deploy into your Kubernetes cluster run:

./deploy <timezonedb token>

To get a timezonedb token, go to https://timezonedb.com/register

Remove

To remove from your Kubernetes cluster run:

./remove

DevSecOps with Tufin Orca

This app demonstrates Tufin Orca security integration into the CI/CD pipeline (DevSecOps):

  • Click the build status badge to see how the scan is integrated into CircleCI (or any other CI for that matter)
    CircleCI

  • The security score badge in Github reflects the scan result of the latest image scan by Orca. Click the security score badge to see the CVEs in Tufin Orca (requires an account)
    Tufin

You can create your own Orca account and scan your own images in the pipeline (and in run-time).

Generic Bank Architecture

Generic Bank Diagram

REST API - Customer

Portal

HTTP GET /customer/

Create Account

HTTP POST /accounts/{account-id}

Get Balance

HTTP GET /balance

REST API - Admin

Portal

HTTP GET /admin/

Get all accounts

HTTP GET /boa/admin/accounts

Get Time

HTTP GET /time?zone=Asia/Jerusalem

Run Build using CircleCI

curl -i -X POST \
   -H "Content-Type:application/json" \
   -d \
'{
  "build_parameters": {
      "CIRCLE_JOB": "<service>"
  }
}' \
 'https://circleci.com/api/v1.1/project/github/Tufin/generic-bank/tree/master?circle-token=<token>'

Docker build

docker build --build-arg SERVICE="${src}" -t "${src}" -f Dockerfile.generic .