Actions cannot be updated due to keyword preservation #1324
Replies: 4 comments
-
|
Hi, @alex-suciu, Generally, the Deploy CLI works best when operating in a uni-directional workflow from your lower-level environments (ex: dev, test) up to your production environments. more
actions So, if the changes are made directly in Auth0 for the action code, changes must be merged manually to avoid a keyword-preservation mismatch. |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for your reply and for looking into it, we appreciate it. I understand your point although it's not what I expected. Our current desired process for modifying Auth0 is:
By following this process I experienced some changes due to new features or deprecations from Auth0 which I was only aware of because I exported them from Auth0 in step 3. If I only use a uni-directional flow then I'd need to make sure to be aware of each of those changes and then to manually add them to my code base. IMO it's especially risky when using the option My main concern is that the uni-directional process can only work if changes are exclusively performed by the deploy tool. But that's not the case so we need a possibility to first verify the current state in Auth0 before deploying our changes. |
Beta Was this translation helpful? Give feedback.
-
|
I would request to go through https://github.com/auth0/auth0-deploy-cli/blob/master/docs/multi-environment-workflow.md Here is a workaround: one export once to see the real remote state, export again to keep local keywords, then use Git diff/merge to safely copy the Action code changes into the preserved file. That helps avoid manual merge mistakes. Hope it helps. |
Beta Was this translation helpful? Give feedback.
-
|
To ensure this request gets the visibility it deserves and to encourage broader collaboration, we are moving this to a GitHub Discussion. We've already added your suggestion to our backlog for future consideration. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checklist
Description
I use the latest version
8.29.0ofauth0-deploy-cliand run into issues while exporting resources using"AUTH0_PRESERVE_KEYWORDS": true. I tested it with version8.26.0as well but same issue exists. Here's what happens:I got an action that should only if the login has been initiated from specific applications. Each application has a different client ID depending on the Auth0 environment (we use
development,stagingandproduction). In order to achieve this, we use keywords for the client ID of the applications in our Auth0 deploy configuration files:Within the Auth0 action, we then verify if the login event has been initiated by one of those two applications before executing the remaining code:
Everything worked fine until we tried to export the resources from Auth0 today after changing the action (in this example, the scope
write:usershas been added). The command didn't replace the action that has been modified in Auth0. Instead, it printed this warning:I'd appreciate if somebody could look into this issue because in this state the Auth0 deploy tool is unusable.
Expectation
Reproduction
"AUTH0_PRESERVE_KEYWORDS": truein the configuration of the Auth0 deploy tool and two keywords:a0deploy export --config_file config/config.development.json --output_folder src --format directoryDeploy CLI version
8.29.0
Node version
v22.22.0
Beta Was this translation helpful? Give feedback.
All reactions