Repository navigation
Releases: yoborj/greenlight
Releases · yoborj/greenlight
Release list
Greenlight 0.3.0
Added
- Custom login URL on the Security tab (off by default), the job WPS Hide Login does: the login page
moves to/<login_slug>/;wp-login.phpshows the theme's 404;/loginand/adminno longer lead
to it; logged-out visits to wp-admin go to/404/. Login, logout, lost-password and reset-email links
all use the new address; admin-ajax.php, admin-post.php and password-protected posts keep working.
The default address is/backend-login/(login_slug); an empty address, or a reserved word such as
loginoradmin, falls back to it. WPS Hide Login is listed as an overlapping
plugin while both are on.wp greenlight set hide_login 0undoes it from the command line. wp greenlight statusshows the login page address.
Changed
- The settings tabs are a little more compact, so all eight fit on a 1440px screen; on narrower screens
the open tab scrolls into view. - Baseline counts read "1 domain" / "no domains yet" instead of "domain(s)".
- README screenshots show 0.3.0 and the Security tab.
Unchanged
wp greenlight security --format=json(schema 1). The newhide_loginsetting is not in its
features.
Greenlight 0.2.0
Added
- Security tab, one switch per feature. The Security tab ignores the master switch and
?greenlight=off.- Security headers on front-end pages:
X-Content-Type-Options,Referrer-Policy,X-Frame-Options,
Permissions-Policy(camera, microphone, geolocation off). Headers already sent by the host, theme or
another plugin win. - HSTS (off by default, max-age 300 seconds to start) and a Content Security Policy in report-only mode
(never enforced: Greenlight's delayed-script loader has no nonce). - Hide usernames from logged-out visitors:
?author=Nredirects home, no/wp/v2/usersREST routes, no
core users sitemap, no author in oEmbed. The block editor keeps working. - XML-RPC off (
xmlrpc.phpanswers 403), with a warning when Jetpack is active. - File editor off (
DISALLOW_FILE_EDIT, unless wp-config.php sets it). - Email addresses encoded with
antispambot()in page text andmailto:links. - Application passwords off (off by default).
- Security headers on front-end pages:
- Alerts, off by default, emailed to a configurable address (default: the site admin email), listed on
the Security tab:- Admin changes: new or promoted administrators, plugins installed or activated, theme switched.
- Script drift: a baseline of external script domains, then one alert per new domain, named and rated
by Greenlight's script lists. Reset baseline button. - Daily core file check against the WordPress.org checksums (like
wp core verify-checksums), plus PHP
files in uploads. Runs in short batches. - Content check: flags only what an update added (scripts, embeds, inline code, external forms,
redirects, links hidden on purpose); trusts the launch baseline and known embed domains; severity by
whether the editor hasunfiltered_html; direct database writes are always high; editable spam words
raise severity. "Trust this domain" button.
wp greenlight security [--format=json]with--reset-baseline,--trust=<domain>,--run-checks
and--clear-alerts. The JSON shape (schema 1) is a contract for the QA app; see the README.- Every Security key works with
wp greenlight set.
Changed
?greenlight=offand pausing Greenlight turn off the speed features only; Security stays on.- Release zips are built with
git archivefrom the tag (docs and dotfiles excluded).
Upgrading
- Switched on by default: security headers, hide usernames, XML-RPC off, file editor off, email
obfuscation. On a site that uses Jetpack or the WordPress mobile app, switch off XML-RPC off.