Skip to content

Handling secrets in code

Deepak Narayana Rao edited this page Sep 15, 2017 · 1 revision

Dos

  • Please store secrets using Ansible vault or using any other alternate encryption mechanism

Don'ts

  • Don't add secrets as plain text inside code
  • Don't expose or share the key used for encryption with people outside the trusted group

Examples of secret variables

  • Password
  • API token
  • Webhook url containing secrets (eg: Slack webhoook url)
Clone this wiki locally