summaryrefslogtreecommitdiff
path: root/crates/arti-relay/src/tasks
Commit message (Collapse)AuthorAgeFilesLines
* arti-relay: use `debug_report` for failed channelsSteven Engler2026-02-261-1/+8
|
* proto: The AUTHENTICATE cell requires the SHA256 RSA identity digestDavid Goulet2026-02-261-1/+1
| | | | | | | Before this commit, we would use the RsaIdentity which is a SHA1 digest. We do the same for the peer RSA key. Signed-off-by: David Goulet <[email protected]>
* relay: Sleep rotate key task with earliest valid_untilDavid Goulet2026-02-251-19/+54
| | | | Signed-off-by: David Goulet <[email protected]>
* chanmgr: Responder relay channel now use the builder my_addrsDavid Goulet2026-02-241-6/+1
| | | | | | No need to pass from the arti relay binary our addresses when handling an incoming channel, use the one in the channel builder that an initiator channel uses.
* relay: Update ChanMgr on key rotationDavid Goulet2026-02-241-8/+18
| | | | Signed-off-by: David Goulet <[email protected]>
* arti-relay: add more error contextSteven Engler2026-02-231-6/+12
|
* arti-relay: don't warn if key gen was successfulSteven Engler2026-02-231-1/+2
|
* relay: Setup const for hardcoded value in crypto taskDavid Goulet2026-02-231-8/+13
| | | | Signed-off-by: David Goulet <[email protected]>
* relay: Log when key generation yields an existing key errorDavid Goulet2026-02-231-1/+4
| | | | Signed-off-by: David Goulet <[email protected]>
* relay: Simplify the crypto rotation task rotate_key()David Goulet2026-02-231-17/+11
| | | | Signed-off-by: David Goulet <[email protected]>
* relay: Get rid of start_task() for readabilityDavid Goulet2026-02-231-17/+1
| | | | Signed-off-by: David Goulet <[email protected]>
* relay: Generate relay identities at initDavid Goulet2026-02-231-3/+5
| | | | Signed-off-by: David Goulet <[email protected]>
* relay: Implement a helper to build RelayIdentitiesDavid Goulet2026-02-231-6/+107
| | | | | | | This required to add a slight helper to our tor-key-forge RSA key d-d macro to access the inner keypair. This avoids a clone. Signed-off-by: David Goulet <[email protected]>
* relay: Move try_generate_keys() into crypto taskDavid Goulet2026-02-231-5/+27
| | | | | | | Move rotating keys into a function so we can use it in try_generate_keys() that is used at startup. Signed-off-by: David Goulet <[email protected]>
* relay: Add a crypto task for key rotationDavid Goulet2026-02-231-0/+175
| | | | | | | | | | | | | This task crypto module has a rotate key task that is in charge of rotating keys from our KeyMgr based on the valid until. To do so, we add a RotatableKeySpec trait to help us specify our to rotate a specific key. Allows us to have a generic rotate/generate function for all our keys. Task runs every 60 seconds. Taken from C-tor. Signed-off-by: David Goulet <[email protected]>
* arti-relay: remove old TODOSteven Engler2026-02-031-10/+0
| | | | See https://gitlab.torproject.org/tpo/core/arti/-/issues/2329
* arti-relay: Allow clippy_unused_asyncGabriela Moldovan2026-01-271-0/+1
| | | | The code here is still WIP, no need to apply the lint yet.
* Merge branch 'ticket1599_03' into 'main'David Goulet2026-01-221-1/+6
|\ | | | | | | | | proto: Implement relay responder handshake and finalize it for both handshakes See merge request tpo/core/arti!3596
| * relay: Pass advertised addresses to the channel handlerDavid Goulet2026-01-221-1/+6
| | | | | | | | | | | | | | | | | | | | | | We need the advertised addresses for the NETINFO cell when opening a relay channel. Keep them in the TorRelay object so we can pass them to the ChanMgr channel handler. This will also help with config reload where only the local values in TorRelay will need to be updated. Signed-off-by: David Goulet <[email protected]>
* | arti-relay: change debug message to rate-limited warningSteven Engler2026-01-201-9/+19
|/
* arti-relay: update some comments from past few commitsSteven Engler2025-11-111-1/+6
|
* tor-chanmgr: wrap the peer address in `Sensitive`Steven Engler2025-11-051-5/+5
| | | | | For incoming connections, wrap the peer address in `Sensitive` as it could be a client.
* arti-relay: add OR port listener taskSteven Engler2025-11-051-0/+71
| | | | | This does not yet get the OR port from the config, and the channel manager doesn't yet do anything with the incoming connection.
* arti-relay: use `Void` for `TorRelay::run`Steven Engler2025-10-271-1/+1
|
* relay: Add channel housekeeping taskDavid Goulet2025-10-211-0/+63
This is a background task in charge of expiring closing channels and future work is to also prune duplicate channels. This is not used nor called at this commit, next commit will add the task handling. Part of #2217 Signed-off-by: David Goulet <[email protected]>