summaryrefslogtreecommitdiff
path: root/crates/tor-dirserver/src/http
Commit message (Collapse)AuthorAgeFilesLines
* Much formatting churn for 2024 editionIan Jackson2026-07-221-2/+2
|
* maint: Run maint/add_warning to deny string slicesClara Engler2026-06-091-0/+1
| | | | | | | | | | | | This commit executes maint/add_warning with the just added change to deny string slices except in tests. I recommend auditing this by checking out the previous commit followed by running the script yourself and then verifying that the diff is identical to this commit. This commit makes cargo clippy fail. We will add exceptions in the next commit.
* Merge branch 'weak_table_explicit_hasher' into 'main'David Goulet2026-03-241-0/+5
|\ | | | | | | | | | | | | Force use of standard hasher with weak_tables. Closes #2418 See merge request tpo/core/arti!3801
| * Force use of standard hasher with weak_tables.Nick Mathewson2026-03-241-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | Closes #2418. Fixes TROVE-2026-005, where we would use a less cryptographically secure (and probably less DoS resistant) hash function for these tables if: - We are built alongside another crate that uses `weak-table` - That crate enables the `weak-table/ahash` feature. - We are running on a system without hardware AES. Severity: Low
* | Fix typosTobias Stoeckmann2026-03-241-4/+4
|/ | | | Typos found with codespell
* tor-dirserver: Rename `doc_id` to `docid`Clara Engler2026-01-191-11/+11
| | | | | Because we went with `docid` in the database (due to `rowid`), it is only natural to call the code variables `docid` too.
* tor-dirserver: Rename sha256 to docid in schemaClara Engler2026-01-191-1/+1
| | | | | | This commit renames the sha256 column to docid for the reason that we agreed upon making the schema visible to all modules, so if we were to encapsulate docid properly, this change is only natural.
* database: Introduce DocumentIdClara Engler2026-01-191-28/+16
| | | | | | This commit introduces a new type in the database module named `DocumentId` for abstracting the underlying content-addressable hash algorithm we are using.
* Fix name of clippy lint to unchecked_time_subtraction (2)Ian Jackson2025-11-061-1/+1
| | | | Run maint/add_warning
* tor-dirserver: clippy fixesClara Engler2025-11-031-2/+2
|
* tor-dirserver: Apply database changes to httpClara Engler2025-11-031-50/+52
| | | | | | | | | | This commit applies the recent changes to the database module into the http and http::cache module. Notably, this includes the use of the database::sql! macro as well as the use of database::read_tx and database::rw_tx for creation transaction and saving, as well as retrying, although the latter one is subject to SQLite's own busy handler
* tor-dirserver: Make database full syncClara Engler2025-10-301-55/+50
| | | | | | | | | | This commit makes the entire database operations synchronous, thereby replacing deadpool with r2d2. The full motivation is outlined in a rustdoc comment at the top of the `database` module, but it can be summarized to the fact that SQLite is by design inherently synchronous due to directly interfacing with the file system.
* tor-dirmirror: Introduce the `sql!` macroClara Engler2025-10-301-0/+2
| | | | | | This commit introduces the no-op sql macro used to mark string literals as SQL statements. It is purely semantical and serves the purpose to quickly identify string literals as SQL statements.
* tor-dirserver: Expose Arc of StoreCacheClara Engler2025-10-151-9/+9
|
* tor-dirserver: Do not lock during db queryClara Engler2025-10-151-7/+14
|
* tor-dirserver: Fix rustdoc commentClara Engler2025-10-151-3/+3
|
* tor-dirserver: Some clippy fixesClara Engler2025-10-151-0/+13
|
* tor-dirserver: Remove due TODOClara Engler2025-10-151-4/+0
|
* tor-dirserver: Improve the error situationClara Engler2025-10-151-69/+78
|
* tor-dirserver: Move StoreCache into own moduleClara Engler2025-10-151-0/+160