Skip to content

form_submission_behavior is exported, but cannot be imported #1469

Description

@EimantasLabutis

Checklist

  • I have looked into the README and have not found a suitable solution or answer.
  • I have looked into the documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have upgraded to the latest version of this tool and the issue still persists.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

Using a0deploy export we get the following file:
brute-force-protection.json

{
  "enabled": true,
  "shields": [
    "block",
    "user_notification"
  ],
  "mode": "count_per_identifier_and_ip",
  "form_submission_behavior": "auto_submit",
  "allowlist": [],
  "max_attempts": 10
}

Using a0deploy import we get the following error:

error: BadRequestError
Status code: 400
Body: {
  "statusCode": 400,
  "error": "Bad Request",
  "message": "Payload validation error: 'Additional properties not allowed: form_submission_behavior'.",
  "errorCode": "invalid_body"
}

Expectation

Consistent behaviour between export and import - either don't export form_submission_behavior or allow to import form_submission_behavior.

Reproduction

  1. Export a json configuration from a tenant with brute-force-protection enabled
  2. Try to import the same configuration (which contains form_submission_behavior field)

Deploy CLI version

8.43.0

Node version

20.20.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions