Skip to content

nicolasbernard/kubernetes-flexvolume-vault-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this ?

This project is an implementation of the flexvolume kubernetes plugin to inject a scoped vault token inside pods at startup so they can get their secrets.

How do I build it ?

Just run make ( or go build -o whatever . where whatever is the name you want the binary to have ) All dependencies are versionned under /vendor with glide and commited.

You can also `go get github.com/fcanoturnet/kubernetes-flexvolume-vault-plugin

How does it work ?

It creates a tmpfs volume and mounts it at a path specify by the kubelet. Inside the volume are 2 files : vault-token that contains the raw wrapped vault token. vault-token.json that contains the full response from vault at token creation time (includes metadata)

The token is scoped to a policy defined by a parameter provided to the plugin via stdin by the kubelet (cf. flexvolume documentation)

The binary generated by the project must be present on the node in a directory specified to the kubelet by the flag --volume-plugin-dir

it expects a vault token at /etc/kubernetes/vaulttoken with a policy that allows the creation of token

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.7%
  • Makefile 0.3%