Is there a way to rasa run --enable-api without the credentials files

For security reason I prefer not to expose the “credentials.yml” file in the production stage. Is there any way to attach the credentials information to the command line rasa run --enable-api?

You can use environment variables in the credentials file. The values for the variables can come from a secure system like vault. Most deployment platforms have a way to securely insert environment variables.

Can you give me a simple example on how to use environment variables in the credentials file for Rasa? Much appreciated.

Sure, here’s an example:

  slack_channel: "CA003L0XZ"
  slack_token: ${SLACK_TOKEN}
  slack_signing_secret: ${SLACK_SECRET}

Depending on your deployment environment, you would have secure options for setting the environment variables.