Skip to content
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

[WP][SR] Dedicated "Privacy & security" section under "Configuration" #3624

Open
klonos opened this issue Mar 26, 2019 · 24 comments
Open

[WP][SR] Dedicated "Privacy & security" section under "Configuration" #3624

klonos opened this issue Mar 26, 2019 · 24 comments

Comments

@klonos
Copy link
Member

klonos commented Mar 26, 2019

I would like us to have a dedicated "Security" admin page and a respective Admin menu item in order to:

  • show that we take security seriously
  • allow site admins to perform security-related tasks in one single place
  • provide a "home" for security-related contrib modules

Ideas for this page include:

Other ideas:

@jenlampton
Copy link
Member

jenlampton commented Apr 4, 2019

Interesting. I've also been thinking that I wanted to move "Development" up to the top level... how would you feel about "Development" > "Security" (or admin/development/security) for the security page? It would be second level but still easy to find.

@klonos
Copy link
Member Author

klonos commented Apr 5, 2019

I've also been thinking that I wanted to move "Development" up to the top level

Yeah, this is already done if you install the devel module, resulting in 2 "Development" menu items, a top-level one, and one under "Configuration" (backdrop-contrib/devel#43). I think that we should merge these, and I agree that we should move "Development" to become top level.

how would you feel about "Development" > "Security"

Hmm, I would actually prefer "Security" under "Configuration", because that does not seem to be an exclusively dev-related topic to me.

In fact, I would also rather that "Performance" was moved out of "Development", and then have both "Security" and "Performance" live under "Configuration" > "System"

So, to sum up:

@jenlampton
Copy link
Member

jenlampton commented Apr 28, 2019

and then have both "Security" and "Performance" live under "Configuration" > "System"

What's the value of System here? ...although, it does provide context. "System security" and "System updates" both seem logical.

and then have both "Security" and "Performance" ...

Hold on, Performance? Disabling caching is definitely a developer-only task. Why move that out of the devel section?

@jenlampton jenlampton changed the title [META] Dedicated "Security" section in the admin UI [SR] Dedicated "Security" section in the admin UI Apr 28, 2019
@jenlampton
Copy link
Member

What's the value of System here?

I just want to add here what I mentioned in the issue about the updates link ...

I object to using system because that's sort of a cop-out "other" category, where we put things that we can't figure out where else to put. I never know what's in there, and I never look there for anything important.

If we do start to put things there that aren't "Other" things, we should really define what System means first so we know if we are using it correctly :)

@klonos
Copy link
Member Author

klonos commented Jun 15, 2019

Fair enough, how about this then?:

@jenlampton
Copy link
Member

jenlampton commented Jun 16, 2019 via email

@klonos klonos changed the title [SR] Dedicated "Security" section in the admin UI [SR] Dedicated "Security" section under "Configuration" Jun 16, 2019
@klonos
Copy link
Member Author

klonos commented Jul 3, 2019

I have added https://www.drupal.org/project/security_review to the list of ideas:

image

@klonos
Copy link
Member Author

klonos commented Jul 16, 2020

Here's what's in the recent v5.4 of WordPress (I really like how each item is denoted as either a security or a performance issue):

screencapture-demos2-softaculous-WordPresskmfw797kdo-wp-admin-site-health-php-2020-07-16-05_00_49

Passing checks are collapsed by default, to reduce clutter on that page. Here's a screenshot of what other checks are included, with some of them expanded:

Screen Shot 2020-07-16 at 5 04 28 am

@klonos klonos changed the title [SR] Dedicated "Security" section under "Configuration" [WP][SR] Dedicated "Security" section under "Configuration" Jul 16, 2020
@jenlampton
Copy link
Member

jenlampton commented Jul 16, 2020

Interesting, I wonder if we could add the same kind of categorization to items on our status report. I suspect we may have way too many categories :)

I've been using Security Review on a handful of my sites, and I'm actually finding it not that helpful. There are a few checks that throw false positives, whereas similar checks we already have in core are (mostly around file permissions) are more accurate. I do think there are a few good ones though, and we should consider incorporating those into our status report.

@yorkshire-pudding
Copy link
Member

I agree with this proposal. Security review can be quite helpful, though I think there is one test that is particularly unhelpful.

Other modules prevent username and/or password enumeration which might be worth mentioning.

@stpaultim
Copy link
Member

