Skip to content

Commit

Permalink
Merge pull request #187 from freedomofpress/demo
Browse files Browse the repository at this point in the history
Document demo.securedrop.org
  • Loading branch information
rocodes authored Aug 29, 2024
2 parents cad9fff + 479ef20 commit 6df1750
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions docs/demo.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
demo.securedrop.org
===================

There is a deployment of SecureDrop server running at https://demo.securedrop.org/ that is very similar
to ``make dev``. Changes pushed to the ``develop`` branch automatically get deployed there.

How it works
------------
Deployment is managed in Codefresh, which we use for other Kubernetes-related CI/CD; if you want to look at
build logs or (re)start pipelines and don't have access, ask someone from the infra team. This is not a
requirement to be able to update and deploy the demo; you just need to be able to push to the SecureDrop
repo's ``develop`` branch.

Containers
----------
There are two containers in the `securedrop <https://github.com/freedomofpress/securedrop>`_ repo:

* ``securedrop/dockerfiles/focal/python3/DemoDockerfile``
* ``devops/demo/landing-page/Dockerfile``

If you want to try these locally, build them from the root of the SecureDrop repository, using
``docker build -f FILE .``. The "landing page" container is what you see at https://demo.securedrop.org/
and the main container serves both https://demo-source.securedrop.org/ and
https://demo-journalist.securedrop.org/

Troubleshooting
---------------
The deployment is not highly available, and everything in Redis is thrown away when it restarts. When
restarting, the source and journalist interfaces will both be unavailable for a few seconds and you'll
see a 503.

If you need to cause a restart without pushing a new deployment, or roll back to an earlier version, ask
the infra team. These can be done quickly but require direct Kubernetes access.
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ administrators <https://docs.securedrop.org/>`_.
testing_application_tests
testing_configuration_tests
testing_continuous_integration
demo
apt_repo
updating_ossec
apparmor_profiles
Expand Down

0 comments on commit 6df1750

Please sign in to comment.