Skip to content

Instantly share code, notes, and snippets.

View PatrLind's full-sized avatar

Patrik Lindahl PatrLind

  • Tolotek AB
  • Karlstad
View GitHub Profile
@PatrLind
PatrLind / protect-kube-config.md
Created April 26, 2021 08:43
How to protect your ~/.kube/ configuration

How to protect your ~/.kube/ configuration

I had a need to protect my Kubernetes config file on my computer against accidental or malicious change or reading, so I came up with this way of protecting the config files.

How it works

The ~/.kube folder is mounted using encfs. By using the --ondemand flag it will automatically ask for the encryption key/password when accessed and keep