Kong/Vault Integration

We are trying to integrate Kong with Vault on K8S platform.

Our main goal is to store Kong’s Postgress database username/password in Vault and use K8S initContainer to pass the username and password to Kong’s container in order to avoid exposing it to Environment Variables.

What is the recommended process of passing the DB username/password to Kong without using Environment Variables?

You can build your kong.conf configuration in the initContainer, and then the Kong container will pick those up from there.