<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-keymgr/src/config, branch arti-1.2.1</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-1.2.1</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-1.2.1'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2024-02-21T14:58:46Z</updated>
<entry>
<title>arti, arti-client, tor-keymgr: Remove keystore dir configuration.</title>
<updated>2024-02-21T14:58:46Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-02-21T12:46:20Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=90addac031b7242b9352ce2c635b9802e657fabe'/>
<id>urn:sha1:90addac031b7242b9352ce2c635b9802e657fabe</id>
<content type='text'>
Closes #1202
</content>
</entry>
<entry>
<title>tor-keymgr: Abolish ArtiNativeKeystoreConfig::expand_keystore_dir.</title>
<updated>2024-01-10T15:07:26Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-01-10T15:03:25Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=0f6d98bcb26707a89385975ea3177d56ab08ab4a'/>
<id>urn:sha1:0f6d98bcb26707a89385975ea3177d56ab08ab4a</id>
<content type='text'>
This resolves a `TODO HSS` in arti-client.

Part of #1187
</content>
</entry>
<entry>
<title>arti-client: use sub_builder for ArtiNativeKeystoreConfig</title>
<updated>2023-12-13T14:04:09Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-12-13T14:04:09Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=4d7aeeab57577c98a15aa78ef5cd5de7652f39e8'/>
<id>urn:sha1:4d7aeeab57577c98a15aa78ef5cd5de7652f39e8</id>
<content type='text'>
The sub_builder pattern changes `StorageConfigBuilder` so that
instead of holding an `Option&lt;ArtiNativeKeystoreConfig&gt;`,
it holds an `ArtiNativeKeystoreConfigBuilder`.
This makes it a little more ergonomic to use from Rust,
and lets us use defaults for the builder fields so that we
can make them optional in our configuration.
</content>
</entry>
<entry>
<title>keymgr: Use std::cfg instead of if_cfg.</title>
<updated>2023-07-20T18:35:54Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-07-20T18:35:54Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=3dbc49f3d01b5588400b119a53efb175094c2861'/>
<id>urn:sha1:3dbc49f3d01b5588400b119a53efb175094c2861</id>
<content type='text'>
</content>
</entry>
<entry>
<title>keymgr-config: Make fields private, add function for checking if keystore is enabled.</title>
<updated>2023-07-20T18:23:48Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-07-18T14:08:30Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ac93b1aef65671c1003edc695cad9e4137946129'/>
<id>urn:sha1:ac93b1aef65671c1003edc695cad9e4137946129</id>
<content type='text'>
Hiding the underlying value of `enabled` enables us to give it a
different `auto` value depending on whether the `keymgr` feature is
enabled or not (it defaults to `true` if `keymgr` is enabled, and
`false` otherwise).
</content>
</entry>
<entry>
<title>tor-keymgr: Add ArtiNativeKeystoreConfig.</title>
<updated>2023-07-13T11:13:59Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-07-12T18:07:13Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d8299e8d2f3874f28f4b39893f75fc7be6962091'/>
<id>urn:sha1:d8299e8d2f3874f28f4b39893f75fc7be6962091</id>
<content type='text'>
Previously, the keystore config consisted of a single field in
`StorageConfig`, which encoded 2 bits of information: whether the
keystore is enabled, and its root directory:
```
[storage]
# use this path, fail if compiled out
# keystore = "/path/to/arti/keystore"
#
# use default path, fail if compiled out
# keystore = true
#
# disable
# keystore = false
```

This commit adds `ArtiNativeKeystoreConfig`, which will replace the
multi-purpose `keystore` field. The new config will look like this:
```
#[storage.keystore]
# Whether the keystore is enabled.
#
# If the `keymgr` feature is enabled and this option is:
#     * set to false, we will ignore the configured keystore path.
#     * set to "auto", the configured keystore, or the default keystore, if the
#     keystore path is not specified, will be used
#     * set to true, the configured keystore, or the default keystore, if the
#     keystore path is not specified, will be used
#
# If the `keymgr` feature is disabled and this option is:
#     * set to false, we will ignore the configured keystore path.
#     * set to "auto", we will ignore the configured keystore path.
#
# Setting this option to true when the `keymgr` feature is disabled is a
# configuration error.
#enabled = "auto"
# The root directory of the arti keystore
#path = "${ARTI_LOCAL_DATA}/keystore"
```

While `ArtiNativeKeystoreConfig` currently only has 2 fields, `enabled`
and `path`, future versions of the keystore might require additional
config options.
</content>
</entry>
</feed>
