Forge Home

appcanary

A module for appcanary

23,048 downloads

5,735 latest version

1.9 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.2.0 (latest)
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.1.0
released Jun 14th 2017

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'appcanary-appcanary', '0.2.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add appcanary-appcanary
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install appcanary-appcanary --version 0.2.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download
Tags: security

Documentation

appcanary/appcanary — version 0.2.0 Jun 14th 2017

puppet-appcanary

Table of Contents

  1. Description
  2. Setup - The basics of getting started with Appcanary
  3. Usage
  4. Reference
  5. Limitations
  6. Development

Description

Appcanary is a security service that monitors your infrastructure for security vulnerabilities. This module will manage the agent on your hosts.

You'll need to provide the module with your API key and a list of paths to monitor.

Setup

Setup Requirements

The Appcanary agent package is hosted on packagecloud.io, so be sure to grab computology/packagecloud from the Forge. You can just add the following to your Puppetfile:

mod 'computology/packagecloud'

Beginning with Appcanary

You'll need your API key from https://appcanary.com/settings. With that in hand this will get you started:

class { '::appcanary':
  api_key: yourapikeyhere
}

Usage

To have Appcanary monitor the gems in your Ruby application for vulnerabilities you need to provide a path to your Gemfile.lock:

class { '::appcanary':
  api_key: yourapikeyhere
  paths:
    - /path/to/your/Gemfile.lock
    - /a/different/Gemfile.lock
}

Reference

Classes

Public Classes

  • appcanary: Main class, includes all other classes.

Private Classes

  • appcanary::prereq: Installs the packagecloud.io repository where Appcanary resides
  • appcanary::install: Installs Appcanary
  • appcanary::config: Configures Appcanary
  • appcanary::service: Ensures Appcanary runs

Parameters

The following parameters are available in the ::appcanary class:

####api_key Specifies your API key. Get yours from https://appcanary.com/settings

####paths Specifies the paths to your Gemfile.locks

Limitations

Only tested on Ubuntu Trusty so far. Should work on any platform supported by the packagecloud.io module and by Appcanary itself.

Development

Contributions are welcome anytime. Open issues or send pull requests.