Commit Graph

26 Commits

Author SHA1 Message Date
Oliver Gorwits
6eed661c43 avoid mistaking v6 in ACL for prop:val 2023-07-15 11:08:22 +01:00
Oliver Gorwits
fcd1c45606 allow ACL property match to contain ":" 2023-07-14 20:20:21 +01:00
Oliver Gorwits
33b4a6c231 fix op:and not working for prop:value ACL rules 2023-06-26 19:31:54 +01:00
Oliver Gorwits
a76dc79b79 permit import of check_acl from Util::Permission in case other modules are still using it 2023-06-22 14:11:06 +01:00
Oliver Gorwits
814ccc9267 permit import of check_acl from Util::Permission in case other modules are still using it 2023-06-22 14:09:34 +01:00
Oliver Gorwits
9355f5c2b9 Refactored ACL support with multi-object compare
Squashed commit of the following:

commit 4081e22202693bd7c4ea00e95daad8e628c6fd5a
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Mon May 29 21:02:07 2023 +0100

    large rename of check_acl* to acl_matches*

commit 3cfa284ddd24d68765c255578cc5c184afbdcd83
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Fri May 19 20:39:03 2023 +0100

    update permission doc

commit 8c7bb93cc5e9fafb770f98f446e45cbd94b14894
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Wed May 17 21:50:07 2023 +0100

    migrate most check_acl_only to acl_matches_only

commit c47f699f2a22f08f2f3e093ed0f24c891e6f9a82
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Wed May 17 21:39:19 2023 +0100

    rename check_acl* to be acl_matches*

commit a884a22c3ab1f3262118c3a47ed8e25b0b0a7336
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sun May 14 16:50:42 2023 +0100

    update macsuck_no_deviceports to use acl_matches

commit 8c256af728721329b64d071fa529dfc844073ac6
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sun May 7 22:54:33 2023 +0100

    update hide_deviceports to use acl_matches multi @things

commit cd5d9978aba1da459be4fed4500f395df13f7784
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sun May 7 22:53:38 2023 +0100

    check_acl fix to allow all @things to offer a property before fallback to missing as empty string

commit 1a3ab9a7646e9f994f03126d45fc36e9e5a13ed5
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Tue May 2 15:31:17 2023 +0100

    add ignore_deviceports to portproperties discover; improve comments

commit 51385ce89458dc939587dae902fda431719c22c9
Merge: b97c07d2 3f8ffe78
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Tue May 2 15:21:48 2023 +0100

    Merge branch 'master' into og-acl_multidict

commit b97c07d237d750c1d9eb3095d8ff3908512eac2a
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sat Mar 25 14:37:53 2023 +0000

    add support for arrayref of items, and unblessed hash, to check_acl
2023-05-29 21:32:07 +01:00
Oliver Gorwits
790c51b257 #925 implement ignore_deviceports and hide_deviceports 2022-09-20 20:32:35 +01:00
nick n
83a946d36e replace unicode nonbreaking space with ascii space (#794) 2021-06-23 22:00:33 +01:00
Oliver Gorwits
669eec46db Implement Hooks per #726 2020-12-23 11:18:38 +00:00
Oliver Gorwits
e982aded09 add some protections to ACLs and an error log, following #686 2019-12-30 11:23:17 +00:00
nick n
90a7ee6b56 configuration has moved to the wiki (#574)
found with intellij idea
2019-05-02 21:19:06 +02:00
Oliver Gorwits
e3648cda37 minor amendments to previous commit 2019-04-30 06:55:38 +01:00
Oliver Gorwits
ee9f79c95c improve check_acl performance for basic IP string compare 2019-04-30 06:53:18 +01:00
Oliver Gorwits
ca74f32e35 improve check_acl performance for basic IP string compare 2019-04-28 20:42:07 +01:00
Oliver Gorwits
4abee86efb #374 fix ACL with negation (earendilfr) 2018-02-15 20:03:05 +00:00
Oliver Gorwits
75e2043bef tighten up ip range regexp so as not to catch hostnames with hyphens 2018-02-05 11:17:18 -08:00
Oliver Gorwits
a61d5aecf8 #318 ACLs with RegExp are very slow - aggressive resolver timeouts 2017-06-24 14:42:50 +01:00
Oliver Gorwits
2cd4423a79 #319 better fix for acceping ACL names or values in check_acl_* 2017-06-24 13:24:31 +01:00
Oliver Gorwits
b9e6e928af fix ACL content accepted by check_acl_* 2017-06-22 12:23:19 +01:00
Oliver Gorwits
849e0ddfd9 support Netdisco device_ip instances in match thing 2017-05-12 19:22:58 +01:00
Oliver Gorwits
5e55c60ee8 fail safe on _no acl matching 2017-05-12 18:25:57 +01:00
Oliver Gorwits
4df2bc45ea use check_acl for dns->no acl 2017-05-10 21:13:03 +01:00
Oliver Gorwits
762ce952d1 tidy up calls to check_{node|device}_{no|only} to use only check_acl* 2017-05-10 18:54:38 +01:00
Oliver Gorwits
95598b5468 basic implementation of named acls (need to tidy up calls to check_acl) 2017-05-07 13:34:21 +01:00
Oliver Gorwits
03f41f1177 Enhance the ACL options to include AND and negation
Squashed commit of the following:

commit 7673f3ee1e
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sat May 6 14:19:19 2017 +0100

    allow check_acl to accept Device or NetAddr::IP instance

commit c31059bc01
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sat May 6 14:19:00 2017 +0100

    update docs

commit deaeab2670
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sat May 6 14:18:27 2017 +0100

    SNMP only stanza has access to full check_acl features

commit 4a44fa5863
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Mon May 1 18:49:38 2017 +0100

    add AND operator and negation support to ACLs
2017-05-06 15:16:04 +01:00
Oliver Gorwits
d23b32500f relocate repo files so ND2 is the only code 2017-04-14 23:08:55 +01:00