summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
* | | tor-persist: Forbid slugs from starting with a hyphen.Gabriela Moldovan2024-01-313-5/+44
| | |
* | | tor-keymgr: Add a TODO about removing ValidatedString.Gabriela Moldovan2024-01-311-0/+2
| | |
* | | tor-keymgr: Remove the Slug tests (fmt).Gabriela Moldovan2024-01-312-8/+3
| | |
* | | tor-keymgr: Remove the Slug tests.Gabriela Moldovan2024-01-311-34/+0
| | | | | | | | | | | | These tests belong in tor_persist now.
* | | tor-keymgr: Abolish ArtiPathComponent.Gabriela Moldovan2024-01-317-104/+57
| | | | | | | | | | | | | | | | | | `ArtiPathComponent`s are really just `Slugs`. Part of #1193, #1092
* | | tor-hsclient: Use Slug for HsClientSpecifier (fmt).Gabriela Moldovan2024-01-311-11/+3
| | |
* | | tor-hsclient: Use Slug for HsClientSpecifier.Gabriela Moldovan2024-01-312-4/+21
| | |
* | | tor-keymgr: Make ArtiPathComponent a Slug internally (fmt).Gabriela Moldovan2024-01-313-36/+57
| | |
* | | tor-keymgr: Make ArtiPathComponent a Slug internally.Gabriela Moldovan2024-01-313-104/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will make it easier to replace `ArtiPathComponent` with `Slug` later down the line. Note this changes the syntax rules of `ArtiPathComponent`: * previously `ArtiPathComponent`s could be unicode strings, (now they are lowercase ASCII alphanumerics, plus `-`, `_`) * previously `ArtiPathComponent`s couldn't start with `-` or `_`, but now they can Part of #1193, #1092
* | | tor-keymgr: Strip .onion suffix from HsId before building Slug.Gabriela Moldovan2024-01-311-3/+28
| | | | | | | | | | | | | | | | | | We are about to replace `ArtiPathComponent` with `Slug`, but `Slug`s don't support `.`, so let's strip the `.onion` suffix before encoding it in the `ArtiPath`.
* | | tor-hsservice: Make Slug the underlying repr of HsNickname.Gabriela Moldovan2024-01-311-19/+24
| | | | | | | | | | | | | | | | | | | | | We represent `HsNickname` as a `Slug` instead of an `ArtiPathComponent` (we are about to remove the latter). Part of #1092
* | | tor_persist::slug: Allow hyphens in Slugs.Gabriela Moldovan2024-01-311-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | The internal representation of `HsNickname` will soon be `Slug`, and nicknames can contain hyphens, so let's add `-` to the allowed charset. Part of #1092
* | | Upgrade to strum 0.26Nick Mathewson2024-01-3010-10/+10
|/ /
* | Merge branch 'empty-slug' into 'main'Ian Jackson2024-01-291-0/+12
|\ \ | | | | | | | | | | | | slug: Provide BadSlug::EmptySlugNotAllowed See merge request tpo/core/arti!1933
| * | slug: Provide BadSlug::EmptySlugNotAllowedIan Jackson2024-01-291-0/+12
| | |
* | | 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.
* | 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-258-70/+141
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 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-258-67/+127
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* / | | | slug: Fix maint/check_doc_featuresIan Jackson2024-01-251-0/+2
|/ / / /
* | | | Merge branch 'rustls' into 'main'Ian Jackson2024-01-252-28/+35
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-252-28/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-254-42/+290
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-252-0/+41
| | | | | |
| * | | | | 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.