Commit Graph

324 Commits

Author SHA1 Message Date
Oliver Gorwits
ef4e3f5181 explicitly use SameSite=Lax Cookie Attribute for dancer.session cookies 2023-06-28 16:39:24 +01:00
Oliver Gorwits
39562e0633 avoid CSS vulnerability in Job Queue page 2023-06-28 11:26:43 +01:00
Oliver Gorwits
8e0aa3a309 #975 RBAC for port control with new portctl_by_role setting 2023-06-28 10:00:01 +01:00
Oliver Gorwits
2cbb68889a #975 RBAC for port control with new portctl_by_role setting 2023-06-27 22:52:04 +01:00
Oliver Gorwits
bb046f036e tune the portvlanmismatch and include domain name in report view 2023-06-19 21:28:23 +01:00
Oliver Gorwits
f14e495e49 use new faster portvlanmismatch query without duplication 2023-06-13 17:41:20 +01:00
Oliver Gorwits
1aef847af3 add "phone" to phone_platforms default config for additional phones not using capabilities 2023-06-08 16:14:20 +01:00
Oliver Gorwits
b5a8f685ab add missing validate_remote_user default to config 2023-06-08 16:14:20 +01:00
Christian Ramseyer
5d6697b035 Add indexes for custom_fields in device + device_port (#1045) 2023-06-08 16:12:59 +01:00
Oliver Gorwits
3b4236ed90 fix mistaken release with device ports partial search default as on 2023-06-06 07:03:54 +01:00
Oliver Gorwits
339ecd429a #1038 ability to set "partial" default "on" in device ports sidebar 2023-06-05 17:50:32 +01:00
Oliver Gorwits
4391d60b99 upgrade jquery to 1.12.4 to fix XSS vuln 2023-06-05 17:37:57 +01:00
Oliver Gorwits
195f98dff1 make safe the api calls with potential for demo site damage 2023-06-05 17:28:34 +01:00
Oliver Gorwits
01928fa85d #1037 add new names for vlan 1003 and 1005 in Cisco-land 2023-05-31 20:10:38 +01:00
Oliver Gorwits
ac959ff6a6 add links for API, config, sponsor, to user menu 2023-05-31 17:35:43 +01:00
Oliver Gorwits
11bca7b80e add links for API, config, sponsor, to user menu 2023-05-31 14:46:46 +01:00
Oliver Gorwits
949aeb9eea delete hook (#1032)
* make log_message optional in delete_device

* add hooks support to delete job

* make delete job high prio

* web delete now queues job instead of inline delete

* move web logging into web package and remove userlog from device delete helper

* submit delete job for expire device instead of inline delete

* fixes to get web submit form for delete device to work

* enable delete hook functionality
2023-04-30 22:58:42 +01:00
Oliver Gorwits
e268b9d522 #1010 Search port descriptions 2023-04-03 22:02:43 +01:00
Oliver Gorwits
5baad7311d fix cosmetic bug in search text strikethrough when in tenant 2023-04-03 21:44:28 +01:00
Oliver Gorwits
d73ca69b82 Merge remote-tracking branch 'origin/master' 2023-03-16 11:34:08 +00:00
Oliver Gorwits
653ea75935 always make a sidebar for custom reports with bind params; add show_sidebar setting 2023-03-16 11:32:36 +00:00
Oliver Gorwits
4de2a916fc fix nonimpacting error in template html 2023-03-16 11:31:34 +00:00
Oliver Gorwits
1d988bbf7c implement ignore_layers, force_macsuck, force_arpnip config settings (#1002)
* implementation of ignore_layers, force_macsuck, force_arpnip and macwalk

* use new WalkJobs view to get devices needing macsuck

* also new query for discoverall, arpwalk, nbtwalk

* faux record has a last_defer stamp so we can see when the backend started

* fix typo
2023-03-15 14:44:42 +00:00
Oliver Gorwits
67a6e6560d better term 2023-03-09 21:03:13 +00:00
Oliver Gorwits
9fd1e71b8b #974 show all chassis serials in device details 2023-03-08 22:56:18 +00:00
Oliver Gorwits
3ee0c7692c #991 Recently Added Devices report 2023-03-07 20:42:20 +00:00
Oliver Gorwits
2848877d74 #977 add comment to netdisco-do renumber about device_identity 2023-03-07 20:15:54 +00:00
Oliver Gorwits
1505a8637b #952 support user-supplied net-snmp options in SNMP Transport 2023-03-07 18:17:30 +00:00
Oliver Gorwits
02537fbfba #921 IPs on Multiple Devices report 2023-03-06 21:37:10 +00:00
Oliver Gorwits
c033687ec1 #921 Devices with Multiple Addresses report 2023-03-06 17:14:03 +00:00
Oliver Gorwits
1d00ebc91e #949 inconsistencies in time values due to time zone handling 2023-03-03 15:01:06 +00:00
Oliver Gorwits
692a797f7c #478 csv 2023-02-25 16:54:04 +00:00
Oliver Gorwits
252c9c7e66 #478 rewrite wireless client count report which was bobbins 2023-02-25 14:07:44 +00:00
Oliver Gorwits
4e6f143dec #933 separate Duplex port info into running and configured columns 2023-02-24 14:57:00 +00:00
Oliver Gorwits
c9a4c1404a #956 numberic interpretation error in Node MAC search template 2023-01-11 15:07:12 +00:00
Oliver Gorwits
3b8360d580 reorder ports csv cols to match device ports tab 2022-12-13 15:01:21 +00:00
Oliver Gorwits
c82dfc8a10 #948 Column order wrong when displaying custom fields 2022-12-13 11:30:36 +00:00
Christian Ramseyer
8cc8bdcd19 Add NAC columns to UI (#941)
* Add NAC columns to UI

* Compact variant with a "NAC Summary" column

* display PAE stuff as very short summary in web and full columbs in csv

* add tooltips for actual port status and state detail

* minor naming tweaks

Co-authored-by: Oliver Gorwits <oliver@cpan.org>
2022-12-13 09:16:32 +01:00
Oliver Gorwits
93bf427f05 show PostgreSQL version in red if < 9.6 2022-12-10 14:58:24 +00:00
Oliver Gorwits
2433439a45 show PostgreSQL version in red if < 9.6 2022-12-09 22:37:00 +00:00
Oliver Gorwits
5a7250396e show PostgreSQL version in red if < 9.6 2022-12-09 22:09:51 +00:00
Oliver Gorwits
1c7c749f0e custom fields on devices and ports in the web from config (#945)
* custom device field web display and edit

* make display work; relies on T::T calling dict slot or method with same syntax

* add storing port custom fields

* use resultset method instead, use cf_ prefix

* update Pg min ver for jsonb

* allow override of position and default for port custom fields

* support hidden for custom fields

* update description of Objects API class

* allow left and mid position for custom fields

* add custom fields in csv

* change port control sidebar label

* fix default missing bug on backend jobs
2022-12-09 10:20:26 +00:00
Oliver Gorwits
7f3e9485f9 #943 search fields HTML5 type "search" to allow clearing 2022-11-28 20:07:47 +00:00
Oliver Gorwits
8cdb4890db #943 Add clearbutton to searchbar 2022-11-28 17:25:33 +00:00
Oliver Gorwits
826e1db39d API Endpoints to submit arpnip and macsuck results (#942)
* Add macsuck worker to collect various PortAccessEntity (NAC) attributes

* Incorporate PAE feedback on #937

 * missing Result/Device.pm column added
 * pae_is... columns instead of pae_capabilities
 * moved most code to Util/PortAccessEntity.pm so the update can
   be done in discover and macsuck

* Refactor PAE attributes during discover as separate Plugin

* PortAccessEntity: don't use device->dns in log string

* Fix "Experimental keys on scalar is now forbidden" test failure

* Revamp pae_control and add missing attribute

 - device.pae_control (text) is now device.pae_is_enabled (bool)
 - also store pae_authconfig_port_control (port mode auto/force(un)Auth)

* Fix "Experimental keys on scalar is now forbidden" test failure

 - ... again because of botched merge
 - at least perlgolfed away a set of curly braces

* Update PortAccessEntity.pm

* Incorporate @ollyg PR feedback

* allow actions without transport to run when there are also no creds

* initial refactor for separate gather, process, store phases for macsuck

* factor out the vlan sanity check

* additional help with log of action workers

* cleanup logic in check macsuck

* refactor to make main phases only

* some fixes

* implement file slurp. amazingly the whole thing works

* remove outdated noop from test

* treat error as critical, use cancel to suppress further drivers

* big refactor to share mac sanity code to both paths

* fix inverted logic on vlan sanity filter

* some code tidy

* fix error in default value

* fix for vlan 0 nodes input from cli

* ensure imported MACs are IEEE format

* add api endpoint, no useful return status yet

* exit status if error from nodes PUT

* suppress other networked workers when direct workers are active

* better log showing worker

* fix status recording to get first error or last done message

* implement arpnip API PUT

* avoid package redeclaration error

* make sure write API methods require admin status

* add doc for passing JSON data to arpnip and macsuck

* update manifest

* remove option to do jobs in web handler; all by queue now

* use job entry timestamp for offline queued jobs

* fix store username and IP on api PUT

* never de-duplicate user-submitted jobs; never reset DeviceSkip for offline jobs

* myworker no longer needed

* make logic cleaner

Co-authored-by: Christian Ramseyer <ramseyer@netnea.com>
2022-11-25 15:24:23 +00:00
Oliver Gorwits
0e9ff81cf5 Add worker to collect various PortAccessEntity (NAC) attributes (PR #937, partially implements #887)
* Add macsuck worker to collect various PortAccessEntity (NAC) attributes

* Incorporate PAE feedback on #937

 * missing Result/Device.pm column added
 * pae_is... columns instead of pae_capabilities
 * moved most code to Util/PortAccessEntity.pm so the update can
   be done in discover and macsuck

* Refactor PAE attributes during discover as separate Plugin

* PortAccessEntity: don't use device->dns in log string

* Fix "Experimental keys on scalar is now forbidden" test failure

* Revamp pae_control and add missing attribute

 - device.pae_control (text) is now device.pae_is_enabled (bool)
 - also store pae_authconfig_port_control (port mode auto/force(un)Auth)

* Fix "Experimental keys on scalar is now forbidden" test failure

 - ... again because of botched merge
 - at least perlgolfed away a set of curly braces

* Update PortAccessEntity.pm

* Incorporate @ollyg PR feedback

Co-authored-by: Christian Ramseyer <ramseyer@netnea.com>
2022-11-04 10:03:26 +01:00
Oliver Gorwits
893c0abdef add space in enum references in snmp node descr 2022-10-18 13:09:27 +01:00
Oliver Gorwits
2a35a0bc56 #936 user auth method should be drop-down 2022-10-18 11:50:12 +01:00
nick n
a9b2589624 fix ordering to match headers, could be fallout from pr902 or adding ifindex (#931) 2022-10-04 10:53:57 +01:00
Oliver Gorwits
f1f4659d0d show canonical IP in Device Details tab 2022-09-24 22:37:35 +01:00