Commit Graph
226 Commits
Author SHA1 Message Date
Oliver Gorwits 202d02a64a #827 add ignore_interface_types setting 2021-10-12 13:21:07 +01:00
Oliver Gorwits 29de4465f9 replace jquery load with fetch (#828) 2021-10-12 13:15:29 +01:00
Oliver GorwitsandGitHub 6e79e1fa05 replace jquery load with fetch (#828)
* initial implementation

* working with Dancer is_ajax

* better network errors
2021-10-12 12:59:54 +01:00
Oliver Gorwits e741b31057 add missing halflings file 2021-10-06 18:12:35 +01:00
Oliver Gorwits 3c3b9f286c better Content-Security-Policy 2021-10-06 17:56:46 +01:00
Oliver Gorwits 381f412df9 clickjacking prevention via X-Frame-Options and Content-Security-Policy headers 2021-10-06 16:44:36 +01:00
Oliver Gorwits 726e8c611a add missing JS files to quieten console warnings 2021-10-06 16:11:02 +01:00
Oliver Gorwits 69ba616312 add session_secure to the recommended config 2021-10-03 14:35:11 +01:00
Oliver Gorwits 43ce26ef3d Allow port_control_reasons setting to actually work 2021-09-03 21:17:11 +01:00
Oliver Gorwits 691cedb3c6 Hide portctl features in Device Ports where ACLs would not permit the action 2021-09-03 08:07:01 +01:00
Oliver Gorwits 5f3ae3bf10 Config setting portctl_nowaps to prevent port control on WAP ports 2021-09-03 06:22:16 +01:00
Oliver Gorwits e953e3945f ACLs portctl_no and portctl_only for limiting port control targets 2021-09-03 06:15:20 +01:00
Oliver Gorwits 2498d9766b #800 gather and report SNMP Chassis ID http://oid-info.com/cgi-bin/display?oid=1.3.6.1.4.1.9.3.6.3&a=display 2021-08-14 13:28:13 +01:00
Oliver Gorwits 8509cd96cc #778 exec hooks were not configured to be high priority 2021-07-14 13:15:40 +01:00
Oliver Gorwits 0d1dc39d33 #788 use device.name instead of device.dns for pseudo devices 2021-07-14 12:04:29 +01:00
Oliver Gorwits 668bcbe503 #775 include /contrib/raddb/* in distribution 2021-06-23 22:18:07 +01:00
nick nandGitHub 83a946d36e replace unicode nonbreaking space with ascii space (#794) 2021-06-23 22:00:33 +01:00
Oliver Gorwits 351927d384 add arpnip and macsuck hooks and exec hook implementation 2020-12-30 20:38:45 +00:00
Oliver Gorwits 0ae6ea9d16 #442 remove Unknown Vendor from sidebar option as it does not work 2020-12-23 11:37:58 +00:00
Oliver Gorwits 669eec46db Implement Hooks per #726 2020-12-23 11:18:38 +00:00
Oliver Gorwits 15a2b46e3a Try again to drop unneeded constraint on netmap_positions 2020-10-27 12:25:33 +00:00
Oliver Gorwits 7cf2bde4ff #743 make clear when partial MAC search can be used 2020-09-26 11:34:11 +01:00
Oliver Gorwits 31fc6e1ee5 #734 Multiple TACACS+/RADIUS servers now supported 2020-07-10 22:18:29 +01:00
Oliver Gorwits fc46384fc6 #227 Do not overwrite partially retrieved data with null or incorrect values
this and two related commits implements:
- setting snmp_field_protection which can be used to protect any
  database field from having a null value set
- extra device discover worker which prefetches SNMP interfaces and
  performs some sanity checks and comparison against the DB
the two checks will return job status ERROR with CANCELLED if they
see anything fishy.
2020-07-06 19:49:57 +01:00
Oliver Gorwits 7e51fe2295 try to safeguard some snmp leaf gather failures 2020-07-01 21:21:09 +01:00
Oliver Gorwits dc87a50076 #728 store SNMP Engine ID 2020-06-29 14:38:51 +01:00
Oliver Gorwits abc8bb3e0e #713 Template processing issue prevents VLAN list displaying 2020-05-18 12:32:25 +01:00
Christian RamseyerandGitHub 48996661ce Add vendor to IP Inventory report (#714)
* request on mailing list by Adrian Sevcenco, 08.04.20,
   "[Netdisco] how to modify report: add column to ip inventory"
2020-04-20 11:21:06 +01:00
Oliver Gorwits da33478504 try to make swagger safer with send_file 2020-04-19 11:22:28 +01:00
Oliver Gorwits 4f0117e22c many fixes to swagger hosting to allow path relocation (part complete) 2020-04-18 17:26:04 +01:00
Oliver Gorwits 4f57a4d30a rename ports column in device table to be num_ports 2020-04-18 16:50:49 +01:00
Oliver GorwitsandGitHub dff26abc5c API implementation (#712)
* initial v0 creator

* working json api for generic reports

* add require login

* move report swagger into plugin, and set new default layout of noop

* require proper role and also use new util func

* start to tidy authn

* some work on cleaning up web authn

* clean up the authN checks

* fix bug

* fix the auth for api

* fixes to json handling

* set swagger sort order

* enable most reports for api endpoints

* fix doc

* add paramters to reports

* add missed report

* allow api_parameters in reports config

* reorganise api

* add vlan search

* add port search

* make sure to enable layout processing

* add device search

* add v1 to api paths

* add Node Search

* support api_responses

* add device object search; fix spurious ports field in device result class

* handle some plugins just returning undef if search fails

* errors from api seamlessley

* fix error in date range default

* more sensible default for prefix

* change order of endpoints in swagger-ui

* all db row classes can now TO_JSON

* add device_port api endpoint

* add device ports endpoint

* do not expand docs

* add swagger ui json tree formatter

* add all relations from Device table

* add port relations

* add nodes retrieve on device or vlan

* rename to GetAPIKey

* update config for previous commit
2020-04-15 21:15:52 +01:00
Oliver Gorwits 654799e825 #442 add device ip, port and vlan to the node vendor report results 2020-02-13 15:36:45 +00:00
Oliver Gorwits ab6305b4cf default access list for device_auth should be ipv4 and ipv6 2020-02-12 16:55:16 +00:00
Oliver Gorwits 17da397c56 #673 disallow clicking arpnip/macsuck buttons for devices not supporting those layers 2019-12-22 08:50:33 +00:00
Oliver Gorwits c282a5a565 #688 Amend vlan search to show number of ports actually using the vlan 2019-12-22 08:33:11 +00:00
Oliver Gorwits 4268fff785 #681 Add href link to a device in a report 2019-12-21 23:08:02 +00:00
Oliver Gorwits 4030000b34 #687 Add an option to set main page after logging in 2019-12-21 22:24:19 +00:00
Oliver Gorwits 0e8f9ad194 release 2.044003 2019-10-15 18:56:11 +01:00
Oliver GorwitsandGitHub 4e3bfee214 Add TACACS+ support per #660 (#662) 2019-10-15 18:23:51 +01:00
Oliver GorwitsandGitHub ecc9c6f209 sort the os_ver in the web interface (#663) 2019-10-15 18:23:34 +01:00
nick nandOliver Gorwits 2b666dd445 jquery security fix for CVE-2019-11358 (#655)
https://nvd.nist.gov/vuln/detail/CVE-2019-11358#vulnCurrentDescriptionTitle
since we are some versions (jq 1.9.1 or something close to that according to the source) behind the last release of the 1.x train (1.12.4) the patch was not compatible, so the file has been manually edited to apply the needed changes

jquery 1.12.4 official patch:
https://github.com/DanielRuf/snyk-js-jquery-174006/blob/master/jquery-1.12.4.min.patch
2019-10-05 12:19:36 +01:00
Oliver Gorwits bd29c0735c #654 Port list is not sorting numerically 2019-09-26 14:56:08 +01:00
Oliver Gorwits deb9b62c7f Enforce escaping on all template content 2019-09-23 14:22:00 +01:00
Oliver Gorwits 5f378a39ea better column titles 2019-09-23 14:05:04 +01:00
Christian RamseyerandOliver Gorwits 8ffdff3bbc Add speed_admin to device ports tab (#650) (#653)
* Add speed_admin to device ports tab (#650)

* move from device_port_properties to device_port table, and tidy up
2019-09-23 13:58:26 +01:00
Christian Ramseyer 8edbd515e7 Store i_speed_admin (#650) 2019-09-19 14:11:04 +02:00
pyro3dandGitHub 73e9f0bf0d Add DOCSIS/Cable Modem Discovery (#646)
* Add DOCSIS/Cable Modem Discovery
2019-09-18 16:19:18 -07:00
nick nandGitHub 4399705217 missing semicolon 2019-09-03 23:54:39 +02:00
Oliver Gorwits bb7801d5d7 #638 avoid page reload on admintask data updates 2019-09-03 14:02:08 +01:00