GithubHelp home page GithubHelp logo

kihahu / hiera_awssm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from possible-fin/hiera_awssm

0.0 2.0 0.0 13 KB

Hiera AWS Secrets Manager backend

License: GNU General Public License v3.0

Ruby 100.00%

hiera_awssm's Introduction

hiera-awssm: Hiera AWS Secrets Manager Backend

Overview

Allows Puppet to read string secrets from AWS Secrets Manager. Supports returning secrets wrapped with Sensitive() to force proper handling.

Requirements

  • Hiera 5 (Puppet 4.9+)
  • AWS Instance Profile allowing secretsmanager:GetSecretValue.

Environment variables likely also work, but are untested and not recommended.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "",
            "Effect": "Allow",
            "Action": "secretsmanager:GetSecretValue",
            "Resource": "arn:aws:secretsmanager:*:*:secret:puppet_secrets/*"
        }
    ]
}
  • aws-sdk-secretsmanager gem installed in Puppet JRuby environment
puppetserver gem install aws-sdk-secretsmanager

or, with Puppet:

package { 'aws-sdk-secretsmanager':
  ensure   => 'installed',
  provider => 'puppet_gem'
}

Installation

Install the module in your environment. The Hiera function will be created by Puppet.

Configuration

- name: "AWS Secrets Manager"
  lookup_key: "hiera_awssm"
  options:
    confine_to_keys:
      - "^puppet_secrets/.*"
    proxy_uri: "http://myproxy:8080"
    region: "us-east-1"
    sensitive: true

name Required: Anything you want. :)

lookup_key Required: Must be hiera_awssm.

region Required: AWS region for Secrets Manager.

sensitive: Required: Set to true to return secrets wrapped in Sensitive()

confine_to_keys Optional: Only lookup keys matching list of regexes for efficiency.

proxy_uri Optional: Proxy URI for accessing AWS API.

hiera_awssm's People

Contributors

internetstaff avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.