All Projects → dev-sec → chef-apache-hardening

dev-sec / chef-apache-hardening

Licence: Apache-2.0 license
dev-sec.io/

Programming Languages

ruby
36898 projects - #4 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to chef-apache-hardening

chef-jenkins-hardening
⛔ DEPRECATED: A secure jenkins installation
Stars: ✭ 18 (-25%)
Mutual labels:  chef-cookbook, chef, hardening
Chef Ssh Hardening
This chef cookbook provides secure ssh-client and ssh-server configurations.
Stars: ✭ 144 (+500%)
Mutual labels:  chef-cookbook, chef, hardening
chef-mysql-hardening
This chef cookbook provides security configuration for mysql.
Stars: ✭ 23 (-4.17%)
Mutual labels:  chef-cookbook, chef, hardening
Chef Os Hardening
This chef cookbook provides numerous security-related configurations, providing all-round base protection.
Stars: ✭ 386 (+1508.33%)
Mutual labels:  chef-cookbook, chef, hardening
chef-nginx-hardening
This chef cookbook provides secure nginx configurations.
Stars: ✭ 50 (+108.33%)
Mutual labels:  chef-cookbook, chef, hardening
Chef Windows Hardening
This chef cookbook provides windows hardening configurations for the DevSec Windows baseline profile.
Stars: ✭ 80 (+233.33%)
Mutual labels:  chef-cookbook, chef, hardening
Users
Development repository for the users cookbook
Stars: ✭ 138 (+475%)
Mutual labels:  chef-cookbook, chef
Haproxy
Development repository for the haproxy cookbook
Stars: ✭ 138 (+475%)
Mutual labels:  chef-cookbook, chef
fmw-chef-cookbook
Official repository of samples that show how to use Chef to provision Oracle Fusion Middleware (FMW) products.
Stars: ✭ 43 (+79.17%)
Mutual labels:  chef-cookbook, chef
Graphite
Development repository for the graphite cookbook
Stars: ✭ 160 (+566.67%)
Mutual labels:  chef-cookbook, chef
Cassandra Chef Cookbook
Chef cookbook for Apache Cassandra, DataStax Enterprise (DSE) and DataStax agent
Stars: ✭ 162 (+575%)
Mutual labels:  chef-cookbook, chef
yum-epel
Development repository for the yum-epel cookbook
Stars: ✭ 23 (-4.17%)
Mutual labels:  chef-cookbook, chef
Homebrew
Development repository for the homebrew cookbook
Stars: ✭ 137 (+470.83%)
Mutual labels:  chef-cookbook, chef
Nagios
Development repository for the nagios cookbook
Stars: ✭ 127 (+429.17%)
Mutual labels:  chef-cookbook, chef
samba
Development repository for the samba cookbook
Stars: ✭ 30 (+25%)
Mutual labels:  chef-cookbook, chef
Ruby build
Development repository for the ruby_build cookbook
Stars: ✭ 124 (+416.67%)
Mutual labels:  chef-cookbook, chef
Logrotate
Development repository for the logrotate cookbook
Stars: ✭ 122 (+408.33%)
Mutual labels:  chef-cookbook, chef
Apt
Development repository for the apt cookbook
Stars: ✭ 201 (+737.5%)
Mutual labels:  chef-cookbook, chef
Consul
Development repository for the consul cookbook
Stars: ✭ 188 (+683.33%)
Mutual labels:  chef-cookbook, chef
Chef Cookbook
Development repository for Chef cookbook RabbitMQ
Stars: ✭ 212 (+783.33%)
Mutual labels:  chef-cookbook, chef

apache-hardening (Chef cookbook)

Supermarket Build Status Code Coverage Dependencies Gitter Chat

Description

This cookbook provides a secure overlay for apache configuration.

Requirements

  • chef

Platform

  • Debian 7, 8
  • Ubuntu 14.04, 16.04
  • CentOS 6.8, 7.2
  • OracleLinux 6.8, 7.2

Usage

A sample role may look like:

{
    "name": "apache",
    "default_attributes": { },
    "override_attributes": { },
    "json_class": "Chef::Role",
    "description": "Apache Hardened Server Test Role",
    "chef_type": "role",
    "run_list": [
        "recipe[apt]",
        "recipe[apache2]",
        "recipe[apache-hardening]"
    ]
}

Recipes

apache-hardening::hardening (default)

This recipe is an overlay recipe for the apache2 cookbook and applies apache-hardening::hardening

Add the following to your runlist and customize security option attributes

"recipe[apache2]",
"recipe[apache-hardening]"

This hardening recipe installs the hardening but expects an existing installation of Apache2.

Security Options

Tests

For local testing you can use vagrant or docker to run tests locally. You will have to install Virtualbox and Vagrant or docker on your system. See Vagrant Downloads for a vagrant or Docker Downloads package suitable for your system. For all our tests we use test-kitchen. If you are not familiar with test-kitchen please have a look at their guide.

# Install dependencies
gem install bundler
bundle install

# Do lint checks
bundle exec rake lint

# fast test on one machine
bundle exec kitchen test default-ubuntu-1404

# test on all machines
bundle exec kitchen test

# for development
bundle exec kitchen create default-ubuntu-1404
bundle exec kitchen converge default-ubuntu-1404
bundle exec kitchen verify default-ubuntu-1204

Contributors + Kudos

Contributing

See contributor guideline.

License and Author

  • Author:: Deutsche Telekom AG

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].