@alanmels just opened a similar issue and closed it, I think it because of this existing issue.

This seems like a good idea and I think Alan's suggestion is consistent with what was being discussed here. I think we just need a PR to get this issue moving again.

One thing seems a bit tricky to me: the security / anti-spam modules in the example are contrib. How can we evaluate in core, which modules belong to that section? For example: do all anti-spam modules belong there? So we might also consider this a contrib candidate?

Isn't the point here to create a section where security / anti-spam modules can list themselves? I think that core can provide the section, but each modules decides on it's own where to put it's menu link. Don't we just want to provide a good place for them to go. Once a section exists, we can submit PR's to obvious candidates for this section to move their menu link.

I would just like to clarify if this issue is about a "Security Page" or a "Security Section" under Configuration - as the title suggests? These are two different ideas.

@alanmels
Copy link

alanmels commented Jun 2, 2022

I believe this issue should be revived and a new Security section must be implemented.

@indigoxela
Copy link
Member

So maybe the first things to figure out here:

  1. What should go to that section (core settings, modules...)
  2. How to get contrib/custom modules in there (hook or create dedicated "tags" for info files?)
  3. What it should look like (informative, but not overwhelming...)
  4. Maybe clearly define the target audience, so we can properly address them

^^ That's random order and probably incomplete. 😉

@alanmels
Copy link

alanmels commented Jun 2, 2022

@indigoxela look at this line https://github.com/backdrop-contrib/protected_forms/blob/72a1100447dda575c5326b1ba5c2a5366482888f/protected_forms.module#L25 When implementing the hook_meu() contributed modules have to choose between different sections, so in this particular case the Content section was chosen due to absence of more appropriate section.

So there is no issue here about doing anything additional. Both core or contributed modules would be able to place configuration links in the section if they are about security.

It would look like the screenshot on #5639

@indigoxela
Copy link
Member

... hook_menu ...

Ah, now I get it. But wouldn't that force all contrib modules that should show up in that section to change their hook_menu implementation?

Maybe the path was chosen by intention. For instance under admin/config/content for content authoring related modules or admin/config/people for user account related modules? Stuffing them all under the same path (also admin menu) could be very confusing.

@alanmels
Copy link

alanmels commented Jun 2, 2022

Maybe the path was chosen by intention. For instance under admin/config/content for content authoring related modules or admin/config/people for user account related modules? Stuffing them all under the same path (also admin menu) could be very confusing.

Right, but where modules like Protected Forms or Honeypot should go if they are not exactly about content authoring? They are about security, spam-prevention.

@alanmels
Copy link

alanmels commented Jun 2, 2022

And I wonder why there is separate Search section, when Search settings link could be placed in the System section? Are there also lots of Web services modules to have their own section? More than the modules about security, protection and spam-fighting? I don't think so. You see, we inherited the structure of the Configuration page (admin/config) from Drupal and never updated it according to new trends, needs. Imo, security and protection modules are more important to have their own section than Web Services with a single RSS publishing link there.

@ghost
Copy link

ghost commented Jul 3, 2022

I'd love to see a new 'Privacy and Security' section under Configuration:

image

I think the blocker is not having anything to put there yet... If/when one of the linked features in the OP gets merged, we can add this section and move its UI there. But until then, there's not much point having a blank section of the menu.

@klonos
Copy link
Member Author

klonos commented Sep 26, 2022

I think the blocker is not having anything to put there yet ...

There are some things from the OP that we can put there + I'm hoping that #4696 will get merged soon (it is a Backdrop adaptation of a D7 backport of a feature that was introduced in D9.2.x).

@klonos
Copy link
Member Author

klonos commented Mar 4, 2023

Saw this (from the Samsung One UI page) and liked the visual/aesthetics:
image

Putting it here for inspiration.

@ghost
Copy link

ghost commented Mar 4, 2023

and licked the visual/aesthetics

How'd they taste? 😄

@klonos
Copy link
Member Author

klonos commented Mar 4, 2023

🤣 🤣 🤣

Surprised you didn't mention the "fro me the" ...I have my days with typing, don't I?

@yorkshire-pudding
Copy link
Member

Oh how issue threads grow. I haven't read everything yet. But, what are the pros and cons of honeypot over antibot module? Should this be a separate issue or a forum question?

@izmeez - forum really; that's not a question about core and not the focus of this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants