<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-hsservice/src/ipt_mgr.rs, branch arti-v1.1.13</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.13</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.13'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2024-02-01T20:51:18Z</updated>
<entry>
<title>tor-hsservice: Use FatalError::KeystoreRace where possible.</title>
<updated>2024-02-01T20:51:18Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-02-01T11:57:58Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=82b76eb9b66e4fe5b31acd402daab5e6e5d84c63'/>
<id>urn:sha1:82b76eb9b66e4fe5b31acd402daab5e6e5d84c63</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-hsservice: Rewrite get_or_gen_key using KeyMgr::generate.</title>
<updated>2024-02-01T20:02:24Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-01-31T17:30:03Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=1951d747f2f8b5516d0c1f5cba4a33e8b31db6e8'/>
<id>urn:sha1:1951d747f2f8b5516d0c1f5cba4a33e8b31db6e8</id>
<content type='text'>
Now that `KeyMgr::generate` returns the generated key, we can tidy up
`get_or_gen_key`.

Part of #1074
</content>
</entry>
<entry>
<title>tor-hsservice: Remove now-unused imports</title>
<updated>2024-02-01T11:21:44Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-01-30T15:52:23Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=4bd72e8258a4486d90597760e338813ac68f7a1d'/>
<id>urn:sha1:4bd72e8258a4486d90597760e338813ac68f7a1d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-hsservice: Drop now-unused fslock dependency</title>
<updated>2024-02-01T11:21:44Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-01-30T15:52:16Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=fa943898292e3110cba343064b2f48ad9f661a25'/>
<id>urn:sha1:fa943898292e3110cba343064b2f48ad9f661a25</id>
<content type='text'>
We're just using fslock-guard now.
</content>
</entry>
<entry>
<title>tor-hsservice: Use tor_persist::state_dir, etc. (fmt)</title>
<updated>2024-02-01T11:21:44Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-01-30T16:12:33Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=4ccf20f165cb39e8f3da0a56eab55ea4fe1e4dd1'/>
<id>urn:sha1:4ccf20f165cb39e8f3da0a56eab55ea4fe1e4dd1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-hsservice: Use tor_persist::state_dir</title>
<updated>2024-02-01T11:21:44Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-01-30T15:42:13Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b4a7f0fca0d231eb9c0298b78deee9ed3c1bbc7e'/>
<id>urn:sha1:b4a7f0fca0d231eb9c0298b78deee9ed3c1bbc7e</id>
<content type='text'>
We no longer do replay log locking in IptManager::new.  Instead, we
rely on the acquire_instance call in OnionService::launch, which ends
up with ipt_mgr getting an InstanceHandle (which contains a lock
guard).

OnionServiceStateMgr is abolished; it existed to deal with the
generics in the tor_persist::StateMgr API.  state_dir has no
generics (other than the T being loaded/stored).

Many places (structs and argument lists) now have state_dir types
which embody a path (or a CheckeDir) along with a lock, rather than
separate path+lock+mistrust.

The creation/startup code uses the new calls from state_dir.

Other more minor changes:
 - StartupError::StateDirectoryInaccessible contains tor_persist::Error
 - test::create_storage_handles_from_state_dir changed and renamed,
   from _from_state_mgr.
 - replay::PersistFile's (separate) file lock is now fslock_guard's
</content>
</entry>
<entry>
<title>tor-hsservice: ipt_mgr: Move storage handle to state</title>
<updated>2024-02-01T11:21:44Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-01-30T12:47:40Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d2f54164dcb05b3c8b5c9b7be522cdcba14e7ef3'/>
<id>urn:sha1:d2f54164dcb05b3c8b5c9b7be522cdcba14e7ef3</id>
<content type='text'>
The new state_dir types require &amp;mut for storing, which is correct,
but that means we can't have it in Immutable.
</content>
</entry>
<entry>
<title>tor-hsservice: storage: Move Arcs into type aliases</title>
<updated>2024-02-01T11:21:44Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-01-30T12:41:50Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=03825a0ccccf33940c4812d213e1ea00410c39d2'/>
<id>urn:sha1:03825a0ccccf33940c4812d213e1ea00410c39d2</id>
<content type='text'>
These are here because that's what you get from the tor_persist
singleton StageMgr API (for type erasure reasons).  We're going to
change these to tor_persist::state_dir types and those don't involve
Arcs.
</content>
</entry>
<entry>
<title>Merge branch 'ipt_parameters' into 'main'</title>
<updated>2024-01-31T16:24:08Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-01-31T16:24:08Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=4a2f09b338f71a5c61f5ed390b7b6429e8317c0e'/>
<id>urn:sha1:4a2f09b338f71a5c61f5ed390b7b6429e8317c0e</id>
<content type='text'>
Clean up, tune, and correct various parameters related to introduction points.

Closes #1210

See merge request tpo/core/arti!1924</content>
</entry>
<entry>
<title>Rename parameters for intro-point lifetime to match the spec.</title>
<updated>2024-01-31T15:10:36Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-01-31T15:10:36Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=4700e9ce6c075851068fd7ba17324b3d787ff651'/>
<id>urn:sha1:4700e9ce6c075851068fd7ba17324b3d787ff651</id>
<content type='text'>
(Also, correct the comments that describe them.)

We may as well match the spec names when they aren't completely
bogus.

We are already renaming these parameters for this release, so it
isn't an additional breaking change.
</content>
</entry>
</feed>
