Skip to content

Commit

Permalink
Merge branch 'release/0.5.2' into merge-0-5-2-into-develop
Browse files Browse the repository at this point in the history
Conflicts:
	.circleci/config.yml

Favored develop since admin test jobs were added in develop in #2758.

	install_files/ansible-base/roles/ossec/files/test_admin_key.pub
	install_files/ansible-base/roles/ossec/files/test_admin_key.sec

Favored develop for these changes since these keys in 0.5.2 were
erroneously both public keys (fixed in #2925).

	install_files/ansible-base/securedrop-configure.yml

Deleted this file as it was removed in develop during the sdconfig
refactor (#2758) from Ansible to Python. The locale prompt additions added
in SecureDrop 0.5.2 were added in #2758 on develop.

	molecule/aws/scripts/app-tests.sh

Favored develop since the addition of RTL language testing was
added in #2930.

	molecule/aws/side_effect.yml

Favored release/0.5.2 as these changes were due to the addition
of Tor apt repo testing in CI against release branches (#2941).

	securedrop/Dockerfile

Favored develop since all these gettext commands being merged into
one RUN command was done in #2822 and is still on develop.
  • Loading branch information
redshiftzero committed Feb 3, 2018
2 parents a4b34fe + b248451 commit cf0ce54
Show file tree
Hide file tree
Showing 18 changed files with 126 additions and 15 deletions.
18 changes: 16 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ jobs:
- checkout

- run:
<<<<<<< HEAD
name: Rebase on-top of latest develop
command: ./devops/scripts/rebase-develop.sh

Expand All @@ -116,12 +117,14 @@ jobs:
command: apt-get install -y enchant

- run:
=======
>>>>>>> release/0.5.2
name: Installation pre-reqs
command: pip install -U -r securedrop/requirements/develop-requirements.txt
command: pip install -U -r ./securedrop/requirements/develop-requirements.txt

- run:
name: Check Python dependencies for CVEs
command: make safety
command: make safety || true # Revert when Ansible 2.4 is used

- setup_remote_docker

Expand All @@ -144,16 +147,27 @@ jobs:
- store_artifacts:
path: /root/sd/junit

<<<<<<< HEAD
- store_artifacts:
path: /root/sd/raw-test-output
=======
- store_artifacts:
path: /root/sd/raw-test-output

- store_artifacts:
path: /root/sd/.tor_version
>>>>>>> release/0.5.2

workflows:
version: 2
securedrop_ci:
jobs:
- lint
- tests
<<<<<<< HEAD
- admin-tests
=======
>>>>>>> release/0.5.2
- staging-test-with-rebase:
requires:
- lint
10 changes: 10 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 0.5.2

* Replace PyCrypto (#2903).
* Use `max_fail_percentage` to force immediate Ansible exits in playbook runs (#2922).
* Bugfix: Dynamically allocate firewall during OSSEC registration (#2748).
* Bugfix: Add all languages to sdconfig prompt (#2935).

The issues for this release were tracked in the 0.5.2 milestone on Github:
https://github.com/freedomofpress/securedrop/milestone/41

## 0.5.1

### Web Applications
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
# built documents.
#
# The short X.Y version.
version = '0.5.1'
version = '0.5.2'
# The full version, including alpha/beta/rc tags.
release = '0.5.1'
release = '0.5.2'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
1 change: 0 additions & 1 deletion docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ Localization of the source and journalist interfaces
The source and journalist interface are translated in the following
languages:

* Arabic (ar)
* German (de_DE)
* Spanish (es_ES)
* French (fr_FR)
Expand Down
4 changes: 2 additions & 2 deletions docs/set_up_admin_tails.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ key:
.. code:: sh
cd ~/Persistent/securedrop/
git checkout 0.5.1
git tag -v 0.5.1
git checkout 0.5.2
git tag -v 0.5.2
You should see ``Good signature from "SecureDrop Release Signing Key"`` in the
output of that last command.
Expand Down
2 changes: 1 addition & 1 deletion install_files/ansible-base/group_vars/all/securedrop
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Variables that apply to both the app and monitor server go in this file
# If the monitor or app server need different values define the variable in
# hosts_vars/app.yml or host_vars/mon.yml host_vars/development.yml
securedrop_app_code_version: "0.5.1"
securedrop_app_code_version: "0.5.2"

grsecurity: true
install_local_packages: false
Expand Down
2 changes: 1 addition & 1 deletion install_files/securedrop-app-code/DEBIAN/control
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Priority: optional
Maintainer: SecureDrop Team <[email protected]>
Homepage: https://securedrop.org
Package: securedrop-app-code
Version: 0.5.1
Version: 0.5.2
Architecture: amd64
Depends: python-pip,apparmor-utils,gnupg2,haveged,python,python-pip,secure-delete,sqlite,apache2-mpm-worker,libapache2-mod-wsgi,libapache2-mod-xsendfile,redis-server,supervisor,securedrop-keyring,securedrop-config
Description: Packages the SecureDrop application code pip dependencies and apparmor profiles. This package will put the apparmor profiles in enforce mode. This package does use pip to install the pip wheelhouse
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
securedrop-app-code (0.5.2) trusty; urgency=medium

* See changelog.md

-- SecureDrop Team <[email protected]> Thu, 01 Feb 2018 21:14:12 +0000

securedrop-app-code (0.5.1) trusty; urgency=medium

* See changelog.md
Expand Down
2 changes: 1 addition & 1 deletion install_files/securedrop-config/DEBIAN/control
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Priority: optional
Maintainer: SecureDrop Team <[email protected]>
Homepage: https://securedrop.org
Package: securedrop-config
Version: 0.1.0+0.5.1
Version: 0.1.0+0.5.2
Architecture: all
Description: Establishes baseline system state for running SecureDrop.
Configures apt repositories.
2 changes: 1 addition & 1 deletion install_files/securedrop-keyring/DEBIAN/control
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Priority: optional
Maintainer: SecureDrop Team <[email protected]>
Homepage: https://securedrop.org
Package: securedrop-keyring
Version: 0.1.1+0.5.1
Version: 0.1.1+0.5.2
Architecture: amd64
Depends: gnupg
Description: Provides an apt keyring for SecureDrop-related packages, so the master signing key used for SecureDrop packages can be updated via apt.
2 changes: 1 addition & 1 deletion install_files/securedrop-ossec-agent/DEBIAN/control
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Priority: optional
Maintainer: SecureDrop Team <[email protected]>
Homepage: https://securedrop.org
Package: securedrop-ossec-agent
Version: 2.8.2+0.5.1
Version: 2.8.2+0.5.2
Architecture: amd64
Depends: ossec-agent,securedrop-keyring,securedrop-config
Replaces: ossec-agent
Expand Down
2 changes: 1 addition & 1 deletion install_files/securedrop-ossec-server/DEBIAN/control
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Priority: optional
Maintainer: SecureDrop Team <[email protected]>
Homepage: https://securedrop.org
Package: securedrop-ossec-server
Version: 2.8.2+0.5.1
Version: 2.8.2+0.5.2
Architecture: amd64
Depends: ossec-server,securedrop-keyring,securedrop-config
Replaces: ossec-server
Expand Down
30 changes: 30 additions & 0 deletions molecule/aws/securedrop_test.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----

mQENBFhPGZsBCACzn00s3+i5HdGIldDGYXxY2HKL9Qhk0DhiRrNPaQemhNijuFlC
geCeKN/smDAUyM5mfEoxmWy3V7n8SEQUpqI4dIS2AohReLkyKEKiIpTuXW7F9kO3
vcXHgrTka+8B4ZQxDuTHNFJLmBwJnP24LrL6BzkDIUNeQFwM0EFTDOJlW1QV6qkm
9WGizo2sR0VBJJabfRWrTWd8llYOVcc+LptErVNADPaX6iqb+QnZVJ/nYmCTgABj
lD3aZ4EPZ+ioVOcOxbgBkAX76COObUUw/XahBGwj4fJ5kyzvDSBCHHlRzN39LKpM
Y+HfSc1scAOWN+Dd0N/joIa0j0U4SGHo1NdzABEBAAG0MVNlY3VyZURyb3AgVEVT
VElORyBrZXkgPHNlY3VyZWRyb3BAZnJlZWRvbS5wcmVzcz6JAU4EEwEIADgWIQRO
15zDNi19EoNwRgJKO+SpIhGwPAUCWE8ZmwIbAwULCQgHAgYVCAkKCwIEFgIDAQIe
AQIXgAAKCRBKO+SpIhGwPCb9B/9SuVoxbe3nLlU0bHDQtoq5P7adyTZK+5gKIiAo
mtAkc/EuiF6jYIDLo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AL8wDl7dfS
=fYUi
-----END PGP PUBLIC KEY BLOCK-----
9 changes: 9 additions & 0 deletions molecule/aws/side_effect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
become: yes
tasks:
- include: reboot_and_wait.yml
when: "false"
- include: tor_apt_test.yml
when: (lookup('env','CIRCLE_BRANCH')|default('na')).startswith('release')
handlers:
- name: update tor
apt:
name: tor
state: latest
update_cache: yes

- name: Setup junit env first
hosts: localhost
Expand Down
39 changes: 39 additions & 0 deletions molecule/aws/tor_apt_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
- name: Add apt SD test public key
apt_key:
data: "{{ lookup('file','securedrop_test.pub') }}"
state: present

- name: Temporary fix for GH issue 2938
file:
state: absent
path: "/etc/apt/sources.list.d/tor_apt_freedom_press.list"

- name: Switch apt repo URLs to staging.
replace:
dest: "/etc/apt/sources.list.d/tor.apt.freedom.press.list"
replace: "tor-apt-test.freedom.press"
regexp: '//tor-apt\.freedom\.press'
ignore_errors: "yes"
notify: update tor

- name: Force possible tor update
meta: flush_handlers

- name: Squash testinfra failure for packages needing update
apt:
upgrade: safe

- name: Extract latest tor version
shell: |
apt-cache policy tor | sed -e 's/^\s*Installed:\ \(\S*\)/\1/g;tx;d;:x'
changed_when: false
register: extract_tor_version

- name: Dump Tor version to file (for reporting)
copy:
dest: "{{ playbook_dir }}/../../.tor_version"
content: "{{ extract_tor_version.stdout }}"
delegate_to: localhost
run_once: true
become: "no"
2 changes: 1 addition & 1 deletion molecule/builder/tests/vars.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
securedrop_version: "0.5.1"
securedrop_version: "0.5.2"
ossec_version: "2.8.2"
keyring_version: "0.1.1"
config_version: "0.1.0"
Expand Down
2 changes: 1 addition & 1 deletion securedrop/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.5.1'
__version__ = '0.5.2'
4 changes: 4 additions & 0 deletions testinfra/common/test_tor_mirror.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import os
import pytest


@pytest.mark.skipif(
os.environ.get('CIRCLE_BRANCH', 'na').startswith('release'),
reason="Release branches will use tor-apt-test repo")
def test_tor_mirror_present(host):
"""
Ensure the FPF mirror of the Tor apt repo, tor-apt.freedom.press,
Expand Down

0 comments on commit cf0ce54

Please sign in to comment.