How to securely send the connection string to backend

You have to use Kubernetes secrets to store the username, passwords, APIs. Create a secret object in Kubernetes in to hold the data and ensure only authorized user have access to them.