Storing and using secrets through Mage.
~/.mage_data
. If
you need more secure encryption, we recommend using a secrets manager.Secrets
tab. To create a secret, press the New
button on this tab.
Input a name for the secret and the value of the secret, and press Enter or Return to save.
Name | Uuid | Value |
---|---|---|
secret1 | dev-uuid | sooper dooper secret string |
secret2 | dev-uuid | xXxSecreTxXx |
secret3 | dev-uuid | dev only secret |
secret1 | prod-uuid | real production secret |
secret2 | prod-uuid | m4g3r0x! |
secret1 | random | random secret |
Command | Development Value | Production Value |
---|---|---|
get_secret_value('secret1') | sooper dooper secret string | real production secret |
get_secret_value('secret2') | xXxSecreTxXx | m4g3r0x! |
get_secret_value('secret3') | dev only secret | None |