Skip to content

Commit

Permalink
Remove pmc-sso JWT secret from trimmed database (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethitter authored Oct 9, 2024
1 parent a7e23a9 commit 78ace7e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions classes/class-customizations.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

use PMC\Global_Functions\Traits\Singleton;
use PMC\Global_Functions\VIP_Go_Sync_Cleanup;
use PMC\SSO\Utilities\JWT;
use WP_CLI;
use WP_User;

Expand Down Expand Up @@ -98,6 +99,12 @@ public function remove_sensitive_data(): void {
);

VIP_Go_Sync_Cleanup::get_instance()->do_cleanup();

/**
* The JWT secret is not handled by the `VIP_Go_Sync_Cleanup` because
* the value must be available to all non-production environments.
*/
delete_option( JWT::OPTION_NAME_SECRET );
}

/**
Expand Down

0 comments on commit 78ace7e

Please sign in to comment.