2017 © Pedro Peláez
 

library drutiny

This is a generic Drupal 7 and Drupal 8 site auditing and optional remediation tool.

image

drutiny/drutiny

This is a generic Drupal 7 and Drupal 8 site auditing and optional remediation tool.

  • Sunday, July 29, 2018
  • by wiifm
  • Repository
  • 12 Watchers
  • 51 Stars
  • 4,014 Installations
  • PHP
  • 8 Dependents
  • 0 Suggesters
  • 25 Forks
  • 20 Open issues
  • 21 Versions
  • 60 % Grown

The README.md

Drutiny - automated site auditing

Drutiny logo, (*1)

CI Latest Stable Version Total Downloads Latest Unstable Version License, (*2)

A generic Drupal site auditing and optional remediation tool., (*3)

Installation

This repository is a baseline frame and not recommended to install by itself unless you're planning on building your own auditing tool based on top of Drutiny., (*4)

You can install Drutiny into your project with composer., (*5)

composer require drutiny/drutiny ^3.6.0

Drutiny has native target support for Git and Drush. If you wish to use these types of targets, you must install the underlying software., (*6)

Usage

Drutiny is a command line tool that can be called from the composer vendor bin directory:, (*7)

./vendor/bin/drutiny

Finding targets to audit

Drutiny has a number of connectors that allow you to discover and access "Targets" to audit. Use the target:sources command to learn which sources are available., (*8)

./vendor/bin/drutiny target:sources`

When supported by the target source, use the target:list command to list all the available targets from a given source:, (*9)

# List all available targets through DDEV.
./vendor/bin/drutiny target:list ddev

Finding policies available to run

Drutiny comes with a policy:list command that lists all the policies available to audit against., (*10)

./vendor/bin/drutiny policy:list

Policies provided by other packages such as drutiny/plugin-distro-common will also appear here, if they are installed., (*11)

Installing Drutiny Plugins

Additional Drutiny policies, audits, profiles and commands can be installed with composer., (*12)

$ composer search drutiny

Running an Audit

An audit of a single policy can be run against a site by using policy:audit and passing the policy name and site target:, (*13)

./vendor/bin/drutiny policy:audit Drupal-8:PageCacheExpiry @drupalvm.dev

The command above would audit the site that resolved to the @drupalvm.dev drush alias against the Drupal-8:PageCacheExpiry policy., (*14)

Some policies have parameters you can specify which can be passed in at call time. Use policy:info to find out more about the parameters available for a check., (*15)

./vendor/bin/drutiny policy:audit -p value=600 Drupal-8:PageCacheExpiry @drupalvm.dev

Audits are self-contained classes that are simple to read and understand. Policies are simple YAML files that determine how to use Audit classes. Therefore, Drutiny can be extended very easily to audit for your own unique requirements. Pull requests are welcome as well, please see the contributing guide., (*16)

Running a profile of checks

A site audit is running a collection of checks that make up a profile. This allows you to audit against a specific standard, policy or best practice. Drutiny comes with some base profiles which you can find using profile:list. You can run a profile with profile:run in a simlar format to policy:audit., (*17)

./vendor/bin/drutiny profile:run d8 @drupalvm.dev

Parameters can not be passed in at runtime for profiles but are instead predefined by the profile itself., (*18)

Getting help

Because this is a Symfony Console application, you have some other familiar commands:, (*19)

./vendor/bin/drutiny help profile:run

In particular, if you use the -vvv argument, then you will see all the drush commands, and SSH commands printed to the screen., (*20)

Credits

The Versions

05/07 2018

1.x-dev

1.9999999.9999999.9999999-dev

This is a generic Drupal 7 and Drupal 8 site auditing and optional remediation tool.

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

by Sean Hamlin
by Josh Waihi

drupal ssh audit report drush

24/03 2018

2.x-dev

2.9999999.9999999.9999999-dev

This is a generic Drupal 7 and Drupal 8 site auditing and optional remediation tool.

  Sources   Download

GPL-2.0 GPL-2.0-only

The Requires

 

The Development Requires

by Sean Hamlin
by Josh Waihi

drupal ssh audit report drush