summaryrefslogtreecommitdiff
path: root/crates/tor-hsservice
Commit message (Collapse)AuthorAgeFilesLines
...
| * | state_dir sketch: Pass more information to disposeIan Jackson2024-01-122-3/+22
| | | | | | | | | | | | | | | Provide the last modification time too, since we have it. This allows handlers to things not contemplated by the convenience API.
| * | state_dir sketch: Fix purge trait APIIan Jackson2024-01-121-13/+32
| | | | | | | | | | | | | | | | | | | | | | | | This needs to take a value. The caller is going to have some context, eg a configured list of instances. This means that it no longer has InstanceIdentity as a supertrait. Have the purge handler return the retain for time as a method.
| * | state_dir sketch: Rename "expire" to "purge"Ian Jackson2024-01-121-9/+9
| | | | | | | | | | | | | | | Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1853#note_2983029
| * | state_dir sketch: Make flock guards and locking clearerIan Jackson2024-01-121-3/+8
| | |
| * | state_dir sketch: Rename Liveness::PossiblyUnused from UnusedIan Jackson2024-01-121-3/+5
| | | | | | | | | | | | | | | | | | It is OK to return this even for used things, or if you don't know - the API user (trait implementor) gets a second bite at the cherry in `dispose`.
| * | state_dir sketch: Make an ExpirableInstanceIdentity traitIan Jackson2024-01-121-10/+31
| | | | | | | | | | | | | | | Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1853#note_2982352
| * | state_dir sketch: Make an InstanceIdentity traitIan Jackson2024-01-121-19/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This gives us somewhere central to hang the rules about names, and avoids us passing un-typed strings into the StateDirectory methods. This inhibits certain kinds of future dynamism, without more work, but that's fine. (It also produces more generics in the functions, but we can avoid too much monomorphisation with the inner function pattern.) Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1853#note_2982354
| * | state_dir sketch: Make a Slug traitIan Jackson2024-01-121-7/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | This gives us somewhere central to hang the rules about slugs. (The trait is just an alias for ToString.) Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1853#note_2982354
| * | state_dir sketch: Rename InstanceIdString (from InstanceIdentity)Ian Jackson2024-01-121-5/+5
| | | | | | | | | | | | | | | We're going to want the InstanceIdentity name for a trait. Also this is clearer I think.
| * | Proposed new state facilityIan Jackson2024-01-123-0/+418
| |/ | | | | | | | | | | | | | | | | | | | | | | A proposal for #1163. I haven't updated any of the calling code in tor-hsservice yet. I think the way this will be used ought to be fairly obvious from the API. This commit also contains a file of notes about stuff I found in an arti state directory. These may be too random even to put in doc/dev/notes, so for now I've put them next to state_dir.rs.
* | Merge branch 'downgrade-todo' into 'main'Nick Mathewson2024-01-121-1/+1
|\ \ | | | | | | | | | | | | tor-hsservice: Downgrade a TODO HSS to TODO. See merge request tpo/core/arti!1877
| * | tor-hsservice: Downgrade a TODO HSS to TODO.Gabriela Moldovan2024-01-111-1/+1
| |/
* / tor-hsservice: Replace TODO HSS with references to gitlab issues.Gabriela Moldovan2024-01-111-2/+2
|/ | | | | This whole file will go away when this comment is addressed: https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1837#note_2977513
* Merge branch 'ratelim' into 'main'Nick Mathewson2024-01-112-7/+13
|\ | | | | | | | | tor-hsservice: todos: Use log_ratelim at one call site See merge request tpo/core/arti!1871
| * tor-hsservice: todos: Use log_ratelim at one call siteIan Jackson2024-01-112-7/+13
| |
* | Merge branch 'todo-replay' into 'main'gabi-2502024-01-111-3/+3
|\ \ | | | | | | | | | | | | tor-hsservice: todos in replay.rs See merge request tpo/core/arti!1869
| * | tor-hsservice: todos: Remove blanket allowIan Jackson2024-01-111-2/+0
| | | | | | | | | | | | We now have more fine-grained allows.
| * | tor-hsservice: todos: reference a new ticket about flushingIan Jackson2024-01-111-0/+1
| | | | | | | | | | | | | | | Deciding what to do about this *is* a MUST, but maybe we'll downgrade that ticket.
| * | tor-hsservice: todos: reference a new ticket about the partial write bugIan Jackson2024-01-111-1/+1
| | | | | | | | | | | | This *is* a MUST.
| * | tor-hsservice: todos: reference the ephemeral services ticketIan Jackson2024-01-111-0/+1
| |/ | | | | | | This isn't a MUST.
* | Merge branch 'todo-iptset' into 'main'gabi-2502024-01-111-2/+1
|\ \ | | | | | | | | | | | | tor-hsservice: todos: triage for ipt_set See merge request tpo/core/arti!1872
| * | tor-hsservice: todos: Remove a done TODOIan Jackson2024-01-111-1/+0
| | | | | | | | | | | | The call to `load` is right there!
| * | tor-hsservice: todos: Add another parameter to the ticketIan Jackson2024-01-111-1/+1
| |/ | | | | | | This is a MUST ticket.
* | Merge branch 'todo-ttd' into 'main'gabi-2502024-01-111-1/+0
|\ \ | | | | | | | | | | | | tor-hsservice: todos: Drop one now-unneeded allow See merge request tpo/core/arti!1873
| * | tor-hsservice: todos: Drop one now-unneeded allowIan Jackson2024-01-111-1/+0
| |/
* | tor-hsservice: todos: Reference the general status ticketIan Jackson2024-01-111-1/+1
| |
* | tor-hsservice: todos: Reference a new logging ticketIan Jackson2024-01-111-1/+1
| | | | | | | | I have tagged this as UX but *not* MUST.
* | tor-hsservice: todos: Reference the tickets for expiryIan Jackson2024-01-111-1/+2
| | | | | | | | | | The referenced #1198 is a MUST ticket. #1067 relates to no-longer-configred services and is in the Security milestone.
* | tor-hsservice: todos: Reference the ticket for ipt mgr testsIan Jackson2024-01-111-5/+5
| | | | | | | | This is *not* a MUST ticket.
* | tor-hsservice: todos: Permanently accept 2 clippy warningsIan Jackson2024-01-111-2/+2
| |
* | tor-hsservice: todos: Remove an obsolete allow.Ian Jackson2024-01-111-1/+0
| |
* | tor-hsservice: todos: Remove unused merge_join_subset_byIan Jackson2024-01-111-67/+1
| | | | | | | | | | | | | | This is a rather specialised function which we had for a previous data structure but no longer use. Just get rid of it.
* | tor-hsservice: todos: Add more work to #1210Ian Jackson2024-01-111-4/+4
| |
* | tor-hsservice: todos: Delete a done TODOIan Jackson2024-01-111-2/+0
| | | | | | | | We have IPT persistence now.
* | tor-hsservice: todos: Reference the code motion ticketIan Jackson2024-01-111-1/+1
| | | | | | | | That ticket is *not* MUST.
* | tor-hsservice: todos: Reference the IPT selection ticketIan Jackson2024-01-111-1/+1
| |
* | tor-hsservice: todos: Reference the ephemeral services ticketIan Jackson2024-01-111-1/+1
| |
* | tor-hsservice: todos: Reference a new ticket about parametersIan Jackson2024-01-111-2/+2
| | | | | | | | | | This ticket is a MUST. We might downgrade it, but only after actually thinking about this question.
* | tor-hsservice: todos: downgrade TODOs re keymgr APIIan Jackson2024-01-111-2/+2
| | | | | | | | When we fix #1074, we should change this code too.
* | tor-hsservice: todos: reference a new ticket about reconfigurationIan Jackson2024-01-111-1/+1
|/
* Merge branch 'client-key-specifiers' into 'main'Ian Jackson2024-01-101-1/+0
|\ | | | | | | | | tor-hsclient: Derive the KeySpecifier implementation. See merge request tpo/core/arti!1864
| * tor-keymgr: Fully qualify KeySpecifierPattern in KeySpecifier macro.Gabriela Moldovan2024-01-101-1/+0
| | | | | | | | | | | | If you derive `KeySpecifier` and forget to import `KeySpecifierPattern` you get a confusing error. It's better to let the macro import (or fully qualify) the necessary types from tor-keymgr.
* | tor-hsservice: Rename MaybeFatalError to PublishError.Gabriela Moldovan2024-01-101-4/+4
| |
* | tor-hsservice: Downgrade a TODO HSS related to offline mode.Gabriela Moldovan2024-01-091-2/+3
| |
* | tor-hsservice: Don't return an error if there are no IPTs to publish.Gabriela Moldovan2024-01-091-7/+41
| | | | | | | | | | | | | | Not uploading a descriptor because we suddenly found out there are no IPTs isn't really an error. Part of #1129
* | tor-hsservice: Return a FatalError if the publisher retry task crashes.Gabriela Moldovan2024-01-091-2/+1
|/ | | | | | | | This really should not (and cannot) happen under normal circumstances: the task receiving the value cannot exit before the publisher (unless there's a bug in that code). Part of #1129
* Followup minor version bumps.Nick Mathewson2024-01-091-1/+1
| | | | | | | | These crates had no changes previously, but they depend on crates that had breaking changes themselves. tor-linkspec tor-hspow
* Patchlevel version bumps in preparation for 1.1.12.Nick Mathewson2024-01-091-4/+4
| | | | | | | | | | | | | This crate doesn't have a meaningful public API, so it just gets a patchlevel bump: arti These crates had nonbreaking changes, and get a patchlevel bump: tor-rtcompat fs-mistrust tor-llcrypto tor-cert
* Breaking version bumps in preparation for 1.1.12.Nick Mathewson2024-01-091-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These crates have breaking changes on their own: tor-error tor-netdoc tor-dirmgr tor-keymgr Because of the breaking change in tor-error, and the fact that basically every crate publicly depends on tor-error (by implementing ErrorKind), we need to call this a breaking change on all of the following: tor-config tor-geoip tor-rtmock tor-log-ratelim tor-rpcbase tor-bytes tor-hscrypto tor-socksproto tor-cell tor-proto tor-netdoc tor-netdir tor-persist tor-chanmgr tor-ptmgr tor-guardmgr tor-circmgr tor-dirclient tor-dirmgr tor-keymgr tor-hsclient tor-hsservice tor-hsrproxy arti-client arti-rpcserver arti-config arti-hyper arti-testing
* Merge branch 'fixup-features-20240108' into 'main'Nick Mathewson2024-01-091-1/+1
|\ | | | | | | | | Run fixup-features in preparation for release, and clean its output. See merge request tpo/core/arti!1856