GovReady / GovReady-WordPress-Agent

Plugin for WordPress to assist with compliance
GNU Affero General Public License v3.0
5 stars 2 forks source link

GovReady

GovReady provides a dashboard and tools to enhance security for government websites and achieve FISMA compliance.

Note: This plugin is currently under active development and should not be used on production websites.

Overview

The GovReady Agent monitors your WordPress site, domain, and ssl certificate to ensure that you are following current security best-practices.

The GovReady Dashboard gives you a shared, easy-to-digest overview of the status of security on your website, including:

screenshot of GovReady WordPress dashboard

Requirements

Installation

NOT RECOMMENDED FOR PRODUCTION - UNDER ACTIVE DEVELOPMENT

This plugin code is under active development and has not been fully vetted for reliability or security.

That said, here is how to install the plugin and on say, your test blog.

  1. Download a zipped version of this repo.
  2. Open your WordPress blog in your browser.
  3. Log into WP admin page and navigate to "Plugins."
  4. Click "Add New."
  5. Click "Upload Plugin."
  6. Select the zipped version of this rep that you downloaded in step 1 and click "Install Now." (OS X automatically uncompresses a zipped file, so first compress the downloaded folder GovReady-WordPress-Agent-master to get GovReady-WordPress-Agent-master.zip to upload.)
  7. Enter your FTP credentials if prompted.
  8. Activate the plugin.

Developing

To delete the token and force re-authentication, run this wp-cli command:

wp option delete govready_options

Making calls to the GovReady API

http://localhost:8080/wp-admin/admin-ajax.php?action=govready_proxy&endpoint=/initialize&method=POST
jQuery.get(
  ajaxurl, 
  {
    'action': 'govready_proxy',
    'endpoint': '/sites/' + govready.siteId
  }, 
  function(response){
    console.log('Data from the api', response);
  }
);

Example calls to the API