Skip to content

2.7.0 Test Plan

Kunal Mehta edited this page Oct 18, 2023 · 12 revisions

2.7.0 QA Checklist - IN PROGRESS

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!

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.

Environment

  • Install target:
  • Tails version:
  • Test Scenario:
  • SSH over Tor:
  • Release candidate:
  • General notes:

Basic Server Testing

  • 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
  • QA Matrix checks pass

Command Line User Generation

  • Can successfully add admin user and login

(Optional) Administration

  • 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

(Optional) Application Acceptance Testing

Source Interface

Landing page base cases
  • JS warning bar does not appear when using Security Slider high
  • JS warning bar does appear when using Security Slider Low
First submission base cases
  • 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
Returning source base cases
  • 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

Journalist Interface

Login base cases
  • 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
Index base cases
  • Filter by codename works
  • Starring and unstarring works
  • Click select all selects all submissions
  • Selecting all and clicking "Download" works
Individual source page
  • 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

Basic Tails Testing

After updating to this release candidate and running securedrop-admin tailsconfig

  • The Updater GUI appears on boot

2.7.0 release-specific changes

Sequoia-related changes

(note that some of this overlaps with the "Basic Server Testing", there's no need to do it twice)

Fresh install
  • 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).

Upgrade from 2.6.0 (few sources)

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 run SELECT * 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)
  • 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.

Upgrade from 2.6.0 (many sources)

  • Fresh install of 2.6.0.
  • On app server, cd /var/www/securedrop, then sudo -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.

Preflight testing

Basic testing

  • 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

Tails

  • The updater GUI appears on boot
  • The update successfully occurs to 2.7.0
  • After reboot, updater GUI no longer appears
Clone this wiki locally