Skip to content

Commit

Permalink
Update swift to 998abbc58f83feaffaa2cb62880e9ce2ae9bcabb
Browse files Browse the repository at this point in the history
998abbc58f83feaffaa2cb62880e9ce2ae9bcabb Release note for CVE-2016-9590
b573fb0d12578bc58026818c5af73d292648bd36 [CVE-2016-9590] Correct configuration file perms
b61475a793818b13c8e096753bcd1fb91b7e674f Keystone endpoints should go before the service
9c4b716497da75bb8fcb629e489be8b03309a4d9 Prepare 8.2.0 (mitaka)

Change-Id: I49dc5c7f37633956a0154397ba31564581337fb1
  • Loading branch information
jguiditta committed Jan 13, 2017
1 parent 3339055 commit 8d6bfa3
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Puppetfile
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ mod 'stdlib',
:git => 'https://github.com/puppetlabs/puppetlabs-stdlib.git'

mod 'swift',
:commit => '17d1411b01896deda0d96130f25a978b91009b8f',
:commit => '998abbc58f83feaffaa2cb62880e9ce2ae9bcabb',
:git => 'https://github.com/openstack/puppet-swift.git'

mod 'sysctl',
Expand Down
9 changes: 9 additions & 0 deletions swift/manifests/keystone/auth.pp
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,15 @@
fail('cinder::keystone::auth parameters service_name and service_name_s3 must be different.')
}

# Establish that keystone auth and endpoints are properly setup before
# managing any type of swift related service.
if $configure_endpoint {
Keystone_endpoint["${region}/${real_service_name}::object-store"] -> Swift::Service<||>
}
if $configure_s3_endpoint {
Keystone_endpoint["${region}/${real_service_name_s3}::s3"] -> Swift::Service<||>
}

keystone::resource::service_identity { 'swift':
configure_endpoint => $configure_endpoint,
configure_user => $configure_user,
Expand Down
1 change: 1 addition & 0 deletions swift/manifests/proxy.pp
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
}

concat { '/etc/swift/proxy-server.conf':
mode => '0640',
owner => 'swift',
group => 'swift',
require => Package['swift-proxy'],
Expand Down
1 change: 1 addition & 0 deletions swift/manifests/storage/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
}
concat { "/etc/swift/${config_file_path}":
mode => '0640',
owner => $owner,
group => $group,
notify => Service["swift-${type}-server", "swift-${type}-replicator", "swift-${type}-auditor"],
Expand Down
4 changes: 2 additions & 2 deletions swift/metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "openstack-swift",
"version": "8.1.0",
"version": "8.2.0",
"author": "Puppet Labs and OpenStack Contributors",
"summary": "Puppet module for OpenStack Swift",
"license": "Apache-2.0",
Expand All @@ -24,7 +24,7 @@
"description": "Installs and configures OpenStack Swift (Object Storage).",
"dependencies": [
{ "name": "puppetlabs/inifile", "version_requirement": ">=1.4.0 <2.0.0" },
{ "name": "openstack/keystone", "version_requirement": ">=8.1.0 <9.0.0" },
{ "name": "openstack/keystone", "version_requirement": ">=8.2.0 <9.0.0" },
{ "name": "puppetlabs/rsync", "version_requirement": ">=0.4.0 <1.0.0" },
{ "name": "puppetlabs/stdlib", "version_requirement": ">=4.9.0 <5.0.0" },
{ "name": "puppetlabs/xinetd", "version_requirement": ">=1.5.0 <2.0.0" },
Expand Down
7 changes: 7 additions & 0 deletions swift/releasenotes/notes/cve-2016-9590-b493949d7df27489.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
security:
- |
Updated file permissions for CVE-2016-9590. Fixes configuration file
permissions for the proxy server and storage servers. The permissions were
getting incorrectly changed from 0640 to 0644 due to lack of the explict
setting of mode on the concat resources.
4 changes: 2 additions & 2 deletions swift/releasenotes/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
# built documents.
#
# The short X.Y version.
version = '8.1.0'
version = '8.2.0'
# The full version, including alpha/beta/rc tags.
release = '8.1.0'
release = '8.2.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
1 change: 1 addition & 0 deletions swift/spec/classes/swift_proxy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class { swift: swift_hash_suffix => string }"
)}
it { is_expected.to contain_file('/etc/swift/proxy-server.conf').with(
{:ensure => 'present',
:mode => '0640',
:owner => 'swift',
:group => 'swift',
}
Expand Down
1 change: 1 addition & 0 deletions swift/spec/defines/swift_storage_server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ class { 'swift::storage': storage_local_net_ip => '10.0.0.1' }
)}

# verify template lines
it { is_expected.to contain_concat("/etc/swift/#{t}-server.conf").with_mode('0640') }
it { is_expected.to contain_file(fragment_file).with_content(/^devices\s*=\s*\/srv\/node\s*$/) }
it { is_expected.to contain_file(fragment_file).with_content(/^bind_ip\s*=\s*10\.0\.0\.1\s*$/) }
it { is_expected.to contain_file(fragment_file).with_content(/^bind_port\s*=\s*#{title}\s*$/) }
Expand Down

0 comments on commit 8d6bfa3

Please sign in to comment.