Skip to content

PaulRudin/xamaral

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xamaral

This repo contains terraform and k8s manifests.

For the time being it's just an experimental personal project, and contains things that I want to experiment with from time to time.

Terraform

The terraform config is fairly minimal and does little more than provision a k8s cluster.

K8S

The bulk of the code is jsonnet to generate k8s manifests.

Secrets handling.

One of the challenges for publicly accessible code bases is dealing with secrets. Even when code is not publicly accessible it's best practice not to commit raw secrets to your version control.

Every necessary to recreate the complete system is contained in this repo, and this includes secrets.

Note the different roles played by git-crypt and sealed secrets. git-crypt is used to encrypt secrets and those encrypted secrets are the authoritative of their data. Tooling (see e.g. this Makefile) generates sealed secrets from the raw secrets, these can be committed so that other consumers have access to the secret data. In this case we're using flux to keep the running k8s config consistent with the manifests defined by the code. Given this setup flux has no need to be able to decrypt the git-crypt encrypted data, because flux just applies the sealed secret data.