a8cteam51 / safety-net

Scrub options, deactivate denylisted plugins, and delete user data on development sites.
17 stars 1 forks source link

Scrub Jetpack private options #87

Closed NickGreen closed 1 year ago

NickGreen commented 1 year ago

These should probably be scrubbed: https://github.com/Automattic/jetpack/blob/8ebc502710f37f6d5e3e75740ab30492cbb1b7d2/projects/packages/connection/legacy/class-jetpack-options.php#L79-L86

NickGreen commented 1 year ago

While we're at it, let's also add this filter: add_filter( 'jetpack_offline_mode', '__return_true' );

NickGreen commented 1 year ago

Also, this option: jetpack_secrets

NickGreen commented 1 year ago

Verified on team51.blog that we can scrub the entirety of both of those options, and the effect is simply disconnecting the site from Jetpack.

NickGreen commented 1 year ago

Ultimately, we decided to not force offline mode, just scrub the options. Closed with https://github.com/a8cteam51/safety-net/releases/tag/1.4.5