summaryrefslogtreecommitdiff
path: root/crates/tor-hsservice
Commit message (Collapse)AuthorAgeFilesLines
* Bump all the unstable tor- and arti- crates to 0.19.Gabriela Moldovan2024-06-051-26/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The unstable crates are: - tor-error - tor-config - tor-units - tor-geoip - tor-rtcompat - tor-rtmock - tor-log-ratelim - tor-rpcbase - tor-memquota - tor-llcrypto - tor-protover - tor-bytes - tor-hscrypto - tor-socksproto - tor-checkable - tor-cert - tor-linkspec - tor-cell - tor-proto - tor-netdoc - tor-consdiff - tor-netdir - tor-relay-selection - 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-hyper - tor-basic-utils - tor-async-utils Done using ``` for p in "${unstable[@]}"; do cargo set-version -p $p 0.19; done ``` where `unstable` contains the list above
* Re-run maint/add_warning.Nick Mathewson2024-05-061-2/+2
| | | | This commit is automatically generated.
* Bump versions of 0.x tor-* and arti-* cratesIan Jackson2024-04-301-26/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for p in `cat ../u`; do cargo set-version --locked --offline -p $p; done where u contains tor-basic-utils tor-async-utils tor-error tor-config tor-units tor-geoip tor-rtcompat tor-rtmock tor-log-ratelim tor-rpcbase tor-memquota tor-llcrypto tor-protover tor-bytes tor-hscrypto tor-socksproto tor-checkable tor-cert tor-linkspec tor-cell tor-proto tor-netdoc tor-consdiff tor-netdir tor-relay-selection 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-hyper
* tor-hsservice: use shared status_tx to report OnionServiceStatus via ↵Richard Pospesel2024-04-131-6/+0
| | | | RunningOnionService::status_events()
* Upgrade derive-deftly requirement to 0.10.3Nick Mathewson2024-04-111-1/+1
| | | | We're taking this for the fix to derive-deftly#52.
* Merge branch 'deftly' into 'main'Ian Jackson2024-04-037-72/+72
|\ | | | | | | | | Switch to derive-deftly See merge request tpo/core/arti!2066
| * derive-deftly: Change some docs referencesIan Jackson2024-04-033-4/+4
| | | | | | | | Found by "git grep adhoc" and manual inspection.
| * Apply import alphabetisation churnIan Jackson2024-04-031-1/+1
| |
| * Switch to derive-deftlyIan Jackson2024-04-037-68/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the combination of a number of separate commits, many of which were generated by seddery, and then rebased and squashed. Cargo.toml perl -i~ -pe 's{^derive-adhoc}{derive-deftly = "0.10"}' crates/*/Cargo.toml (not regenerated during rebase) update Cargo.lock `cargo fetch` without --locked (regenerated during rebase) seddery git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{^use derive_adhoc}{use derive_deftly}' git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{\bdefine_derive_adhoc\b}{define_derive_deftly}g' git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{\bAdhoc\b}{Deftly}g if m{derive}' git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{\#\[derive_adhoc\b}{#[derive_deftly}g' git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{use derive_adhoc}{use derive_deftly}' git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{\bderive_adhoc\b}{derive_deftly_adhoc} if m{use.*deftly}' git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{\bderive_adhoc!}{derive_deftly_adhoc!}' (not regenerated during rebase) Manually add `#[derive_deftly_adhoc]` where needed. seddery git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{\#\[adhoc\b}{#[deftly}g' git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{\bderive_adhoc_template}{derive_deftly_template}' (not regenerated during rebase) Manually fix up an import Manually update some builder attrs Manually fix up tor_rtmock::time_core This was missed in my seddery, due to me rebasing the branch and not redoing the seddery.
* | Merge branch 'finish-backoff-refactor' into 'main'Nick Mathewson2024-04-022-31/+126
|\ \ | | | | | | | | | | | | | | | | | | tor-hsservice: Use single_attempt_timeout in backoff Runner impl. Closes #1259 See merge request tpo/core/arti!2064
| * | tor-hsservice: Move optional timeout to optionally_timeout().Gabriela Moldovan2024-04-021-7/+32
| | | | | | | | | | | | Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2064#note_3014793
| * | tor-hsservice: s/timeout/overall_timeout for clarity.Gabriela Moldovan2024-04-021-2/+2
| | |
| * | tor-hsservice: Add a test for the backoff runner's single_attempt_timeout().Gabriela Moldovan2024-04-021-0/+51
| | |
| * | tor-hsservice: Use single_attempt_timeout in backoff Runner impl (fmt).Gabriela Moldovan2024-04-021-10/+10
| | |
| * | tor-hsservice: Use single_attempt_timeout in backoff Runner impl.Gabriela Moldovan2024-04-022-19/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | !2024 introduced `BackoffSchedule::single_attempt_timeout()`, partially implementing #1259. This completes the implementation by moving the per-iteration timeout from the publisher reactor to `backoff::Runner`. Addresses https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2024?commit_id=a4f2bf5cb7d4027a49b74ec5a5298f7b9a3cf62e#note_3005097 Note: the `if should_retry` block is intentionally misindented, to make reviewing the actual changes easier. A future commit will fix the indentation. I originally wanted to suggest reviewing this commit using `--ignore-space-change`, but I found that it makes things a bit confusing (it shows some funky indentation around the parts that have both whitespace changes and modifications). Closes #1259
* | | remove unused dependenciestrinity-1686a2024-04-021-6/+0
| | | | | | | | | | | | Edited-by: Nick Mathewson <[email protected]>
* | | Remove semver.md files from arti-1.2.1 releaseNick Mathewson2024-04-021-1/+0
| |/ |/|
* | Update unstable `tor/arti-*` crates to 0.17.0.Nick Mathewson2024-04-021-28/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Done with: ``` CRATES=" tor-basic-utils tor-async-utils tor-error tor-config tor-events tor-units tor-geoip tor-rtcompat tor-rtmock tor-log-ratelim tor-rpcbase tor-llcrypto tor-protover tor-bytes tor-hscrypto tor-hspow tor-socksproto tor-checkable tor-cert tor-linkspec tor-cell tor-proto tor-netdoc tor-consdiff tor-netdir tor-relay-selection tor-congestion 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-bench arti-testing " for crate in $CRATES; do cargo set-version -p "$crate" 0.17.0 done ```
* | Bump patchlevel versions on non-{tor/arti} crates.Nick Mathewson2024-04-021-4/+4
|/ | | | | | | | | | | | | | | | These have all had backward-compatible changes. Generated with: ``` cargo set-version --bump patch -p fs-mistrust cargo set-version --bump patch -p test-temp-dir cargo set-version --bump patch -p fslock-guard cargo set-version --bump patch -p hashx cargo set-version --bump patch -p equix cargo set-version --bump patch -p caret cargo set-version --bump patch -p safelog cargo set-version --bump patch -p retry-error ```
* Run "fixup-features" in preparation for next release.Nick Mathewson2024-03-281-1/+1
|
* hss: Make the limit for streams configurable.Nick Mathewson2024-03-264-13/+29
| | | | Closes #1124.
* Add an IncomingStreamRequestFilter to check early propertiesNick Mathewson2024-03-261-5/+31
| | | | | | | Based on designs in #1124. Note that there is a TODO here about a hack I had to do to appease the borrow checker.
* Refactor the logic for constructing crypt layers.Nick Mathewson2024-03-261-5/+0
| | | | | | | | | | | The key insights here are: - That relay cell format and crypto protocols aren't orthogonal: Once we have GCO, it will require V1. - That we only need the actual functions for layer construction to be generic; we don't need to proliferate generic parameters everywhere. - That the circuit::handshake module already does most of what we want.
* Propagate RelayCellFormat selection up to where format decisions will be madeJim Newsome2024-03-201-0/+5
|
* Run maint/add_warning.Nick Mathewson2024-03-1313-0/+13
|
* Fix some rustdoc warnings.Nick Mathewson2024-03-126-12/+13
| | | | | These are mostly about explicitly linking to things that were already in scope.
* ipt_mgr: convert to use RelaySelector.Nick Mathewson2024-03-122-11/+22
|
* fix: fix typosDimitris Apostolou2024-03-091-1/+1
|
* BackoffSchedule refactoring and improvementsNeel Chauhan2024-03-072-22/+38
|
* Fix typos in doc commentsTobias Stoeckmann2024-03-061-1/+1
|
* AuthorizedClientConfig: add semver noteIan Jackson2024-03-051-0/+1
|
* Use tor_basic_utils::PathExt::display_lossyIan Jackson2024-03-052-3/+3
| | | | | Change Path::display to this new function, in call sites where it's being used for a diagnostic.
* tor-hsservice: client auth: Only allow `dir:...` to have valid unicodeIan Jackson2024-03-052-4/+6
| | | | | | | | | | | | We have Display/FromStr for AuthorizedClientConfig. We can't have Display if it can containa PathBuf because a PathBuf may not have a string representation. If we want to support non-unicode in the future, we'll need an escaping scheme and messing around with OsStr. The config scheme here may not be the best, but right now I'm just fixing uses of Path::display.
* tor-hsservice: Fix description of sub-module handlingIan Jackson2024-03-051-3/+3
|
* tor-hsservice: ipt_mgr: Put file in a sensible order (defeat rustfmt)Ian Jackson2024-03-051-1/+1
|
* tor-hsservice: ipt_mgr: Put file in a sensible orderIan Jackson2024-03-051-220/+235
| | | | Fixes #1212
* tor-hsservice: prelude: Manually tidy and group Arti and crate imports (fmt)Ian Jackson2024-03-051-27/+15
|
* tor-hsservice: prelude: Manually tidy and group Arti and crate importsIan Jackson2024-03-051-41/+31
|
* tor-hsservice: prelude: Use braced group syntaxIan Jackson2024-03-051-143/+151
| | | | This reduces visual clutter and reclaims horizontal space.
* tor-hsservice: prelude: Manually tidy and group std and upstreams (fmt)Ian Jackson2024-03-051-8/+8
|
* tor-hsservice: prelude: Manually tidy and group std and upstreamsIan Jackson2024-03-051-35/+20
|
* tor-hsservice: prelude: Don't import postage::sink::SendErrorIan Jackson2024-03-052-5/+3
| | | | This is too vague.
* tor-hsservice: prelude: Don't import futures::streamIan Jackson2024-03-052-2/+2
| | | | This is too vague.
* Run rustfmtIan Jackson2024-03-057-139/+118
| | | | | This alphabetises the imports, ready for us to do some more manual tidying.
* tor-hsservice: nickname: Trick rustfmt into not exploding derivesIan Jackson2024-03-051-3/+2
|
* tor-hsservice: prelude: Move imports from nickname.rsIan Jackson2024-03-051-9/+1
| | | | There are none here that aren't in the prelude now.
* tor-hsservice: don't import derive_more::Display as suchIan Jackson2024-03-051-2/+2
| | | | "Display" is rather vague.
* tor-hsservice: prelude: Move imports from netdir.rsIan Jackson2024-03-051-5/+1
| | | | There are none here that aren't in the prelude now.
* tor-hsservice: prelude: Move most imports from status.rsIan Jackson2024-03-052-10/+2
|
* tor-hsservice: prelude: Move most imports from req.rsIan Jackson2024-03-052-18/+16
|