The vault of the cloud provider would just inject the value of the environment variable securely so it doesn't have to be stored on-disk. What the parent poster wrote isn't wrong.
It's not okay to store your secret on your own machine disk's .bashrc forever.
It seems we're in agreement anyway.
Is there confusion because an extra “not” leaked in?