<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-keymgr/src, branch arti-v1.2.8</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.2.8</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.2.8'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2024-09-25T14:37:18Z</updated>
<entry>
<title>Upgrade to derive_more version 1.0.0</title>
<updated>2024-09-25T14:37:18Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-09-25T14:37:18Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6a12c2ba8515226a772d5f4a81930bf42d67535a'/>
<id>urn:sha1:6a12c2ba8515226a772d5f4a81930bf42d67535a</id>
<content type='text'>
The `derive_more` crate broke backward compatibility with this version,
so this change involved quite a few manual fixups.
With luck, they'll keep compatibility for some while in the future.
</content>
</entry>
<entry>
<title>tor-keymgr: Rename keystore.type to keystore.kind.</title>
<updated>2024-09-23T18:55:23Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-09-23T14:43:37Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=7d075d16e615138552f91a72e9cf0faf0fcb1739'/>
<id>urn:sha1:7d075d16e615138552f91a72e9cf0faf0fcb1739</id>
<content type='text'>
In !2394 we settled on `kind`. This updates the error messages to
reference the new field name.
</content>
</entry>
<entry>
<title>tor-keymgr: Move keystore config under keystore.primary.</title>
<updated>2024-09-23T18:55:23Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-09-23T14:14:39Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=dcb29c0e5d5ad1c3795baa50f778a0f13d668325'/>
<id>urn:sha1:dcb29c0e5d5ad1c3795baa50f778a0f13d668325</id>
<content type='text'>
The keystore settings only configure the *primary* keystore, so they
should be under `keystore.primary`.
</content>
</entry>
<entry>
<title>arti: Reinstate the keystore.enabled option.</title>
<updated>2024-09-23T18:37:41Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-09-23T14:08:08Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c359a7abd1543c53c596e9092350b0810f72765e'/>
<id>urn:sha1:c359a7abd1543c53c596e9092350b0810f72765e</id>
<content type='text'>
This is a follow-up from !2394

I want to keep the `keystore.enabled` option, because I'm planning on
extending `ArtiKeystoreConfig` to support configuring secondary
keystores too (currently, the only supported setting is `keystore.kind`,
which configures the primary keystore). `keystore.enabled` will disable
keystore use altogether (i.e. both primary and secondary).

Currently, we only support configuring the "primary" (previously known
as "default") keystore, which can be either "native" (the on-disk Arti
keystore), or "ephemeral" (an in-memory keystore). To implement #858,
we will need to support configuring additional keystores too, so we will
need to move to a config of the form
```toml
[storage.keystore]
# Whether the keystore is enabled.
#enabled = "auto"

# Configure the primary keystore.
[storage.keystore.primary]
# The type of primary keystore to use
kind = "auto" | "native" | "ephemeral"

# Optionally configure C Tor keystores for arti to use.
#
# Note: The keystores listed here are read-only (keys are only
# ever written to the primary keystore, configured in
# `storage.keystore.primary`).
[[storage.keystore.ctor]]
# If the `kind` is `service`, this should be set to the `HiddenServiceDirectory`
# of your hidden service. Arti will read `HiddenServiceDirectory/hostname`
# and `HiddenServiceDirectory/private_key`. (Note: if your service is running
# in restricted discovery mode, you must set the
# `[[onion_services."&lt;the nickname of your svc&gt;".restricted_discovery.key_dirs]]`
# to `HiddenServiceDirectory/client_keys`
#
# If the `kind` is `client`, this should be set to `ClientOnionAuthDir` of
# your client. If Arti is configured to run as a client (i.e. if it runs in SOCKS
# proxy mode), it will read the client restricted discovery keys from this path.
path  = "/foo/bar"
# The type of keystore `path` should be interpreted as
kind = "client" | "service"
```

This moves the current keystore settings to `storage.keystore.primary`
in preparation for that change.
</content>
</entry>
<entry>
<title>tor-keymgr: Add back ArtiKeystoreConfig::is_enabled().</title>
<updated>2024-09-23T17:58:55Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-09-23T14:23:13Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b3cf77ed943e97428d2d6c3ef1f352ee9b273617'/>
<id>urn:sha1:b3cf77ed943e97428d2d6c3ef1f352ee9b273617</id>
<content type='text'>
I am adding `is_enabled()` back because I plan to un-deprecate the
`enabled` setting.
</content>
</entry>
<entry>
<title>tor-keymgr: Rename the primary keystore for clarity.</title>
<updated>2024-09-23T13:17:49Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-09-20T10:20:33Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=80095da1aa47978cdba26c2b3d254a99c075cf53'/>
<id>urn:sha1:80095da1aa47978cdba26c2b3d254a99c075cf53</id>
<content type='text'>
Previously, arti's primary keystore was referred to as its "default"
keystore. However, "default" is inaccurate here: there is no way to
meaningfully override this "default" (the "default" store acts as the
main keystore). Throughout the codebase, we query all keystores for keys
(including the secondary ones), but only ever write to the
default/primary keystore. This is OK for now, because it enables us to
have one mutable keystore, and multiple secondary, read-only stores.
</content>
</entry>
<entry>
<title>tor-keymgr: added dummy implementation of ArtiEphemeralKeyStore</title>
<updated>2024-09-20T23:13:14Z</updated>
<author>
<name>Morgan</name>
<email>morgan@torproject.org</email>
</author>
<published>2024-09-07T21:01:26Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=bc1b57da446acddf721039589692e437e59eb261'/>
<id>urn:sha1:bc1b57da446acddf721039589692e437e59eb261</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-keymgr: added support for specifying keystore kind to ArtiKeystoreConfig</title>
<updated>2024-09-20T23:13:14Z</updated>
<author>
<name>Morgan</name>
<email>morgan@torproject.org</email>
</author>
<published>2024-09-07T04:37:09Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=641de54341202c5797d3f9b2d2fa1c82a04d2519'/>
<id>urn:sha1:641de54341202c5797d3f9b2d2fa1c82a04d2519</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-keymgr: renamed ArtiNativeKeystoreConfig to ArtiKeystoreConfig</title>
<updated>2024-09-20T23:13:14Z</updated>
<author>
<name>Morgan</name>
<email>morgan@torproject.org</email>
</author>
<published>2024-09-15T18:25:53Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=5e4e7b69b8cd2791763559cb0563dc60c8a66ce2'/>
<id>urn:sha1:5e4e7b69b8cd2791763559cb0563dc60c8a66ce2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-keymgr: Set KeySpecifier deftly exported struct non_exhaustive</title>
<updated>2024-09-18T13:24:04Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2024-09-16T15:00:15Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=292bf5e62d8be6d14c5f0d88a62149b1733ae3eb'/>
<id>urn:sha1:292bf5e62d8be6d14c5f0d88a62149b1733ae3eb</id>
<content type='text'>
Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
</feed>
