Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

RSS

rotate-passwords (2) Versions 1.0.1

Installs/Configures rotate-passwords

Berkshelf/Librarian
Policyfile
Knife
cookbook 'rotate-passwords', '~> 1.0.1'
cookbook 'rotate-passwords', '~> 1.0.1', :supermarket
knife cookbook site install rotate-passwords
knife cookbook site download rotate-passwords
README
Dependencies
Changelog
Quality

rotate-passwords Cookbook

Build Status

Table of Contents

  1. Overview
  2. Requirements
  3. Usage
  4. Contributing
  5. License & Authors

Overview

This cookbook provides a custom resource that allows you to automatically rotate the password for a local user after it has aged past a pre-determined time and store those passwords in Chef Vault.

Requirements

Requires Chef 12.5 or later as this cookbook makes use of Custom Resources.

Usage

rotate_password

For each user you want to rotate the password for you must declare a rotate_password resource.

Each rotate_password has the following attributes:

Attribute Type Description Default
name String or Symbol Resource name. N/A
max_age Integer How old the defined user's password can be before it is rotated. 30
password_length Integer The length of the randomly generated password. 30
vault_name String Name of the Vault passwords should be stored in. vault-passwords
vault_admins String or Array A comma seperated string or Array of Vault admins. N/A

To rotate the password of the root user for example:

rotate_password 'root' do
  vault_admins ['jbloggs', 'mrossi']
end

Contributing

If you would like to contribute to this cookbook please follow these steps;

  1. Fork the repository on Github.
  2. Create a named feature branch (like add_component_x).
  3. Write your change.
  4. Write tests for your change (if applicable).
  5. Run the tests, ensuring they all pass.
  6. Submit a Pull Request using Github.

License and Authors

License: BSD 2-clause

Authors:

Props to this cookbook for showing how to use Test Kitchen with Chef Vault.

Dependent cookbooks

chef-vault >= 1.2.5

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

2016-04-08 (v1.0.1)

Summary

Multiple bugfixes and typos in docs.

Bugfixes

  • Fix typos in attribute descriptions for roatte_password in the docs.
  • Fix usage of user provided name inside the rotate_password resource.
  • Fix search to consistently use the name node attribute in the rotate_password resource.

2016-02-10 (v1.0.0)

Summary

Initial release.

Features

  • Provides resource for rotating a user's passwords.
    • Can define how old a password can be before it is rotated.
    • Define the length of the randomly generated password.
    • Define the Vault that should be used to store the password.
    • Define the Admins that can access the vaulted password.

Collaborator Number Metric
            

1.0.1 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

1.0.1 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

1.0.1 failed this metric

FC039: Node method cannot be accessed with key: rotate-passwords/resources/rotate_password.rb:26
Run with Foodcritic Version 11.1.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

1.0.1 failed this metric

rotate-passwords does not have a valid open source license.
Acceptable licenses include Apache-2.0, apachev2, Apache 2.0, MIT, mit, GPL-2.0, gplv2, GNU Public License 2.0, GPL-3.0, gplv3, GNU Public License 3.0.

No Binaries Metric
            

1.0.1 passed this metric

Publish Metric
            

1.0.1 passed this metric

Supported Platforms Metric
            

1.0.1 passed this metric

Testing File Metric
            

1.0.1 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

1.0.1 passed this metric