summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | Merge branch 'slug4' into 'main'gabi-2502024-01-251-0/+5
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | slug: Implement the AsRefs for Slug as well as for SlugRef See merge request tpo/core/arti!1929
| * | | | | slug: Implement the AsRefs for Slug as well as for SlugRefIan Jackson2024-01-251-0/+5
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | Otherwise you can't use &Slug where someone wants &impl AsRef<Path>, which is rather sad.
* | | | | Merge branch 'slug3' into 'main'gabi-2502024-01-251-0/+2
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | slug: Fix maint/check_doc_features See merge request tpo/core/arti!1926
| * | | | slug: Fix maint/check_doc_featuresIan Jackson2024-01-251-0/+2
|/ / / /
* | | | Merge branch 'rustls' into 'main'Ian Jackson2024-01-253-56/+62
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upgrade to futures-rustls and rustls 0.22. Closes #1179 See merge request tpo/core/arti!1919
| * | | | Upgrade to futures-rustls and rustls 0.22.Nick Mathewson2024-01-253-56/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The futures-rustls crate has supplanted the async-rustls crate, and it requires/embeds rustls 0.22. Closes #1179.
* | | | | Merge branch '1237_fixes' into 'main'Ian Jackson2024-01-251-7/+38
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | Clean up some error-handling issues in ipt_establisher Closes #1237 See merge request tpo/core/arti!1916
| * | | | Remove a comment about distinguishing errorsNick Mathewson2024-01-241-2/+3
| | | | | | | | | | | | | | | | | | | | (Replace it with a better comment.)
| * | | | hss: Comment on use of CircProto error in MsgHandler.Nick Mathewson2024-01-241-2/+12
| | | | |
| * | | | hss: Report failures to send rendezvous requestsNick Mathewson2024-01-241-3/+23
| | | | |
* | | | | Merge branch 'replay' into 'main'Ian Jackson2024-01-255-42/+291
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tor-hsservice: replay: Recover from partial writes Closes #1207 See merge request tpo/core/arti!1920
| * | | | | tor-hsservice: replay: partial write test - commentaryIan Jackson2024-01-251-0/+29
| | | | | |
| * | | | | tor-hsservice: replay: partial write testIan Jackson2024-01-251-2/+114
| | | | | |
| * | | | | tor-hsservice: replay: partial write test, skeletonIan Jackson2024-01-253-0/+42
| | | | | |
| * | | | | test_temp_dir: Split up .used_by (fmt)Ian Jackson2024-01-251-4/+1
| | | | | |
| * | | | | test_temp_dir: Split up .used_byIan Jackson2024-01-253-14/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This method combined two things: 1. the lifetime guard API 2. creation of a subdirectory. 2 is available in raw form too, but not 1. So rename the combined method to .subdir_used_by and implement it in terms of a new .used_by which doesn't make a subdirectory.
| * | | | | tor-hsservice: Recover from partial writesIan Jackson2024-01-251-2/+29
| | | | | | | | | | | | | | | | | | | | | | | | Fixes #1207.
| * | | | | tor-hsservice: replay: Introduce an EH IEFE (fmt)Ian Jackson2024-01-251-2/+1
| | | | | |
| * | | | | tor-hsservice: replay: Introduce an EH IEFEIan Jackson2024-01-251-7/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We're going to want to do more things here, all of which want the same error handling.
| * | | | | tor-hsservice: replay: Combine PersistFileIan Jackson2024-01-251-16/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This combines two logically-parallel options. Also, it provides us a place to put another piece of information we want in a moment.
| * | | | | tor-hsservice: replay: Break out truncate_to_multipleIan Jackson2024-01-251-8/+13
| | | | | |
| * | | | | tor-hsservice: replay: Break up a paragraphIan Jackson2024-01-251-1/+3
| | | | | |
* | | | | | Merge branch 'slug' into 'main'Ian Jackson2024-01-254-0/+387
|\ \ \ \ \ \ | | |_|_|/ / | |/| | | / | |_|_|_|/ |/| | | | Introduce tor_persist::slug module See merge request tpo/core/arti!1912
| * | | | tor_persist::slug: Abolish ForbiddenOnWindows on non-WindowsIan Jackson2024-01-251-21/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Abolish it, sprinkling cfg all over, rather than having it be uninhabited. See https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1912#note_2988746 https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1912#note_2988748
| * | | | Introduce tor_persist::slug moduleIan Jackson2024-01-254-0/+399
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I need this for state_dir (#1163, !1853). I intend that this should be used for arti paths (#1092, #1193). See also #1195. Implements the spec in #1192 but doesn't connect it to anything yet.
* | | | | Merge branch 'reconfig-weak-refs' into 'main'gabi-2502024-01-252-10/+23
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | arti: Use Weak references for the reconfigurable modules. See merge request tpo/core/arti!1917
| * | | | arti: Only exit if all the modules have been dropped.Gabriela Moldovan2024-01-251-7/+8
| | | | | | | | | | | | | | | | | | | | Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1917#note_2988815
| * | | | arti: Use Weak references for the reconfigurable modules (fmt).Gabriela Moldovan2024-01-251-6/+1
| | | | |
| * | | | arti: Use Weak references for the reconfigurable modules.Gabriela Moldovan2024-01-252-5/+22
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, the `ProxySet` (and all the other `reconfigurable_modules`) were kept alive by the `watch_for_config_changes` background thread, which was preventing them from being dropped when `run()` exited. IOW, onion services never received the shutdown signal. Now `watch_for_config_changes` takes `Weak` references, and the only strong references to the modules are kept in the `reconfigurable_modules` local variable in `run()`, which is dropped when `run()` exits (e.g. on SIGINT). This allows onion services to execute their shutdown logic on CTRL-C. Part of #1244
* | | | Merge branch 'doc-link-fix' into 'main'Nick Mathewson2024-01-251-1/+1
|\ \ \ \ | |/ / / |/| | | | | | | | | | | tor-hsservice: Fix a broken doc link. See merge request tpo/core/arti!1918
| * | | tor-hsservice: Fix a broken doc link.Gabriela Moldovan2024-01-251-1/+1
|/ / /
* | | Merge branch 'publisher_consts' into 'main'gabi-2502024-01-252-34/+66
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Resolve comments about publisher constants Closes #1121 See merge request tpo/core/arti!1911
| * | | Typo fixes.gabi-2502024-01-241-2/+2
| | | |
| * | | hss: Use estimator to determine a timeout for an hsdir uploadNick Mathewson2024-01-242-5/+29
| | | | | | | | | | | | | | | | This should give us better behavior if the network is slow.
| * | | hss: Revise timeout code for upload attemptsNick Mathewson2024-01-241-30/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Now we have clearer-named constants for overall and individual timeouts, and we use them in the right places. Closes #1121.
| * | | hss: Downgrade comments on some publisher constants.Nick Mathewson2024-01-241-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These may need tuning eventually, but there's no reason to think that we have a better guess now. (They don't correspond to anything that C tor does, so we don't have that to guide us.) Part of #1121; see there for some more discussion.
* | | | Merge branch 'state' into 'main'Ian Jackson2024-01-249-64/+163
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move state_dir to tor_persist and start to implement it Closes #1205 See merge request tpo/core/arti!1913
| * | | | tor-persist: state_dir: Demote anyhow to dev depIan Jackson2024-01-241-2/+2
| | | | | | | | | | | | | | | | | | | | It's not a runtime dep, in fact.
| * | | | tor-persist: load_store: More documentationIan Jackson2024-01-241-3/+29
| | | | |
| * | | | Fix doc comments.Nick Mathewson2024-01-242-2/+2
| | | | |
| * | | | tor-persist: state_dir: Implement the StorageHandle methodsIan Jackson2024-01-241-6/+36
| | | | | | | | | | | | | | | | | | | | | | | | | You can't call these yet and there aren't any tests. But this demonstrates use of the previous refactoring.
| * | | | tor-persist: state_dir: (intend to) use tor_persist::ErrorIan Jackson2024-01-241-16/+4
| | | | |
| * | | | tor-persist: have load_store module provide deletionIan Jackson2024-01-242-0/+10
| | | | |
| * | | | tor-persist: Provide load_store module for use by state_dirIan Jackson2024-01-243-22/+58
| | | | |
| * | | | tor-persist: Use correct pathnames in errorsIan Jackson2024-01-241-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this, we would say the problem happened while accessing Resource::File { container: "STATE_DIR", file: "KEY.json", } which would imply that we failed to access "STATE_DIR/KEY.json". But that's not true: we *actually* access "STATE_DIR/state/KEY.json".
| * | | | state-dir: Use a real lock guardIan Jackson2024-01-243-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | Bring in the fslock-guard crate and replace the Void in the structs. (Separated out since this contains Cargo.lock churn.)
| * | | | state-dir: Move from tor-hsservice to tor-persistIan Jackson2024-01-246-12/+15
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And, instead of being a hidden module, it's a public experimental one. I have feature-gated all the new dependencies since we probably want to feature-gate this module in perpetuity, since some builds of Arti won't need it. Closes #1205
* | | | Merge branch 'ahf/s101-2023-q4' into 'main'Nick Mathewson2024-01-241-0/+26
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Update sponsor 101 numbers. See merge request tpo/core/arti!1905
| * | | | Update sponsor 101 numbers.Alexander Færøy2024-01-231-0/+26
| | | | |
* | | | | Merge branch 'onion-svc-status' into 'main'gabi-2502024-01-248-97/+258
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | tor-hsservice: Make the publisher update the `OnionServiceStatus` See merge request tpo/core/arti!1902