Skip to content
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

Merge all the rule json metadata into a single file #17

Open
april opened this issue Mar 5, 2020 · 0 comments
Open

Merge all the rule json metadata into a single file #17

april opened this issue Mar 5, 2020 · 0 comments

Comments

@april
Copy link

april commented Mar 5, 2020

Right now, it is extremely hard to figure out the rule order from looking at anything but auth0 directly. My proposal would be to merge everything into a single metadata.json file that would look something like this:

{
  "rules": [
    {
      "filename": "duosecurity.js",
      "enabled": true,
      "name": "Force staff (LDAP) to use MFA"
    },
    {
      "filename": "aai.js",
      "enabled": true,
      "name": "Authentication Assurance Indicator"
    },
    {
      "filename": "AccessRules.js",
      "enabled": true,
      "name": "Access Rules"
    },
    {
      "filename": "default-deny-for-maintenance.js",
      "enabled": false,
      "name": "Deny access to all users if we are in maintenance mode"
    }
  ]
}

Pros of this method:
• Easy to see all the rules in their order at one glance
• No need to set numbers, as the order they appear in the list would set their order in auth0 (the deployment script would increment by 10 for each rule)
• Rules would be stored locally with normal javascript file names, but could be deployed to auth0 with descriptive names instead of names like aai.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant