Skip to content

Commit

Permalink
Merge pull request #4177 from zenmonkeykstop/4057-docs-xenial-update
Browse files Browse the repository at this point in the history
updates to Xenial install docs based on review
  • Loading branch information
eloquence authored Feb 22, 2019
2 parents 66fc3b7 + a13f9cc commit 00f9348
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 13 deletions.
25 changes: 21 additions & 4 deletions docs/upgrade/xenial_backup_install_restore.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ the servers and firewall, and you will need a monitor and keyboard to connect to
the servers during the OS installation.

If you are planning to install the Xenial instance on new hardware, make sure
that you have all the necessary hardware to hand and configured. This guide
that you have all the necessary hardware on hand and configured. This guide
assumes that you are either using the existing hardware firewall, or a new
firewall configured with the same settings as your existing one.

Expand All @@ -53,6 +53,11 @@ This will create a backup named ``sd-backup-<date>.tar.gz`` in the
``~/Persistent/securedrop/install_files/ansible-base`` directory. Make a note of
the exact name, as you'll need it later.

.. note::
The backup files are not encrypted by default. If you copy them to a USB stick
or other media you should ensure that the device uses encrypted storage, or
that you encrypt the backup files themselves using a strong encryption method.

You should also make a copy of the configuration files that allow the *Admin
Workstation* to connect to the hidden services on the *Application Server*. To
do so, run the following commands from the terminal:
Expand Down Expand Up @@ -151,7 +156,7 @@ code is up-to-date and validated. From a terminal, run the following commands:
.. code:: sh
cd ~/Persistent/securedrop
git checkout 0.12.0
git fetch --tags
git tag -v 0.12.0
You should see ``Good signature from "SecureDrop Release Signing Key"`` in the
Expand All @@ -166,7 +171,13 @@ output of that last command, along with the fingerprint ``"2224 5C81 E3BA EB41

If the command above returns the expected value, you may proceed with the installation.

First, run the following command to set up the SecureDrop administration environment:
First, check out the release tag that you validated above:

.. code:: sh
git checkout 0.12.0
Next, run the following command to set up the SecureDrop administration environment:

.. code:: sh
Expand Down Expand Up @@ -232,7 +243,7 @@ Workstation*. From a terminal, run the following commands:
.. code:: sh
cd ~/Persistent
cp app_services/app*ths securedrop/install_files/ansible-base/
cp app_service/app*ths securedrop/install_files/ansible-base/
Finally, run the ``tailsconfig`` command again to update the *Admin
Workstation*'s SSH configuration and desktop shortcuts:
Expand Down Expand Up @@ -282,3 +293,9 @@ encounter any issues, you can always contact us by the following means:
If you encounter problems that are not security-sensitive, we also encourage you
to `file an issue <https://github.com/freedomofpress/securedrop/issues/new/>`
in our public GitHub repository.

.. caution::

If you include log snippets or error output in any communications via the
methods described above, make sure to first redact sensitive data, such as
Onion URLs or authentication information.
37 changes: 28 additions & 9 deletions docs/upgrade/xenial_upgrade_in_place.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ physical access to the servers, but it will result in downtime for your instance
goes wrong.

The process is less complex than the alternative
:doc:`xenial_backup_install_restore` procedure however, and if you are using
supported hardware and the downtime described is acceptable, it is the preferred
option for upgrading your instance.
:doc:`xenial_backup_install_restore` procedure however. If you are using
supported hardware and the downtime described is acceptable, we recommend using
the upgrade-in-place procedure to upgrade your instance.

.. caution::
We have tested the upgrade-in-place procedure on officially supported hardware,
but cannot guarantee that the Ubuntu ``do-release-upgrade`` command will
but cannot guarantee that that Ubuntu automated upgrade application will
complete successfully on other hardware configurations.

If your instance uses unsupported hardware and you have access to backup
Expand Down Expand Up @@ -187,18 +187,18 @@ To confirm that the upgrade succeeded, connect from a terminal using the command
The output should include the text "Ubuntu 16.04.5 LTS".

Disconnect the SSH session to the Application Server. You are now ready to move
on to the next step: reinstalling SecureDrop on the Xenial servers.
on to the next step: reprovisioning SecureDrop on the Xenial servers.

Step 3: Reinstall SecureDrop
----------------------------
Step 3: Reprovision SecureDrop
------------------------------

First, you'll need make sure your *Admin Workstation*'s SecureDrop application
code is up-to-date and validated. From a terminal, run the following commands:

.. code:: sh
cd ~/Persistent/securedrop
git checkout 0.12.0
git fetch --tags
git tag -v 0.12.0
You should see ``Good signature from "SecureDrop Release Signing Key"`` in the
Expand All @@ -213,7 +213,13 @@ output of that last command, along with the fingerprint

If the command above returns the expected value, you may proceed with the installation.

In the terminal, run the following command to set up the SecureDrop
First, check out the release tag that you validated above:

.. code:: sh
git checkout 0.12.0
Next, in the terminal, run the following command to set up the SecureDrop
admin environment:

.. code:: sh
Expand Down Expand Up @@ -300,6 +306,12 @@ Just in case you picked the wrong submission, we strongly recommend following
standard precautions, e.g., do not open the document directly from the *Transfer
Device* but copy it onto the *Secure Viewing Station* first.

Check OSSEC alerts
^^^^^^^^^^^^^^^^^^
You should continue to receive OSSEC alerts after the upgrade is complete. If
you do not, follow the :ref:`troubleshooting guide <troubleshooting_ossec>` to
diagnose the problem, or contact us using one of the methods listed below.

Contact us
----------
If you have questions or comments regarding this process, or if you
Expand All @@ -315,3 +327,10 @@ encounter any issues, you can always contact us by the following means:
If you encounter problems that are not security-sensitive, we also encourage you
to `file an issue <https://github.com/freedomofpress/securedrop/issues/new/>`_
in our public GitHub repository.

.. caution::

If you include log snippets or error output in any communications via the
methods described above, make sure to first redact sensitive data, such as
Onion URLs or authentication information.

0 comments on commit 00f9348

Please sign in to comment.