-
Notifications
You must be signed in to change notification settings - Fork 684
2.7.0 Test Plan
KOG Notes on coverage required:
- Since this release includes the Sequoia migration, we need to cover both install and upgrade paths pretty heavily:
- fresh install ✔️
- upgrade from 2.6.0 ✔️
- upgrade with a large number of GPGed sources (>10k) ✔️
- upgrade with existing sources without GPG reply keys (it's possible!) ✔️
- upgrade with reply keys present in the keyring without corresponding sources ✔️
- partial upgrades - what happens if the upgrade is incomplete before a scheduled reboot?
- [kunal] not something we need to worry about
- SDW interactions - are SQ-encrypted messages/submissions decryptable? ✔️
- submission sizes - verify timings for GPG vs SQ submissions of 50, 50, 500MB
- [kunal] let's build this into loaddata.py instead of timing QA...
- IMO translation changes need less QA, as the translations are still set by the time you get to release mode, but willing to be disabused of this notion!
- [cfm] I agree. As long as one tester does their QA in a non-
en_US
locale, we'll have tested deployment and runtime. The rest is pretty much all CI (as we're discovering).
For both upgrades and fresh installs, here is a list of functionality that requires testing. You can use this for copy/pasting into your QA report.
If you have submitted a QA report already for a release candidate with successful basic server testing and application acceptance testing sections, then you can skip these sections in subsequent reports, unless otherwise indicated by the Release Manager. This is to ensure that you focus your QA effort on the release-specific changes as well as changes since the previous release candidate.
- Install target:
- Tails version:
- Test Scenario:
- SSH over Tor:
- Release candidate:
- General notes:
- After installing the testinfra dependencies, all tests in
./securedrop-admin verify
are passing:- Install dependencies on Admin Workstation with
cd ~/Persistent/securedrop && ./securedrop-admin setup -t
- Run tests with
./securedrop-admin verify
(this will take a while) - Remove test dependencies:
rm -rf admin/.venv3/ && ./securedrop-admin setup
- Install dependencies on Admin Workstation with
- QA Matrix checks pass
- Can successfully add admin user and login
- I have backed up and successfully restored the app server following the backup documentation
- If doing upgrade testing, make a backup on 2.6.0 and restore this backup on this release candidate
- "Send Test OSSEC Alert" button in the journalist triggers an OSSEC alert and an email is sent
- Can successfully add journalist account with HOTP authentication
- JS warning bar does not appear when using Security Slider high
- JS warning bar does appear when using Security Slider Low
- On generate page, refreshing page produces a new 7-word codename
- On submit page, empty submissions produce flashed message
- On submit page, short message submitted successfully
- On submit page, file greater than 500 MB produces "The connection was reset" in Tor Browser quickly before the entire file is uploaded
- On submit page, file less than 500 MB submitted successfully
- Nonexistent codename cannot log in
- Empty codename cannot log in
- Legitimate codename can log in
- Returning user can view journalist replies - need to log into journalist interface to test
- Can log in with 2FA tokens
- incorrect password cannot log in
- invalid 2fa token cannot log in
- 2fa immediate reuse cannot log in
- Journalist account with HOTP can log in
- Filter by codename works
- Starring and unstarring works
- Click select all selects all submissions
- Selecting all and clicking "Download" works
- You can submit a reply and a flashed message and new row appears
- You cannot submit an empty reply
- Clicking "Delete Source Account" and the source and docs are deleted
- You can click on a document and successfully decrypt using application private key
After updating to this release candidate and running securedrop-admin tailsconfig
- The Updater GUI appears on boot
(note that some of this overlaps with the "Basic Server Testing", there's no need to do it twice)
- Create a new source, make a submission that includes both a message and a file.
- Download the submission and successfully decrypt it with the journalist key
- Send a reply as a journalist
- Log in using SecureDrop Workstation, and successfully decrypt the message. (This also tests key exports over the API and GPG compat)
- Using SDW, confirm you can read the first journalist reply. Send another reply.
- Log in as the source, confirm you can read both journalist replies.
- bonus: on the app server run
sudo -u www-data gpg --homedir /var/lib/securedrop/keys -k
and verify no source keys exist (just the journalist public key).
We focus on a few sources just to make it easier to keep track during QA, you could do this in combination with the next set below if you prefer.
- Fresh install of 2.6.0.
- Source A:
- Create a source, and make a submission that includes both a message and a file.
- On app server, run
sudo -u www-data gpg --homedir /var/lib/securedrop/keys -k
and verify your source's key is there - Send a journalist reply (via web, not SDW)
- Source B:
- Create a source, and make a submission that includes bot ha message and a file.
- Delete their GPG key pair, e.g.
sudo -u www-data gpg --homedir /var/lib/securedrop/keys --delete-secret-keys $fingerprint
- Log in as journalist, try to send a reply but get an error they have no key pair yet.
- Upgrade to 2.7.0.
- Source A:
- Open the DB (
sqlite3 /var/lib/securedrop/db.sqlite
on app server) and runSELECT * FROM sources
, verify your source's public key and fingerprint are there, but no secret key. - Log in as source, verify you can read the journalist reply
- Re-run the same database query, verify the secret key is present now too.
- On app server, run
sudo -u www-data gpg --homedir /var/lib/securedrop/keys -k
and verify your source's key is NOT there - As the source, submit another file + message
- Successfully decrypt all files + messages as the journalist (using SDW is fine for this)
- Open the DB (
- Source B:
- Open the DB, run
SELECT * FROM sources
and verify your source has no fingerprint, public key, nor secret key - Log in as journalist, confirm you still get an error they have no key pair yet.
- Log in as the source
- Open the DB again, run the same query and verify the source now has a fingerprint and key pair stored.
- Switch back to journalist, see that you can now send replies. Send a reply!
- As the source, read the journalist reply.
- Open the DB, run
- Fresh install of 2.6.0.
- On app server,
cd /var/www/securedrop
, thensudo -u www-data ./loaddata.py --source-count 10000
- Go and do something else while that finishes
- Open the DB (see previous instructions) and delete one source, e.g.
DELETE FROM sources WHERE id=20
(dangling GPG key) - Upgrade to 2.7.0, no errors.
- Install or upgrade occurs without error (from
apt-qa.freedom.press
per preflight procedure) - Source interface is available and version string indicates it is 2.7.0
- A message can be successfully submitted
- The updater GUI appears on boot
- The update successfully occurs to 2.7.0
- After reboot, updater GUI no longer appears