-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pulls in the apt-without-redirects logic to mitigate CVE-2019-3462 that was previously placed in the install-fpf-repo role. Since we already the logic declared, we need not run it twice.
- Loading branch information
Conor Schaefer
committed
Feb 13, 2019
1 parent
de2deba
commit 77ca5d3
Showing
4 changed files
with
8 additions
and
11 deletions.
There are no files selected for viewing
2 changes: 0 additions & 2 deletions
2
install_files/ansible-base/roles/install-fpf-repo/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
--- | ||
- include: upgrade_apt.yml | ||
|
||
- name: Install SecureDrop apt repo GPG signing key. | ||
apt_key: | ||
state: present | ||
|
6 changes: 6 additions & 0 deletions
6
install_files/ansible-base/roles/prepare-servers/tasks/install_ansible_dependencies.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
# Ansible assumes that python2 is installed, and it isn't be default | ||
# under Ubuntu Xenial, so we'll make sure to pull it in. | ||
# We use the "raw" module because any other module requires python2. | ||
- name: Installs prereqs for Ansible and securedrop-admin | ||
raw: sudo apt-get -y install python apt-transport-https dnsutils |
11 changes: 2 additions & 9 deletions
11
install_files/ansible-base/roles/prepare-servers/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,4 @@ | ||
--- | ||
# Ensures that prequisite packages for anssible and securedrop-admin install | ||
# are present | ||
- name: 'Ensure apt has been safely updated wrt. CVE-2019-3462' | ||
raw: 'apt -o Acquire::http::AllowRedirect=false update && | ||
apt -o Acquire::http::AllowRedirect=false --only-upgrade -y install apt' | ||
- name: 'run apt update' | ||
raw: 'sudo apt -o update' | ||
- name: 'install packages' | ||
raw: 'sudo apt-get -y install python apt-transport-https dnsutils' | ||
- include: upgrade_apt.yml | ||
|
||
- include: install_ansible_dependencies.yml |
File renamed without changes.