plugins
plugins copied to clipboard
dns/bind: Make builtin ACLs available
Makes the builtin ACLs (none, any. localhost and localnets) available for selection:
- Created new custom field types:
- AclField extending ArrayField
- AclModelRelationField extending ModelRelationField
- AclNetField extending NetworkField
- Adds builtin ACLs as child nodes to ACL list via new AclField field type
- Removes builtin name RegEx constraint from name field in Acl model
- Ensures "any" and "none" builtins cannot be part of an ACL multi-select via new AclModelRelationField field type
- Ensures network validation is skipped for builtin ACLs via new AclNetField field type
- Updates the General and Domain models to use AclModelRelationField
- Updates general.volt to:
- Disable command buttons for builtin ACLs
- Ensure the builtin ACLs are added to config.xml
- Updates named.conf to exclude builtin ACLs from custom name list
- Bumps model versions:
- Acl to v1.0.1
- General to v1.0.13
- Domain to v1.1.3
@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
Pushed two fixes:
- Needed the
add()function from the ArrayField base field type replicated in new AclField field type - Modified
AclController.phpso that builtin ACLs cannot be deleted by selection
This should be good to go...
Here's a screen shot of the proposed ACLs tab for your consideration:
CC: @fichtner @mimugmail