Skip to content
This repository was archived by the owner on Dec 26, 2020. It is now read-only.

Commit 3d442be

Browse files
author
Sebastian Gumprich
committed
Merge pull request #10 from hardening-io/contributing
add more descriptions
2 parents 0c9f129 + 1c2bb5d commit 3d442be

File tree

2 files changed

+89
-0
lines changed

2 files changed

+89
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Changelog
2+
3+
* implement hardening tests https://github.com/hardening-io/tests-ssh-hardening
4+
* setup test infrastructure with kitchen-ansible
5+
* travis tests

CONTRIBUTING.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# Contributor Guideline
2+
3+
This document provides an overview of how you can participat in improving this project or extending it. We are grateful for all your help: bug reports and fixes, code contributions, documentation or ideas. Feel free to join, we appreciate your support!!
4+
5+
## Communication
6+
7+
### GitHub repositories
8+
9+
Much of the issues, goals and ideas are tracked in the respective projects in GitHub. Please use this channel to report bugs and post ideas.
10+
11+
## git and GitHub
12+
13+
In order to contribute code please:
14+
15+
1. Fork the project on GitHub
16+
2. Clone the project
17+
3. Add changes (and tests)
18+
4. Commit and push
19+
5. Create a merge-request
20+
21+
To have your code merged, see the expectations listed below.
22+
23+
You can find a well-written guide [here](https://help.github.com/articles/fork-a-repo).
24+
25+
Please follow common commit best-practices. Be explicit, have a short summary, a well-written description and references. This is especially important for the merge-request.
26+
27+
Some great guidelines can be found [here](https://wiki.openstack.org/wiki/GitCommitMessages) and [here](http://robots.thoughtbot.com/5-useful-tips-for-a-better-commit-message).
28+
29+
30+
## Expectations
31+
32+
### Don't reinvent the wheel
33+
34+
This hardening project doesn't intend to reinvent the configuration stack for services. Aim to use official configuration projects first and provide hardening as a layer on top. The goal is remove the need for a user to configure all aspects of services and maintain security configuration. This way, the user can still configure a service using the interface provided by the official project.
35+
36+
* For Chef refer to the official [opscode community cookbooks](http://community.opscode.com/cookbooks).
37+
* For Puppet head to the [Puppet Forge](https://forge.puppetlabs.com/) and take a node of the Puppet supported modules.
38+
* For Ansible check the [Ansible Module Index](http://docs.ansible.com/list_of_all_modules.html)
39+
40+
These projects are generally hosted on GitHub as well.
41+
42+
In some cases, we in fact create the full rollout stack, but this is generally the exception ([os-hardening](https://github.com/TelekomLabs/chef-os-hardening), [nginx-hardening](https://github.com/TelekomLabs/chef-nginx-hardening)).
43+
44+
45+
### Be explicit
46+
47+
* Please avoid using nonsensical property and variable names
48+
* Use self-describing attribute names for user configuration
49+
* In case of failures, communicate what happened and why a failure occurs to the user. Make it easy to track the code or action that produced the error. Try to catch and handle errors if possible to provide improved failure messages.
50+
51+
52+
### Add tests
53+
54+
The security review of this project is done using integration tests.
55+
56+
Whenever you add a new security configuration, please start by writing a test that checks for this configuration. For example: If you want to set a new attribute in a configuration file, write a test that expects the value to be set first. Then implement your change.
57+
58+
You may add a new feature request by creating a test for whatever value you need.
59+
60+
All tests will be reviewed internally for their validity and overall project direction.
61+
62+
63+
### Document your code
64+
65+
As code is more often read than written, please provide documentation in all projects.
66+
67+
Adhere to the respective guidelines for documentation:
68+
69+
* Chef generally documents code based explicit readme files. For code documentation please use [yard-chef](https://github.com/rightscale/yard-chef)
70+
* [Puppet module documentation](http://docs.puppetlabs.com/puppet/latest/reference/modules_documentation.html)
71+
72+
73+
### Follow coding styles
74+
75+
We generally include test for coding guidelines:
76+
77+
* Chef follows [Foodcritic](http://acrmp.github.io/foodcritic/)
78+
* Puppet is checked with [puppet-lint](http://puppet-lint.com/checks/)
79+
80+
Remember: Code is generally read much more often than written.
81+
82+
### Use Markdown
83+
84+
Wherever possible, please refrain from any other formats and stick to simple markdown.

0 commit comments

Comments
 (0)