# Action secrets and Database settings handling with deploy-cli-tool

**URL:** <https://community.auth0.com/t/action-secrets-and-database-settings-handling-with-deploy-cli-tool/65362>\
**Category:** Get Help\
**Tags:** deploy-cli\
**Created:** [June 30, 2021, 6:34pm UTC](https://community.auth0.com/t/action-secrets-and-database-settings-handling-with-deploy-cli-tool/65362 "2021-06-30T18:34:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![alfredo.anderson](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alfredo.anderson/32/25669_2.png) [@alfredo.anderson](https://community.auth0.com/u/alfredo.anderson)\
**Post date:** [June 30, 2021, 6:34pm UTC](https://community.auth0.com/t/action-secrets-and-database-settings-handling-with-deploy-cli-tool/65362/1 "2021-06-30T18:34:25Z")

</div>

Hi guys, we are trying to to use the deploy-cli-tool to automate the deployment process and have the following problems:

1 .- We have scripts (Authentication - Database (Import users to auth0) - Custom database - Login and GetUser) that use key value pairs in ‘Database settings’, but when we export a tenant that have this value pairs defined, we don’t see them (the key value pairs) in the exported yaml (tenant.yaml). There is a way to set this key value pairs in the yaml file ?

2 - Similary we have an action that use key value pairs from action secrets. In this case we see the pairs in the exported yaml but when we import the yaml in another tenant we don’t see the pairs created. There is a way to get this value pairs imported ?

A little more information about actions:

When we export a tenant (with action secrets) we see them in the yaml file but with value _VALUE\_NOT\_SHOWN_. We changed _VALUE\_NOT\_SHOWN_ to something else and import the yaml file into another tenant but it seems that the secrets aren’t created (we don’t see them listed in the action secrets).

```auto
actions:
  - name: postLoginAction
    code: ./actions/postLoginAction/code.js
    dependencies: []
    deployed: true
    secrets:
      - name: codigoSitio
        value: XXXX
      - name: token
        value: YYYY
      - name: dominioPaseServicios
        value: ZZZZ

```

Any help will be appreciated.

Regards

---

<div class="post-metadata">

**Author:** ![alfredo.anderson](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alfredo.anderson/32/25669_2.png) [@alfredo.anderson](https://community.auth0.com/u/alfredo.anderson)\
**Post date:** [July 22, 2021, 9:18pm UTC](https://community.auth0.com/t/action-secrets-and-database-settings-handling-with-deploy-cli-tool/65362/2 "2021-07-22T21:18:25Z")

</div>

Hi guys, we update the deploy-cli-tool ( npm i -g auth0-deploy-cli ) (7.0.0 → 7.2.0) and now importing the action’s secrets is working ok.

The values doesn’t get exported but this is not a problem for us.

In regards to the key value pairs in ‘Database settings’ we still doesn’t know how to import they.

Regards

---

<div class="post-metadata">

**Author:** ![thameera](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/thameera/32/13430_2.png) [@thameera](https://community.auth0.com/u/thameera)\
**Post date:** [July 23, 2021, 6:47am UTC](https://community.auth0.com/t/action-secrets-and-database-settings-handling-with-deploy-cli-tool/65362/3 "2021-07-23T06:47:57Z")

</div>

The DB secrets will not be present in the export - Deploy CLI intentionally redacts them. You can add them to the YAML file to import them to Auth0 though. They should go in a `configuration` object inside the database’s `options`. Example:

```auto
databases:
  - name: "My DB"
    strategy: "auth0"
    enabled_clients:
      - "app1"
    options:
      enabledDatabaseCustomization: true
      configuration:
        key1: "value1"
        key2: "value2"
      customScripts:
        /* redacted */

```

---

<div class="post-metadata">

**Author:** ![alfredo.anderson](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alfredo.anderson/32/25669_2.png) [@alfredo.anderson](https://community.auth0.com/u/alfredo.anderson)\
**Post date:** [July 23, 2021, 5:57pm UTC](https://community.auth0.com/t/action-secrets-and-database-settings-handling-with-deploy-cli-tool/65362/4 "2021-07-23T17:57:23Z")

</div>

It works perfect!!! Thank you very much!!!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 29, 2021, 8:43am UTC](https://community.auth0.com/t/action-secrets-and-database-settings-handling-with-deploy-cli-tool/65362/5 "2021-07-29T08:43:09Z")

</div>

No worries, we’re here for you!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 29, 2021, 8:43am UTC](https://community.auth0.com/t/action-secrets-and-database-settings-handling-with-deploy-cli-tool/65362/6 "2021-07-29T08:43:11Z")

</div>


