Skip to content

Commit

Permalink
Merge pull request #31 from guardian/merge-0.14.0
Browse files Browse the repository at this point in the history
Merge freedomofpress 0.14.0
  • Loading branch information
philmcmahon authored Feb 20, 2025
2 parents d6b17f7 + 902a24c commit 0dcd86f
Show file tree
Hide file tree
Showing 115 changed files with 7,801 additions and 3,446 deletions.
39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/proposal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: Technical proposal
about: propose a major technical or architectural change

---

<!--Use this template to help kickstart discussions of specific technical and architectural proposals. It's OK to be unclear about who should be involved or even what to propose to solve the problem under discussion.-->

## Proposal:

### Affected components
<!--Which system components are (probably) in scope? (list as many as make sense)
- SecureDrop Server
- SecureDrop Workstation
- SecureDrop Client
- Don't know
-->

### People and roles
<!--Tag people who should be involved in this proposal.-->

### Problem Statement
<!--Describe the problem that needs solving, or the architectural change that you'd like to see.-->

### Solution impact
<!--If we do solve this problem, what impact does it have, and for who?-->

### Requirements and constraints
<!--What requirements would a solution to the problem above have to satisfy? What existing technical constraints would affect potential solutions?-->

### Exploration
<!--Provide more context for the problem and potential solutions. (OK to leave blank if you want more group input.)-->

### Initial proposal
<!-- If you have one, propose a solution to the problem. (OK to leave blank, OK to duplicate this section in future edits with alternative proposals.) -->

### Selected proposal
<!--Leave blank for now - this section will record the agreed-upon solution to the problem.-->

2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
# Only build for latest push/PR unless it's main or release/
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && !startsWith( github.ref, 'refs/heads/release/' ) }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && !startsWith( github.ref, 'refs/heads/release/' ) && !startsWith( github.ref, 'refs/heads/gh-readonly-queue/' ) }}

defaults:
run:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cargo-vet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ on:
# Only build for latest push/PR unless it's main or release/
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && !startsWith( github.ref, 'refs/heads/release/' ) }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && !startsWith( github.ref, 'refs/heads/release/' ) && !startsWith( github.ref, 'refs/heads/gh-readonly-queue/' ) }}

jobs:
cargo-vet:
name: Vet Dependencies
runs-on: ubuntu-latest
# Keep version in sync with rust-toolchain.toml
container: rust:1.78.0
container: rust:1.81.0
env:
CARGO_VET_VERSION: 0.9.0
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
# Only build for latest push/PR unless it's main or release/
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && !startsWith( github.ref, 'refs/heads/release/' ) }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && !startsWith( github.ref, 'refs/heads/release/' ) && !startsWith( github.ref, 'refs/heads/gh-readonly-queue/' ) }}

defaults:
run:
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
rust:
runs-on: ubuntu-latest
# Keep version in sync with rust-toolchain.toml
container: rust:1.78.0
container: rust:1.81.0
steps:
- uses: actions/checkout@v4
- name: Configure Qubes repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
# Only build for latest push/PR unless it's main or release/
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && !startsWith( github.ref, 'refs/heads/release/' ) }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && !startsWith( github.ref, 'refs/heads/release/' ) && !startsWith( github.ref, 'refs/heads/gh-readonly-queue/' ) }}

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
rust-audit:
runs-on: ubuntu-latest
# Keep version in sync with rust-toolchain.toml
container: rust:1.78.0
container: rust:1.81.0
steps:
- uses: actions/checkout@v4
- name: Check Rust dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
# Only build for latest push/PR unless it's main or release/
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && !startsWith( github.ref, 'refs/heads/release/' ) }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && !startsWith( github.ref, 'refs/heads/release/' ) && !startsWith( github.ref, 'refs/heads/gh-readonly-queue/' ) }}

defaults:
run:
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
if: ${{ matrix.component == 'proxy' }}
- uses: actions/checkout@v4
# Install Rust, keep in sync with rust-toolchain.toml
- uses: dtolnay/rust-toolchain@1.78.0
- uses: dtolnay/rust-toolchain@1.81.0
if: ${{ matrix.component == 'proxy' }}
- name: Install dependencies
run: |
Expand Down
32 changes: 16 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ safety: ## Run safety dependency checks on build dependencies
--ignore 67895 \
--ignore 70612 \
--ignore 71591 \
--ignore 74735 \
-r

.PHONY: shellcheck
Expand Down
23 changes: 22 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Changelog

## 0.14.0

* Add support for selecting and deleting multiple sources (#2208, #2188, #2230, #2252, #2293, #2299, #2300)
* Use builtin `venv` module instead of `virtualenv` (#2246)
* Improve logging of API failures (#2245)
* Improve client keyboard shortcuts handling (#2209)
* Fix client crash when a source with an in-progress download is deleted (#2217)
* Improve exception handling for download failures (#2275, #2276)
* Add French language support (#2283)
* Updated multiple dependencies (#2253, #2267, #2214, #2210, #2211)

* Internal and development
* Switch securedrop-client package Architecture to "any" (#2178)
* Have `run.sh` automatically emit full debug logs (#2198)
* Have `make build-debs` print tag signature, if any (#2205)
* Upgrade Rust toolchain to 1.81.0 (#2215)
* Fixes to SD test cassettes (#2225)
* Re-enable `ruff` for files in proxy/ (#2234)
* Don't have CI cancel GitHub merge queue jobs (#2235)
* Updated multiple dependencies (#2280, #2181, #2183)

## 0.13.2

* Don't let Range header persist into other requests (#2195)
Expand All @@ -12,7 +33,7 @@
* Broaden printing support to all filetypes supported by LibreOffice (#2166)
* Display an error message if user tries to print an unprintable file type (#2166)
* Use single PrintDialog GUI element for all print actions (#2143)
* Remove unused _from_string methods from SDK (#2144)
* Remove unused `_from_string` methods from SDK (#2144)
* Update build toolchain and `setuptools` for CVE-2024-6345 (#2136, [securedrop-builder#501](https://github.com/freedomofpress/securedrop-builder/pull/501))
* Update `ruff` to 0.5.4 (#2138)

Expand Down
8 changes: 8 additions & 0 deletions client/.semgrep/custom-rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,11 @@ rules:
# Forbid any other use of assert
- pattern-regex: |
assert.*
- id: enforce-setshortcut-style
patterns:
- pattern-not-regex: setShortcut\(Shortcuts\.(.*?)\)
- pattern-regex: setShortcut\((.*?)\)
message: "Use Shortcuts enum to register shortcuts"
languages: [python]
severity: WARNING
1 change: 1 addition & 0 deletions client/MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ prune securedrop_client/locale
# graft securedrop_client/locale/$LANG
#
# Please keep this list alphabetized.
graft securedrop_client/locale/fr
graft securedrop_client/locale/pt_PT
graft securedrop_client/locale/zh_Hans
Loading

0 comments on commit 0dcd86f

Please sign in to comment.