Is it possible to import Action Secrets by auth0-deploy-cli

Hi there,

This document says auth0-deploy-cli can import the configuration of Actions.
I wonder it includes Action Secrets.
If so, I want to know the format to import.

The following is a sample configuration of exporting actions, it has secrets property but secrets are not reflected to Auth0 tenant when import it.

actions:
  - name: Some Actions
    code: ./actions/Some Actions/code.js
    dependencies: []
    deployed: true
    runtime: node16
    secrets:
      - name: secret1
      - name: secret2
    status: built
    supported_triggers:
      - id: post-user-registration
        version: v2

Yes, it’s possible. I noticed an array of objects can be passed to secrets and it worked.
Of course, Keyword Mappings is available and environmental values can be passed through it.

  actions:
  - name: Some Actions
    code: ./actions/Some Actions/code.js
    dependencies: []
    deployed: true
    runtime: node16
    secrets: [
      {
        "name": "secretName1",
        "value": "secretValue1"
      },
      {
        "name": "secretName2",
        "value": "secretValue2"
      }
    ]
    status: built
    supported_triggers:
      - id: post-user-registration
        version: v2

I couldn’t find the format specification other than the source code of the cli.

Perfect! Thanks for sharing it with the rest of community!

You’re welcome!

The feature I requested before is no longer that important since secrets can be managed in the cli and the cost of maintenance is not that great.

Once again thanks for sharing it with others!