summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | tor-keymgr: Add tests for arti_prefix().Gabriela Moldovan2023-11-201-0/+11
| | |
| * | tor-keymgr: Add tests for arti_pattern().Gabriela Moldovan2023-11-201-0/+15
|/ / | | | | | | | | | | | | | | | | `T::arti_pattern()` returns an `ArtiPath` pattern that can can match any key of type `T`, regardless of the values of its denotators (the denotators are replaced by wildcards in the pattern). These tests will allow us to check we're not breaking pattern matching when we transition to derive-adhoc.
* | Merge branch 'publisher-todo' into 'main'Ian Jackson2023-11-203-5/+3
|\ \ | |/ |/| | | | | tor-hsservice: Remove and downgrade several TODO HSS See merge request tpo/core/arti!1742
| * tor-hsservice: Downgrade a couple of TODO HSS to TODO.Gabriela Moldovan2023-11-162-2/+2
| | | | | | | | These are definitely blockers.
| * tor-hsservice: Remove TODO HSS that does not make sense.Gabriela Moldovan2023-11-151-2/+0
| | | | | | | | I don't understand what this TODO is about, so let's remove it.
| * tor-hsservice: Downgrade TODO HSS to TODO.Gabriela Moldovan2023-11-151-1/+1
| |
* | Merge branch 'tracing-ratelim-redux' into 'main'Nick Mathewson2023-11-188-35/+1012
|\ \ | | | | | | | | | | | | New tor-log-ratelim crate (improved varsion) See merge request tpo/core/arti!1734
| * | Fix a broken doc linkNick Mathewson2023-11-161-1/+1
| | |
| * | ratelim: simplify LogState::reset.Nick Mathewson2023-11-161-4/+1
| | |
| * | ratelim: switch time list to start very short.Nick Mathewson2023-11-161-4/+20
| | | | | | | | | | | | | | | | | | | | | Since we batch up even the earliest events, it's important that the first interval be quite short: otherwise, the user might wait minutes between when a problem first occurs and when it is first reported.
| * | ratelim: Add a note about summary accuracyNick Mathewson2023-11-161-0/+6
| | |
| * | ratelim: Add a comment about behavior on reactor shutdownNick Mathewson2023-11-161-0/+5
| | |
| * | Ratelim: use now() to see how long we have been dormantNick Mathewson2023-11-161-9/+22
| | | | | | | | | | | | Also avoid infinite recursion in implementation of RuntimeSupport.
| * | ratelim: Note that timeouts are in minutes.Nick Mathewson2023-11-162-11/+2
| | |
| * | ratelim: refactor to avoid unreachable codeNick Mathewson2023-11-163-43/+22
| | | | | | | | | | | | Add a note that this uglifies a hidden API slightly.
| * | ratelim: rename limiter.rs to ratelim.rsNick Mathewson2023-11-162-5/+5
| | |
| * | log_ratelim: Use a real error type for install_runtime()Nick Mathewson2023-11-163-5/+16
| | |
| * | log_ratelim: Make final semicolon optional.Nick Mathewson2023-11-161-4/+6
| | |
| * | New tor-log-ratelim crateNick Mathewson2023-11-168-35/+992
| | | | | | | | | | | | | | | | | | | | | | | | | | | This crate is meant to provide rate-limited log messages to tell users about problems that can happen too frequently to log individually. This version is based off an earlier design, and off of conversations with @diziet. It still needs tests.
* | | Merge branch 'main' into 'main'gabi-2502023-11-171-13/+15
|\ \ \ | | | | | | | | | | | | | | | | Added macro for StorageConfig expand dir See merge request tpo/core/arti!1728
| * | | Added macro for StorageConfig expand dirrdbo2023-11-171-13/+15
| | | |
* | | | Merge branch 'fix-for-rust-release' into 'main'Nick Mathewson2023-11-161-0/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | arti-client test: add clippy exception See merge request tpo/core/arti!1745
| * | | | arti-client test: add clippy exceptionJim Newsome2023-11-161-0/+1
|/ / / / | | | | | | | | | | | | This clippy rule appears to be enabled by default in Rust 1.74.0
* | | | Merge branch 'publisher-rev-count' into 'main'gabi-2502023-11-164-50/+121
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | tor-hsservice: Generate revision counters using an OPE scheme. Closes #1053 See merge request tpo/core/arti!1744
| * | | tor-keymgr: Remove unnecessary borrow.Gabriela Moldovan2023-11-161-2/+2
| | | |
| * | | tor-hsservice: Reuse read_blind_id_keypair when building descriptors.Gabriela Moldovan2023-11-161-14/+6
| | | | | | | | | | | | | | | | This code was identical to that from `read_blind_id_keypair`.
| * | | tor-hsservice: Extract read_blind_id_keypair out of Reactor (fmt).Gabriela Moldovan2023-11-161-36/+34
| | | |
| * | | tor-hsservice: Extract read_blind_id_keypair out of Reactor.Gabriela Moldovan2023-11-161-12/+10
| | | | | | | | | | | | | | | | This will soon be used in `publish/descriptor.rs` too.
| * | | tor-hsservice: Pass the current time as an argument to ↵Gabriela Moldovan2023-11-161-3/+4
| | | | | | | | | | | | | | | | generate_revision_counter.
| * | | tor-hsservice: Add note about computing ope_key once per TP.Gabriela Moldovan2023-11-161-0/+2
| | | |
| * | | tor-hsservice: Link the the spec instead of referencing section number.Gabriela Moldovan2023-11-161-2/+3
| | | |
| * | | tor-hsservice: Remove dead code.Gabriela Moldovan2023-11-161-21/+0
| | | | | | | | | | | | | | | | | | | | | | | | This code is no longer needed: we're now using `generate_revision_counter()` to generate revision counters using the OPE scheme from appendix F.2 rend-spec-v3.
| * | | tor-hsservice: Generate revision counters using an OPE scheme.Gabriela Moldovan2023-11-161-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The publisher now generates revision counters according to the "encrypted time in period" scheme described in appendix F.2 rend-spec-v3. Part of #1053
| * | | tor-hsservice: Add function for generating revision counters using OPE scheme.Gabriela Moldovan2023-11-162-3/+107
| | | | | | | | | | | | | | | | Part of #1053
| * | | tor-hsservice: Rename period to period_ctx for clarity.Gabriela Moldovan2023-11-161-5/+4
| | | | | | | | | | | | | | | | `period` is actually a `TimePeriodContext`, not a `TimePeriod.
| * | | tor-hscrypto: Make offset_within_period() work with timestamps from later ↵Gabriela Moldovan2023-11-161-2/+2
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | periods. Hidden services can have multiple "active" time periods for which they generate descriptors. We need to be able to compute the offset of a timestamp from the start of a given time period, even if that timestamp falls within the "next" time period (for example, when publishing descriptors for the "previous" time period, the `when` timestamp will fall outside the `(start, end)` range of the "previous" time period).
* | | Merge branch 'aes_ope' into 'main'Nick Mathewson2023-11-166-0/+224
|\ \ \ | | | | | | | | | | | | | | | | Implementation for AES-based Order-preserving encryption See merge request tpo/core/arti!1741
| * | | Implementation for AES-based Order-preserving encryptionNick Mathewson2023-11-166-0/+224
| | | | | | | | | | | | | | | | | | | | | | | | This is the approach from appendix F.2 in rend-spec. Part of #1053.
* | | | Merge remote-tracking branch 'public/hs_begin'Nick Mathewson2023-11-163-4/+16
|\ \ \ \
| * | | | hss: document behavior needed for indistinguishabilityNick Mathewson2023-10-231-2/+12
| | | | |
| * | | | hsrproxy: Document what we check about begin messagesNick Mathewson2023-10-231-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specifically, we check nothing except the port. This matches the behavior of C-tor and the documentation in torspec!179.
| * | | | hsrproxy: Send back DONE reasons.Nick Mathewson2023-10-232-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | This is in keeping with the behavior of C tor, and of torspec!179.
* | | | | Merge branch 'update-rustc-build-repro' into 'main'Nick Mathewson2023-11-162-2/+4
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | update rustc for reproducible builds See merge request tpo/core/arti!1743
| * | | | add tpa tag to coverage-aggregatedtrinity-1686a2023-11-161-0/+2
| | | | | | | | | | | | | | | | | | | | otherwis it fails when it gets scheduled on a non-ipv6 ready runner
| * | | | update rustc for reproducible buildstrinity-1686a2023-11-162-2/+2
|/ / / /
* | | | Merge branch 'strip_onion_begin' into 'main'Alexander Færøy2023-11-154-2/+49
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | Send less information in onion service BEGIN messages Closes #1077 See merge request tpo/core/arti!1738
| * | | Send less information in onion service BEGIN messagesNick Mathewson2023-11-154-2/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While looking for differences, we found that C tor always omits the flags and the hostname from a BEGIN message sent on an onion service circuit. In torspec!179, we specified that behavior. This patch brings arti into conformance. Closes #1077.
* | | | Merge branch 'upgrades-20231115' into 'main'gabi-2502023-11-1517-44/+53
|\ \ \ \ | |/ / / |/| | | | | | | | | | | Upgrade a couple of dependencies See merge request tpo/core/arti!1736
| * | | Require a more up-to-date version of time.Nick Mathewson2023-11-151-1/+1
| | | | | | | | | | | | | | | | | | | | (rusqlite fails with time 0.3.18, which is the version it claims to require.)
| * | | Upgrade to rusqlite 0.30.0Nick Mathewson2023-11-152-7/+7
| | | |