nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.16k stars 4.03k forks source link

Update admin/overview to link to my server's specific security scan results #39617

Open mjmccarn opened 1 year ago

mjmccarn commented 1 year ago

How to use GitHub

Is your feature request related to a problem? Please describe.

Describe the solution you'd like "our security scan" on the admin overview page should link directly to the server's results

This can be done by:

  1. Add a config variable in config/config.php to hold the scan results details
  2. Update apps/settings/templates/settings/admin/overview.php to include the scan results details if configured
  3. Update occ support:report to consider 'scanresult' a sensitive value (not covered here)

Proof of Concept

Optimally

Suggested alternative language:

Describe alternatives you've considered This could also be addressed by making changes to both the web server at scan.nextcloud.com and the admin/overview hyperlink to securely pass a servername value (perhaps overwritehost) to the scan server search box

joshtrichards commented 1 year ago

Hi @mjmccarn - Interesting idea, but:

More admins would follow this practice if the scan URL from admin/overview went directly to the specific results for each server.

Do you really think admins that aren't inclined to type their own URL in at https://scan.nextcloud.com after clicking the existing link are going to jump through an extra setup step to add the special UUID? I have my doubts. :-)

I do think being able to direct link to an auto-filled in target URL field and/or call the underlying scan.nextcloud.com API would be a convenient addition. Unfortunately overwritehost isn't always in-use (configured), and there could be multiple trusted_domains so we'd probably guess the "right" external URL about as much as we'd guess it wrong.

mjmccarn commented 10 months ago

Do you really think admins that aren't inclined to type their own URL in at https://scan.nextcloud.com after clicking the existing link are going to jump through an extra setup step to add the special UUID? I have my doubts. :-)

Actually yes, I do.

The difference is between taking an extra step once, when time permits, vs taking an extra step over and over and over - sometimes when time pressure is high.

My nextcloud upgrade procedure requires me to update (and record) the scan results with every point-level upgrade. Since the scan became available I have only missed re-scanning when time pressure got in the way.

joshtrichards commented 10 months ago

Fair enough. Can you send along your proof of concept as a PR so it can be considered for merge? Doesn't have to be perfect - it'll get reviewed and we won't be shy about making suggestions. :-)