<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-keymgr/src/keystore, branch ios-sqlite-hacks</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=ios-sqlite-hacks</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=ios-sqlite-hacks'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2023-09-12T15:56:15Z</updated>
<entry>
<title>tor-keymgr: Remove redundant _private suffix from key extension.</title>
<updated>2023-09-12T15:56:15Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-09-12T15:56:15Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=83c69cd9cba152babc7ddac86b58897f44035b14'/>
<id>urn:sha1:83c69cd9cba152babc7ddac86b58897f44035b14</id>
<content type='text'>
The privateness of the keys is encoded in their name.
</content>
</entry>
<entry>
<title>Run maint/add_warning to add lint block everywhere</title>
<updated>2023-08-23T09:34:00Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-08-22T14:28:12Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=42df88d6bf6dbb460d2e5e1cd4838aafaffbe9ac'/>
<id>urn:sha1:42df88d6bf6dbb460d2e5e1cd4838aafaffbe9ac</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-error: Remove KeystoreFsPermissions variant.</title>
<updated>2023-08-08T15:46:20Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-08-08T15:40:28Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=5d0fb5177f50f87132cbc7d0a95c6f63d4de51d7'/>
<id>urn:sha1:5d0fb5177f50f87132cbc7d0a95c6f63d4de51d7</id>
<content type='text'>
According to the `ErrorKind` lumping guidelines, `KeystoreFsPermissions`
should be lumped with `FsPermissions`: they represent the same type
of error, and their "location" is the same ("Host").

Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1315#note_2916455
</content>
</entry>
<entry>
<title>keymgr: Implement SshEncodableKey for ed25519::Keypair.</title>
<updated>2023-08-02T13:21:06Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-08-02T13:14:54Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=682d20110e6ce92c7a0d198337bb3e56b290aeb0'/>
<id>urn:sha1:682d20110e6ce92c7a0d198337bb3e56b290aeb0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>keymgr: Remove KeyType::to_ssh_format.</title>
<updated>2023-08-02T13:21:02Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-08-02T13:19:22Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e89e76f974457a0e7fd9a98326d427c10e4853af'/>
<id>urn:sha1:e89e76f974457a0e7fd9a98326d427c10e4853af</id>
<content type='text'>
This function isn't actually needed (it's not the responsibility of
`KeyType` to encode keys).

This commit also rewrites `ArtiNativeKeystore::insert` to use the new
`as_ssh_keypair_data` function instead of `to_ssh_format`.
</content>
</entry>
<entry>
<title>keymgr: Test whether insert() creates the missing directories.</title>
<updated>2023-07-24T12:17:16Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-07-21T18:00:37Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f5f133c04c4eb84bc6a91929a9a1a0060b46e989'/>
<id>urn:sha1:f5f133c04c4eb84bc6a91929a9a1a0060b46e989</id>
<content type='text'>
</content>
</entry>
<entry>
<title>keymgr: Create the parent directories as needed</title>
<updated>2023-07-24T12:17:08Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-07-21T17:11:44Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=cfe90f1478b174186d4d3dfa81bcab008044ee2d'/>
<id>urn:sha1:cfe90f1478b174186d4d3dfa81bcab008044ee2d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>keymgr: Add a Keystore::contains accessor.</title>
<updated>2023-07-24T12:17:05Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-07-14T10:08:54Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e36e7db6e7bfe06f967ce45e135714fd7983d470'/>
<id>urn:sha1:e36e7db6e7bfe06f967ce45e135714fd7983d470</id>
<content type='text'>
</content>
</entry>
<entry>
<title>keymgr: Use KeystoreId instead of a static string.</title>
<updated>2023-07-21T11:36:29Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-07-21T11:20:46Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=96e59cb97fda894fbd432390ab95141b5b1ceee1'/>
<id>urn:sha1:96e59cb97fda894fbd432390ab95141b5b1ceee1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>keymgr: Remove unimplemented/unnecessary has_key_bundle function.</title>
<updated>2023-07-20T18:24:44Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-07-18T13:24:05Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8b0b8785f405f64351d23773f6c99dcc9103b7b9'/>
<id>urn:sha1:8b0b8785f405f64351d23773f6c99dcc9103b7b9</id>
<content type='text'>
The concept of a "key bundle" would introduce a lot of complexity while
providing little to no gain.

Some context:
```
Originally, "key bundles" were meant to be the answer to the question
"which keystore should insert place keys in?":
https://gitlab.torproject.org/tpo/core/arti/-/blob/36606a66ddca9abd1595d13c9397bc812bf24cb5/crates/tor-keymgr/src/mgr.rs#L60-69
However, I'm not so sure anymore that "key bundles" are the answer. I
don't think there is any way we can "guess" where a key should go. When
inserting/generating a new key, we should either:

always write to the same, primary key store, OR require the user to be
explicit about which key store the new key should go in (by assigning an
ID to each key store and expecting the user to provide it when
inserting/generating new keys)

I prefer the latter option, because it provides more flexibility, which
we're going to need when implementing the key management CLI (which I
think should allow users to generate keys anywhere they want, e.g. arti
keymgr generate &lt;key type&gt; --keystore hsm ...)
```

For more details, see the discussion on #903.

Closes #903
</content>
</entry>
</feed>
