rickardgranberg / terraform-provider-vaultoperator

Terraform Provider for Vault Operator operations
Mozilla Public License 2.0
19 stars 11 forks source link

Add possibility to init HC Vault deployed in Kubernetes (port-forward) #4

Closed mrzdvig closed 2 years ago

mrzdvig commented 2 years ago

Hi,

Please review my PR. I found the provider very useful, but I was unable to use it with an unsealed HC Vault raft cluster deployed in Kubernetes, due to it doesn't expose a service outside until it is inited and unsealed. To do that, the resource creates a temporary port-forward to any live pod behind an HC Vault Kubernetes service.

There are no integration tests due to their complexity. It was tested on on-premise and GKE Kubernetes clusters.