Skip to content

Conversation

@benyamin-codez
Copy link
Contributor

Makes the builtin ACLs (none, any. localhost and localnets) available for selection:

  1. Created new custom field types:
    • AclField extending ArrayField
    • AclModelRelationField extending ModelRelationField
    • AclNetField extending NetworkField
  2. Adds builtin ACLs as child nodes to ACL list via new AclField field type
  3. Removes builtin name RegEx constraint from name field in Acl model
  4. Ensures "any" and "none" builtins cannot be part of an ACL multi-select via new AclModelRelationField field type
  5. Ensures network validation is skipped for builtin ACLs via new AclNetField field type
  6. Updates the General and Domain models to use AclModelRelationField
  7. Updates general.volt to:
    • Disable command buttons for builtin ACLs
    • Ensure the builtin ACLs are added to config.xml
  8. Updates named.conf to exclude builtin ACLs from custom name list
  9. Bumps model versions:
    • Acl to v1.0.1
    • General to v1.0.13
    • Domain to v1.1.3

@benyamin-codez
Copy link
Contributor Author

@fichtner @mimugmail

Franco & Michael,

Let me know what you think.

If you're happy with this and the others (PRs #4894, #4897 & #4901) I'll work on a tidy up and migration scripting per PR #4892...

With kind regards,
Ben

Makes the builtin ACLs (none, any. localhost and localnets) available
for selection:

1. Created new custom field types:
    * AclField extending ArrayField
    * AclModelRelationField extending ModelRelationField
    * AclNetField extending NetworkField
2. Adds builtin ACLs as child nodes to ACL list via new AclField field type
3. Removes builtin name RegEx constraint from name field in Acl model
4. Ensures "any" and "none" builtins cannot be part of an ACL multi-select
via new AclModelRelationField field type
5. Ensures network validation is skipped for builtin ACLs via new AclNetField
field type
6. Updates the General and Domain models to use AclModelRelationField
7. Updates general.volt to:
    * Disable command buttons for builtin ACLs
    * Ensure the builtin ACLs are added to config.xml
8. Updates named.conf to exclude builtin ACLs from custom name list
9. Bumps model versions:
    * Acl to v1.0.1
    * General to v1.0.13
    * Domain to v1.1.3

Signed-off-by: benyamin-codez <[email protected]>
@benyamin-codez
Copy link
Contributor Author

Pushed two fixes:

  1. Needed the add() function from the ArrayField base field type replicated in new AclField field type
  2. Modified AclController.php so that builtin ACLs cannot be deleted by selection

This should be good to go...

@benyamin-codez
Copy link
Contributor Author

Here's a screen shot of the proposed ACLs tab for your consideration:

bind_acl_screen

CC: @fichtner @mimugmail

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant