-
Notifications
You must be signed in to change notification settings - Fork 890
unbound: add per-policy quick actions in reporting overview. #9559
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
base: master
Are you sure you want to change the base?
Conversation
src/opnsense/mvc/app/controllers/OPNsense/Unbound/Api/OverviewController.php
Outdated
Show resolved
Hide resolved
fichtner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it, thanks!
| title: "{{ lang._('Quick action') }}", | ||
| classname: 'fa fa-cogs', | ||
| sequence: 100, | ||
| filter: function(cell) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note to reviewer: this code utilizes d25a8ac, which is currently only on master.
AdSchellevis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@swhite2 a couple of small remarks, but looks good. thanks!
| parser_obj = BlocklistParser() | ||
|
|
||
| if args.command == "modify": | ||
| parser_obj.modify_blocklist(args.uuid, args.domain, args.action) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the "quick" update option is quite nice, but likely needs locking to prevent two instances updating the list at the same time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is already handled through the BlocklistParser constructor. However, error handling in this case may be improved.
This allows more visibility into the blocklist hit, more control over which blocklist should act on a given domain and improves the dnsbl update time for such quick updates by introducing the
dnsblquickconfigd action.