Skip to content

Allow composition of ACL policies #2620

Open
@gizmoguy

Description

@gizmoguy

From talking to @loriscn12 he suggests we should add the ability to compose a superset ACL from many other ACL rules.

So currently if we want reduce duplication of ACL rules we can apply multiple ACLs to ports like so:

dps:
    sw-1:
        1:
            acls_in: ["drop_smtp", "drop_dhcp"]

This works, but another idea is to allow users to create an ACL which is a composition of other ACLs:

acls:
    drop_smtp:
        - rule...
    drop_dhcp:
        - rule...
    drop_access
        - include_rules: drop_smtp
        - include_rules: drop_dhcp

Initially, this seems simply like another way to doing the former, however with the ability to compose an ACL rules from a subset of other ACLs we could do interesting things like creating templated ACLs from additional information we learn about ports (such as 802.1x information). Maybe we could have something like:

acls:
    drop_smtp:
        - rule...
    drop_dhcp:
        - rule...
    brad_access:
        - rule...
        - rule...
    drop_access
        - include_rules: drop_smtp
        - include_rules: drop_dhcp
        - include_rules: {{ 8021x_username }}_access

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions