Skip to content

A template for structuring a GitOps repository leveraging flux2 and SOPs

License

Notifications You must be signed in to change notification settings

swade1987/flux2-sops-template

Repository files navigation

Flux SOPs Template

This is an opinionated template to use as a starting point for managing secrets with Flux and SOPs.

TL;DR

Problem: "I can manage all my Kubernetes config in git, except Secrets."

Solution: Encrypt your Secret with SOPs.

For more information on SOPs see here.

Features

Production Environments

While this template uses age for encryption, for production environments we recommend transitioning to AWS KMS.

We've provided a detailed guide on how to adapt this template for production use with AWS KMS, here.

Directory Structure

secrets
├── us-west-2-platform-engineering-prd
└── us-west-2-platform-engineering-sbx

Getting started

Before working with the repository it is mandatory to execute the following command:

make initialise

The above command will install the pre-commit package and setup pre-commit checks for this repository including conventional-pre-commit to make sure your commits match the conventional commit convention.

As well as this it validates that unencrypted secrets are not committed to the repository.

Workflow

For an example of how to add a secret to this repository see here.

How does this repository work with Flux?

For more information on how this repository works with Flux, please read here.

Contributing to the repository

To contribute, please read the contribution guidelines. You may also report an issue.

About

A template for structuring a GitOps repository leveraging flux2 and SOPs

Resources

License

Stars

Watchers

Forks

Packages

No packages published