kirs / secretland

Home Page:http://kirshatrov.com/2018/03/24/rails-credentials-kubernetes/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a sample app for the Rails 5.2 Credentials and Kubernetes post.

The interesting parts are:

  • Dockerfile builds minimalistic Docker image with the app
  • .dockerignore tells Docker to ignore config/master.key
  • script/release is a script for building and pushing Docker image
  • config/deployment.yml is Kubernetes Deployment spec that uses Kubernetes secret management
  • app/controllers/helloworld_controller.rb renders decrypted secrets as HTML

That's it!

About

http://kirshatrov.com/2018/03/24/rails-credentials-kubernetes/


Languages

Language:Ruby 79.1%Language:HTML 18.0%Language:CSS 2.3%Language:Shell 0.4%Language:JavaScript 0.2%