GithubHelp home page GithubHelp logo

kong-mozilla-sops-demo's Introduction

Kong x Mozilla SOPS Demo

Introduction

Demo repository on using Mozilla SOPs to encrupt secrets during Kong deployment and configurations.

context

Requirements

  1. Install age
  2. Install sops

We tested this exercise in MacOS, some variation are expected

Walkthrough

Generate a key-pair

Let's generate a key pair using age. Pl As you might expect with any other encryption scheme, the public key is the one we use to encrypt (and it’s okay to share), while the secret key decrypts data (and must be kept private, recommend to use a password manager).

age-keygen -o sops-key.txt
Public key: xxxx

cat sops-key.txt
AGE-SECRET-KEY-XXXXXXXXXX

Configuring Mozilla SOPS

Next, make encryption easier by creating a small configuration file for SOPS. This allows you to encrypt quickly without telling SOPS which key you want to use.

Create a .sops.yaml file like this one in the root directory of our repository

creation_rules:
  - encrypted_regex: '^(data|stringData)$'
    age: xxxxx-age-public-key

Create a sample Kong Config file

Sample configuration file (encrypted) can be found in kube/config

References

  1. Blog Post about Mozilla Sops x Kong

kong-mozilla-sops-demo's People

Contributors

robincher avatar xibuka avatar

Stargazers

 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.