inverse-inc / packetfence

PacketFence is a fully supported, trusted, Free and Open Source network access control (NAC) solution. Boasting an impressive feature set including a captive-portal for registration and remediation, centralized wired and wireless management, powerful BYOD management options, 802.1X support, layer-2 isolation of problematic devices; PacketFence can be used to effectively secure networks small to very large heterogeneous networks.
https://packetfence.org
GNU General Public License v2.0
1.39k stars 291 forks source link

Certificates page locks up browser when viewed #8317

Closed JBishopYelm closed 1 month ago

JBishopYelm commented 2 months ago

Describe the bug Browsers freeze while attempting to load the "Certificates" page. This began after rolling out to production, which has issued over 5,000 certificates. Default page behaviour tries to load 1,000 certificates, which locks up the webpage for over 5 minutes before becoming usable. After page becomes response, we can lower the # of certificates per page down to <100 and issue disappears.

To Reproduce Steps to reproduce the behavior:

  1. Go to Admin console > Configuration > Integration > PKI > "Certificates"
  2. Have large volume of issued certificates (1,000+)

Expected behavior Page loads within 10 seconds - possibly have a lower per-page view

Desktop (please complete the following information): Windows 10, 22H2 Chrome enterprise, 64-bit version 129.0.6668.59 Firefox 130.0.1 64-bit

Additional context If there are any known workarounds for this, please let us know!

JBishopYelm commented 2 months ago

Forgot to add screenshot: Webpage loading

JBishopYelm commented 1 month ago

Please disregard. I found a fix within the web console. To anyone suffering this issue:

The default configuration can be changed by editing the "preferences" on your account. Click your account name in the top right of the web GUI > preferences > Settings > look at the bottom of the page for the "preferences" section. Select the " pkiCerts::defaultsearch " value and export it. Inside of the text, there is a value of " ,"limit":1000," " - change this to what you want (e.g. 50) and import the value.