-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keyword replacement logic doesn't preserve items within guardianFactorProviders
#845
Comments
@brendenpalmer Thanks for opening this ticket, especially appreciative of the unit test. This is definitely a bug that impacts all of the guardian resource types. Will need to dig into this a bit further but think we can address it sometime in the near future. |
This may be related. I am attempting to disable guardian factors sms.json. If true updates but when false it does nothing.
|
@brendenpalmer Thanks for raising that commit. At first glance it appears that it should work but I'll need to apply more tests to confirm. If good, I'd like you to submit a PR so that you can claim credit for this open source contribution. |
@esumerfd I believe you're referring to a separate issue. I'd leverage the Example:
|
I was having the same issue in a project also with the version 7.19.0, and downgrading to 7.18.0 solved the problem for me, although there are other tickets reported in this project by people having the same issue with the older version too. The tenant.yaml: clientGrants:
- ...
- client_id: Portal App
audience: '##API_AUDIENCE##'
scope:
- read:users
- update:users
- ... config.stage.json: {
...
"AUTH0_ALLOW_DELETE": true,
"AUTH0_PRESERVE_KEYWORDS": true,
"AUTH0_KEYWORD_REPLACE_MAPPINGS": {
"API_AUDIENCE": "https://some-stage-domain.auth0.com/api/v2/",
"ALLOWED_LOGOUT_URLS": [
...
],
"CALLBACKS": [
...
]
}
} Command executed: |
This specific keyword preservation issue has been fixed with 7.20.0. It should improve the feature's coverage to not just |
|
7.24.2 and 7.24.1 have the same issue , audience param is not getting preserved during export. |
Checklist
Description
Keywords within
guardianFactorProviders
don't seem to be preserved as expected on export. The default config forguardianFactorProviders
is here: src/tools/auth0/handlers/guardianFactorProviders.ts#L34. It setsid
toname
, which conflicts with logic here: src/keywordPreservation.ts#L235 and its usage here: src/keywordPreservation.ts#L56; as a result, it'll attempt to match based onid
, butid
won't exist in thetenant.yml
file so the keyword will ultimately never be preserved.Expectation
Should have keywords preserved within
guardianFactorProviders
Reproduction
See failing test-case here: https://github.com/auth0/auth0-deploy-cli/compare/master...brendenpalmer:auth0-deploy-cli:failing-test-case-guardian-factor-providers?expand=1
Deploy CLI version
7.19.0
Node version
19.7.0
The text was updated successfully, but these errors were encountered: