Skip to content

Commit d1063a6

Browse files
author
Helen
authored
Merge pull request puppetlabs#1580 from puppetlabs/release
Release 1.11.0 mergeback
2 parents d2e326b + 91bed86 commit d1063a6

File tree

7 files changed

+112
-18
lines changed

7 files changed

+112
-18
lines changed

CHANGELOG.md

+70
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,73 @@
1+
## Supported Release 1.11.0
2+
#### Summary
3+
This release adds SLES12 Support and many more features and bugfixes.
4+
5+
#### Features
6+
- (MODULES-4049) Adds SLES 12 Support
7+
- Adds additional directories options for LDAP Auth
8+
- `auth_ldap_url`
9+
- `auth_ldap_bind_dn`
10+
- `auth_ldap_bind_password`
11+
- `auth_ldap_group_attribute`
12+
- `auth_ldap_group_attribute_is_dn`
13+
- Allows `mod_event` parameters to be unset
14+
- Allows management of default root directory access rights
15+
- Adds class `apache::vhosts` to create apache::vhost resources
16+
- Adds class `apache::mod::proxy_wstunnel`
17+
- Adds class `apache::mod::dumpio`
18+
- Adds class `apache::mod::socache_shmcb`
19+
- Adds class `apache::mod::authn_dbd`
20+
- Adds support for apache 2.4 on Amazon Linux
21+
- Support the newer `mod_auth_cas` config options
22+
- Adds `wsgi_script_aliases_match` parameter to `apache::vhost`
23+
- Allow to override all SecDefaultAction attributes
24+
- Add audit_log_relevant_status parameter to apache::mod::security
25+
- Allow absolute path to $apache::mod::security::activated_rules
26+
- Allow setting SecAuditLog
27+
- Adds `passenger_max_instances_per_app` to `mod::passenger`
28+
- Allow the proxy_via setting to be configured
29+
- Allow no_proxy_uris to be used within proxy_pass
30+
- Add rpaf.conf template parameter to `mod::rpaf`
31+
- Allow user to specify alternative package and library names for shibboleth module
32+
- Allows configuration of shibboleth lib path
33+
- Adds parameter `passenger_data_buffer_dir` to `mod::passenger`
34+
- Adds SSL stapling
35+
- Allows use of `balance_manager` with `mod_proxy_balancer`
36+
- Raises lower bound of `stdlib` dependency to version 4.2
37+
- Adds support for Passenger repo on Amazon Linux
38+
- Add ability to set SSLStaplingReturnResponderErrors on server level
39+
- (MODULES-4213) Allow global rewrite rules inheritance in vhosts
40+
- Moves `mod_env` to its own class and load it when required
41+
42+
#### Bugfixes
43+
- Deny access to .ht and .hg, which are created by mercurial hg.
44+
- Instead of failing, include apache::mod::prefork in manifests/mod/itk.pp instead.
45+
- Only set SSLCompression when it is set to true.
46+
- Remove duplicate shib2 hash element
47+
- (MODULES-3388) Include mpm_module classes instead of class declaration
48+
- Updates `apache::balancer` to respect `apache::confd_dir`
49+
- Wrap mod_security directives in an IfModule
50+
- Fixes to various mods for Ubuntu Xenial
51+
- Fix /etc/modsecurity perms to match package
52+
- Fix PassengerRoot under Debian stretch
53+
- (MODULES-3476) Updates regex in apache_version custom fact to work with EL5
54+
- Dont sql_injection_attacks.data
55+
- Add force option to confd file resource to purge directory without warnings
56+
- Patch httpoxy through mod_security
57+
- Fixes config ordering of IncludeOptional
58+
- Fixes bug where port numbers were unquoted
59+
- Fixes bug where empty servername for vhost were written to template
60+
- Auto-load `slotmem_shm` and `lbmethod_byrequests` with `proxy_balancer` on 2.4
61+
- Simplify MPM setup on FreeBSD
62+
- Adds requirement for httpd package
63+
- Do not set ssl_certs_dir on FreeBSD
64+
- Fixes bug that produces a duplicate `Listen 443` after a package update on EL7
65+
- Fixes bug where custom facts break structured facts
66+
- Avoid relative classname inclusion
67+
- Fixes a failure in `vhost` if the first element of `$rewrites` is not a hash
68+
- (MODULES-3744) Process $crs_package before $modsec_dir
69+
- (MODULES-1491) Adds `::apache` include to mods that need it
70+
171
## Supported Release 1.10.0
272
#### Summary
373
This release fixes backwards compatibility bugs introduced in 1.9.0. Also includes a new mod class and a new vhost feature.

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -1190,6 +1190,12 @@ Specifies whether or not to use [SSLUseStapling](http://httpd.apache.org/docs/cu
11901190

11911191
This parameter only applies to Apache 2.4 or higher and is ignored on older versions.
11921192

1193+
##### `ssl_stapling_return_errors`
1194+
1195+
Can be used to set the [SSLStaplingReturnResponderErrors](http://httpd.apache.org/docs/current/mod/mod_ssl.html#sslstaplingreturnrespondererrors) directive. No default. It is possible to override this on a vhost level.
1196+
1197+
This parameter only applies to Apache 2.4 or higher and is ignored on older versions.
1198+
11931199
##### `timeout`
11941200

11951201
Sets Apache's [`TimeOut`][] directive, which defines the number of seconds Apache waits for certain events before failing a request. Default: 120.

manifests/mod/ssl.pp

+19-14
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
class apache::mod::ssl (
2-
$ssl_compression = false,
3-
$ssl_cryptodevice = 'builtin',
4-
$ssl_options = [ 'StdEnvVars' ],
5-
$ssl_openssl_conf_cmd = undef,
6-
$ssl_cipher = 'HIGH:MEDIUM:!aNULL:!MD5:!RC4',
7-
$ssl_honorcipherorder = true,
8-
$ssl_protocol = [ 'all', '-SSLv2', '-SSLv3' ],
9-
$ssl_pass_phrase_dialog = 'builtin',
10-
$ssl_random_seed_bytes = '512',
11-
$ssl_sessioncachetimeout = '300',
12-
$ssl_stapling = false,
13-
$ssl_mutex = undef,
14-
$apache_version = undef,
15-
$package_name = undef,
2+
$ssl_compression = false,
3+
$ssl_cryptodevice = 'builtin',
4+
$ssl_options = [ 'StdEnvVars' ],
5+
$ssl_openssl_conf_cmd = undef,
6+
$ssl_cipher = 'HIGH:MEDIUM:!aNULL:!MD5:!RC4',
7+
$ssl_honorcipherorder = true,
8+
$ssl_protocol = [ 'all', '-SSLv2', '-SSLv3' ],
9+
$ssl_pass_phrase_dialog = 'builtin',
10+
$ssl_random_seed_bytes = '512',
11+
$ssl_sessioncachetimeout = '300',
12+
$ssl_stapling = false,
13+
$ssl_stapling_return_errors = undef,
14+
$ssl_mutex = undef,
15+
$apache_version = undef,
16+
$package_name = undef,
1617
) {
1718
include ::apache
1819
include ::apache::mod::mime
@@ -70,6 +71,10 @@
7071

7172
validate_bool($ssl_stapling)
7273

74+
if $ssl_stapling_return_errors != undef {
75+
validate_bool($ssl_stapling_return_errors)
76+
}
77+
7378
$stapling_cache = $::osfamily ? {
7479
'debian' => "\${APACHE_RUN_DIR}/ocsp(32768)",
7580
'redhat' => '/run/httpd/ssl_stapling(32768)',

metadata.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "puppetlabs-apache",
3-
"version": "1.10.0",
3+
"version": "1.11.0",
44
"author": "puppetlabs",
55
"summary": "Installs, configures, and manages Apache virtual hosts, web services, and modules.",
66
"license": "Apache-2.0",
@@ -55,7 +55,8 @@
5555
{
5656
"operatingsystem": "SLES",
5757
"operatingsystemrelease": [
58-
"11 SP1"
58+
"11 SP1",
59+
"12"
5960
]
6061
},
6162
{

spec/classes/mod/ssl_spec.rb

+9
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,15 @@
188188
end
189189
it { is_expected.to contain_file('ssl.conf').with_content(/^ SSLUseStapling On$/)}
190190
end
191+
context 'setting ssl_stapling_return_errors to true' do
192+
let :params do
193+
{
194+
:apache_version => '2.4',
195+
:ssl_stapling_return_errors => true,
196+
}
197+
end
198+
it { is_expected.to contain_file('ssl.conf').with_content(/^ SSLStaplingReturnResponderErrors On$/)}
199+
end
191200
end
192201

193202
context 'setting ssl_pass_phrase_dialog' do

templates/mod/ssl.conf.erb

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
SSLHonorCipherOrder <%= scope.function_bool2httpd([@_ssl_honorcipherorder]) %>
2323
<% if scope.function_versioncmp([@_apache_version, '2.4']) >= 0 -%>
2424
SSLUseStapling <%= scope.function_bool2httpd([@ssl_stapling]) %>
25+
<%- if not @ssl_stapling_return_errors.nil? -%>
26+
SSLStaplingReturnResponderErrors <%= scope.function_bool2httpd([@ssl_stapling_return_errors]) %>
27+
<%- end -%>
2528
SSLStaplingCache "shmcb:<%= @stapling_cache %>"
2629
<% end -%>
2730
SSLCipherSuite <%= @ssl_cipher %>

templates/vhost/_ssl.erb

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<%- if @ssl_stapling_timeout && scope.function_versioncmp([@apache_version, '2.4']) >= 0 -%>
5050
SSLStaplingResponderTimeout <%= @ssl_stapling_timeout %>
5151
<%- end -%>
52-
<%- if @ssl_stapling_return_errors && scope.function_versioncmp([@apache_version, '2.4']) >= 0 -%>
53-
SSLStaplingReturnResponderErrors <%= @ssl_stapling_return_errors %>
52+
<%- if (not @ssl_stapling_return_errors.nil?) && (scope.function_versioncmp([@apache_version, '2.4']) >= 0) -%>
53+
SSLStaplingReturnResponderErrors <%= scope.function_bool2httpd([@ssl_stapling_return_errors]) %>
5454
<%- end -%>
5555
<% end -%>

0 commit comments

Comments
 (0)