Skip to content

Commit 7c08cbe

Browse files
author
atomic111
committed
Merge pull request #3 from TelekomLabs/contributing-guide
Contributing guide
2 parents f59ba59 + 4dda9d4 commit 7c08cbe

File tree

2 files changed

+91
-0
lines changed

2 files changed

+91
-0
lines changed

CONTRIBUTING.md

+88
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
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+
### Trello
12+
13+
The overall hardening project is organized publicly on Trello. Feel free to join and add tasks and ideas for the overall project. [https://trello.com/b/gL9v8N1q/dt-hardening](https://trello.com/b/gL9v8N1q/dt-hardening)
14+
15+
## git and GitHub
16+
17+
In order to contribute code please:
18+
19+
1. Fork the project on GitHub
20+
2. Clone the project
21+
3. Add changes (and tests)
22+
4. Commit and push
23+
5. Create a merge-request
24+
25+
To have your code merged, see the expectations listed below.
26+
27+
You can find a well-written guide [here](https://help.github.com/articles/fork-a-repo).
28+
29+
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.
30+
31+
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).
32+
33+
34+
## Expectations
35+
36+
### Don't reinvent the wheel
37+
38+
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.
39+
40+
* For Chef refer to the official [opscode community cookbooks](http://community.opscode.com/cookbooks).
41+
* For Puppet head to the [Puppet Forge](https://forge.puppetlabs.com/) and take a node of the Puppet supported modules.
42+
43+
These projects are generally hosted on GitHub as well.
44+
45+
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), [ssh-hardening](https://github.com/TelekomLabs/chef-ssh-hardening)).
46+
47+
48+
### Be explicit
49+
50+
* Please avoid using nonsensical property and variable names
51+
* Use self-describing attribute names for user configuration
52+
* 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.
53+
54+
55+
### Add tests
56+
57+
The security review of this project is done using integration tests.
58+
59+
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.
60+
61+
You may add a new feature request by creating a test for whatever value you need.
62+
63+
All tests will be reviewed internally for their validity and overall project direction.
64+
65+
66+
### Document your code
67+
68+
As code is more often read than written, please provide documentation in all projects.
69+
70+
Adhere to the respective guidelines for documentation:
71+
72+
* Chef generally documents code based explicit readme files. For code documentation please use [yard-chef](https://github.com/rightscale/yard-chef)
73+
* [Puppet module documentation](http://docs.puppetlabs.com/puppet/latest/reference/modules_documentation.html)
74+
75+
76+
### Follow coding styles
77+
78+
We generally include test for coding guidelines:
79+
80+
* Chef follows [Foodcritic](http://acrmp.github.io/foodcritic/)
81+
* Puppet is checked with [puppet-lint](http://puppet-lint.com/checks/)
82+
83+
Remember: Code is generally read much more often than written.
84+
85+
86+
### Use Markdown
87+
88+
Wherever possible, please refrain from any other formats and stick to simple markdown.

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ This cookbook is mostly based on guides by:
103103

104104
Thanks to all of you!!
105105

106+
## Contributing
107+
108+
See [contributor guideline](CONTRIBUTING.md).
106109

107110
## License and Author
108111

0 commit comments

Comments
 (0)