Skip to content

Bot Detection & Captcha are breaking builds. #1199

@simpleetech

Description

@simpleetech

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

Hi!

First off thanks for all of the great work, it's one of the best infrastructure as code/deployment tools I've ever used. I love it.

After today's commit "Commit f0010e7"

I'm using
node: v22.21.1
npm: 10.9.4
yarn: 1.22.22

My build for Auth0 CLI Deployments (using github actions started to fail, looking for bot-detection.json and captcha.json.

  • I upgraded to the latest version of the cli and dumped my test db. still having issues.

##[debug]/usr/bin/bash -e /home/runner/work/_temp/9b988c31-dfd7-4762-a3ee-053fe7a40191.sh
2025-11-06T15:54:17.471Z - info: To enable experimental early access features use --experimental_ea flag or set AUTH0_EXPERIMENTAL_EA=true in configuration JSON.
2025-11-06T15:54:17.873Z - info: Processing directory src
2025-11-06T15:54:17.915Z - error: Problem running command import
2025-11-06T15:54:17.916Z - error: Error parsing JSON from metadata file: src/attack-protection/bot-detection.json, because: Unable to load file /home/runner/work/auth0/auth0/src/attack-protection/bot-detection.json due to Error: ENOENT: no such file or directory, access '/home/runner/work/auth0/auth0/src/attack-protection/bot-detection.json'
Error: Process completed with exit code 1.
##[debug]Finishing: Deploy Auth0 Tenant Configuration

Run a0deploy import --config_file config/dev1.json --input_file src
2025-11-06T16:01:56.946Z - info: To enable experimental early access features use --experimental_ea flag or set AUTH0_EXPERIMENTAL_EA=true in configuration JSON.
2025-11-06T16:01:57.480Z - info: Processing directory src
2025-11-06T16:01:57.534Z - error: Problem running command import
2025-11-06T16:01:57.534Z - error: Error parsing JSON from metadata file: src/attack-protection/captcha.json, because: Unable to load file /home/runner/work/auth0/auth0/src/attack-protection/captcha.json due to Error: ENOENT: no such file or directory, access '/home/runner/work/auth0/auth0/src/attack-protection/captcha.json'
Error: Process completed with exit code 1.

Workaround (possible solution?)
I had to add the two files with empty JSON objects {}

Image Image Image

Expectation

Desired behaviour
If the file isn't present assume it's an empty array {}, or make it a major version for breaking changes.

In the a0deploy export --format=directory --output_folder=.dump/dev2 --config_file=./config/dev2.json
Add the empty files, so as not to cause this error.

My build was working perfectly this morning and then when I changed something completely unrelated it stopped working, because I pulled the latest version of the auth0-deploy-cli. 😂

Image

Reproduction

Given
A previous export of an environment before the updates to attack protection i.e. no bot-detection.json or captcha.json files in the attack-protection directory.

Deploy using latest node and latest a0deploy

Outcome
Failed builds with warnings

2025-11-06T15:54:17.915Z - error: Problem running command import
2025-11-06T15:54:17.916Z - error: Error parsing JSON from metadata file: src/attack-protection/bot-detection.json, because: Unable to load file /home/runner/work/auth0/auth0/src/attack-protection/bot-detection.json due to Error: ENOENT: no such file or directory, access '/home/runner/work/auth0/auth0/src/attack-protection/bot-detection.json'

2025-11-06T16:01:57.534Z - error: Error parsing JSON from metadata file: src/attack-protection/captcha.json, because: Unable to load file /home/runner/work/auth0/auth0/src/attack-protection/captcha.json due to Error: ENOENT: no such file or directory, access '/home/runner/work/auth0/auth0/src/attack-protection/captcha.json'

Deploy CLI version

8.20.0

Node version

node: v22.21.1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions