summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | slug: Provide BadSlug::EmptySlugNotAllowedIan Jackson2024-01-291-0/+12
| | |
* | | Merge branch 'make-secure-dir' into 'main'Ian Jackson2024-01-292-0/+19
|\ \ \ | |/ / |/| | | | | | | | fs_mistrust: Provide CheckedDir::make_secure_dir See merge request tpo/core/arti!1927
| * | fs_mistrust: Provide CheckedDir::make_secure_dirIan Jackson2024-01-292-0/+19
|/ / | | | | | | | | | | state_dir wants this, to descend into subdirectories. I think the implementation could be improved - see the TODO.
* | Merge branch 'publisher-tasks' into 'main'gabi-2502024-01-261-3/+67
|\ \ | | | | | | | | | | | | | | | | | | tor-hsservice: Abort any pending desc uploads if shutting down. Closes #1253 See merge request tpo/core/arti!1921
| * | tor-hsservice: Downgrade a debug message to trace.Gabriela Moldovan2024-01-261-1/+4
| | |
| * | tor-hsservice: Abort any pending desc uploads if shutting down.Gabriela Moldovan2024-01-261-4/+46
| | | | | | | | | | | | | | | | | | | | | | | | `Reactor::upload_for_time_period` now exits as soon as the Reactor is dropped (its upload tasks check if `shutdown_tx` was dropped before proceeding). Closes #1253
| * | tor-hsservice: Add an UploadError type for interruption due to shutdown.Gabriela Moldovan2024-01-261-0/+12
| | | | | | | | | | | | | | | This error will be returned if an upload is aborted because the reactor shutting down.
| * | tor-hsservice: Document how the publisher tasks are shut down.Gabriela Moldovan2024-01-261-0/+7
|/ / | | | | | | Part of #1253
* | Merge branch 'set_faulty_eventually' into 'main'Nick Mathewson2024-01-262-6/+24
|\ \ | | | | | | | | | | | | | | | | | | HSS: Mark an Ipt as faulty if it fails continuously for 15 minutes. Closes #1248 See merge request tpo/core/arti!1915
| * | HSS: Mark an Ipt as faulty if it fails continuously for 15 minutes.Nick Mathewson2024-01-252-6/+24
| | | | | | | | | | | | Closes #1248.
* | | Merge branch 'verifier' into 'main'Nick Mathewson2024-01-262-2/+3
|\ \ \ | | | | | | | | | | | | | | | | fs_mistrust: Expose CheckedDir::verifier See merge request tpo/core/arti!1928
| * | | fs_mistrust: Expose CheckedDir::verifierIan Jackson2024-01-252-2/+3
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | I'm not sure why this isn't public. It seems like an obviously reasonable transformation. If I as author of !1927 had been an external contributor, I could have worked around the lack of .make_secure_directory() if .verifier() had existed. So I think exposing it would be useful.
* | | Merge branch 'slug2' into 'main'Ian Jackson2024-01-252-94/+62
|\ \ \ | | | | | | | | | | | | | | | | TryIntoSlug See merge request tpo/core/arti!1922
| * | | state_dir: Remove a now-unused allowIan Jackson2024-01-251-1/+0
| | | |
| * | | state_dir: Replace InstanceIdString with Slug and SlugRefIan Jackson2024-01-251-44/+14
| | | | | | | | | | | | | | | | And tidy up some of the docs to refer to the slug module.
| * | | state_dir: Abolish now-obsolete Slug trait renameIan Jackson2024-01-251-5/+3
| | | |
| * | | slugs: Provide TryIntoSlug, and replace state_dir::Slug with itIan Jackson2024-01-252-47/+48
| | | |
* | | | Merge branch 'tempdir' into 'main'Ian Jackson2024-01-2510-70/+153
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | test-temp-dir: New crate See merge request tpo/core/arti!1925
| * | | | test-temp-dir: Plan when we think we'll do 1.xIan Jackson2024-01-251-0/+1
| | | | |
| * | | | test-temp-dir: Drop a TODO/allowIan Jackson2024-01-251-3/+0
| | | | |
| * | | | test-temp-dir: Update docs for it being a crateIan Jackson2024-01-251-5/+5
| | | | |
| * | | | test-temp-dir: Improve the docs and fix broken linksIan Jackson2024-01-251-9/+22
| | | | |
| * | | | test-temp-dir: New crateIan Jackson2024-01-2510-67/+139
| | | | | | | | | | | | | | | | | | | | | | | | | Introduce the crate, move the code motion, and make minimal necessary changes.
* | | | | 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