-
Notifications
You must be signed in to change notification settings - Fork 175
Closed
Labels
Description
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
When I install version 18.28.0 of auth0-deploy-cli and export my configs using the Directory stratey to my local environment (which does not yet have bot-detection.json), bot-detection.json is not downloaded as expected. Furthermore, when I manually add the file and deploy with version 18.28.0, my changes are not acknowledged on the web console.
When I downgrade to 18.20.1, everything works as expected.
It looks like the culprit may be attackProtection.ts::parse() starting here. There is not code block to handle files.botDetection.
Expectation
- When I make changes to Bot Detection in the web console and then export my configs, I expect to see
bot-detection.jsonin the results and for that file to have the config changes I just made in the web console - When I make changes to my local copy of
bot-detection.jsonand I deploy my configs, I expect the changes I just made to the local file to be reflected in the web console.
Reproduction
Scenario: File doesn't exist and is not downloaded after export
- Start with a repo that uses the Directory deployment strategy
- Ensure that you do not yet have a
bot-detection.jsonin theattack-protectiondirectory - Ensure your exporter is running version 8.28.0 of auth0-deploy-cli
- Make changes to your Bot Detection config in the web console
- Export your configs from the tenant to your local
- See that you still do not have
bot-detection.jsonin theattack-protectiondirectory
Scenario: File exists and has changes, changes not reflected on web console after deploy
- Start with a repo that uses the Directory deployment strategy
- Ensure that you do have a
bot-detection.jsonin theattack-protectiondirectory - Ensure your deploy script is running version 8.28.0 of auth0-deploy-cli
- Make changes to your Bot Detection config in the local
bot-detection.jsonfile - Deploy your configs to the tenant
- See that your freshly deployed configs are not represented in the web console
Deploy CLI version
8.28.0
Node version
10.9.2
Reactions are currently unavailable