| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | | tor-keymgr: Use @ to annotate internal macro branches. | Gabriela Moldovan | 2025-02-06 | 1 | -3/+3 | |
| | | | ||||||
| * | | tor-keymgr: Define the test key constants using a macro. | Gabriela Moldovan | 2025-02-06 | 2 | -42/+84 | |
| | | | | | | | | | Closes #1396 | |||||
| * | | tor-keymgr: Rename test constants to match file names. | Gabriela Moldovan | 2025-02-06 | 3 | -30/+30 | |
| |/ | | | | Part of #1396 | |||||
| * | Upgrade to downcast-rs 2 | Ian Jackson | 2025-02-05 | 1 | -1/+1 | |
| | | | | | No code changes needed. | |||||
| * | tor-keymgr: Use ParsedEd25519Cert when decoding certs. | Gabriela Moldovan | 2025-01-13 | 3 | -12/+13 | |
| | | | | | | | | This helps us get rid of our uses of `KeyUnknownCert`. Needed because `KeyUnknownCert` can't readily be converted back to `EncodedEd25519Cert` (while `ParsedEd25519Cert` *can* -- see the `certs` module from `tor-relay-crypto`). | |||||
| * | tor-keymgr: Fix cert handling tests. | Gabriela Moldovan | 2025-01-13 | 3 | -25/+64 | |
| | | | | | | | This updates and reenables the cert management tests. Part of #1768 | |||||
| * | tor-keymgr: Use Ed25519Cert::decode to parse the certs. | Gabriela Moldovan | 2025-01-13 | 3 | -4/+17 | |
| | | ||||||
| * | tor-keymgr: Add cert parse error variant. | Gabriela Moldovan | 2025-01-13 | 2 | -2/+15 | |
| | | | | | | | | This will soon be used, when we modify the `ArtiNativeKeystore` cert lookup code to actually parse certificates before returning them. Part of #1768 | |||||
| * | tor-key-forge: Split out ItemType as a separate trait. | Gabriela Moldovan | 2025-01-13 | 3 | -10/+16 | |
| | | | | | | | | | This is necessary because `ParsedCert`s will not be `EncodableItem`s. This is because we cannot (and don't want to) write certificates that have not yet been validated to the keystore. They do need to be retrievable from the keystore though, so we also change `ErasedKey` to be `Box<dyn ItemType>` instead. | |||||
| * | tor-key-forge: Distinguish between parsed certs and encodable certs. | Gabriela Moldovan | 2025-01-13 | 1 | -8/+9 | |
| | | | | | | | | | | | | | | | | We need two different types to represent * certs that have been parsed, but not yet validated (`KeyUnknownCert`) * newly generated encodable certs (`EncodedEd25519Cert`) Currently, we don't use `KeyUnknownCert` anywhere, and instead use `EncodedEd25519Cert` to represent "parsed" but not-yet-validated certs. This approach is wrong and relies on a broken (no-op) `EncodedEd25519Cert::from_bytes` implementation. A future commit will address this problem by replacing `EncodedEd25519Cert::from_bytes` with `Ed25519Cert::decode` to actually parse the cert upon retrieving it from the keystore. | |||||
| * | tor-keymgr: Replace from_encodable_cert with validation function. | Gabriela Moldovan | 2025-01-13 | 1 | -15/+5 | |
| | | | | | | | | | In practice, we won't be able to obtain an `ToEncodableCert` type from an `EncodableItem` cert without validating it first, so we need to collapse `validate` into `from_encodable_cert`. Part of #1768 | |||||
| * | Remove semver.md files after 1.3.2 release | Nick Mathewson | 2025-01-07 | 1 | -3/+0 | |
| | | ||||||
| * | Bump versions of internal arti crates for Arti 1.3.2 | Nick Mathewson | 2025-01-07 | 1 | -11/+11 | |
| | | | | | | | | | | | | | | The affected crates follow our regular versioning. They all get bumped to 0.26.0. Done with ``` for crate in $(./maint/list_crates |grep '^arti-\|tor-' ); do cargo set-version --bump minor -p $crate; done ``` | |||||
| * | Merge branch 'mod-module-files' into 'main' | Nick Mathewson | 2025-01-07 | 1 | -0/+1 | |
| |\ | | | | | | | | | clippy: deny `mod_module_files` See merge request tpo/core/arti!2689 | |||||
| | * | clippy: deny `mod_module_files` | Steven Engler | 2025-01-06 | 1 | -0/+1 | |
| | | | | | | | | | | | | | Denies 'mod.rs' files for consistency. https://rust-lang.github.io/rust-clippy/master/index.html#mod_module_files | |||||
| * | | fix: fix typos | Dimitris Apostolou | 2025-01-06 | 4 | -4/+4 | |
| |/ | ||||||
| * | Merge branch 'upgrades' into 'main' | Nick Mathewson | 2025-01-06 | 1 | -1/+1 | |
| |\ | | | | | | | | | Simple dependency upgrades for upcoming release See merge request tpo/core/arti!2685 | |||||
| | * | Upgrade to itertools 0.14.0 | Nick Mathewson | 2025-01-06 | 1 | -1/+1 | |
| | | | ||||||
| * | | Run "fixup-features" in preparation for release. | Nick Mathewson | 2025-01-06 | 1 | -1/+2 | |
| |/ | ||||||
| * | tor-keymgr: Replace internal error with keystore corruption error. | Gabriela Moldovan | 2024-12-04 | 2 | -1/+5 | |
| | | | | | | This replaces a placeholder error with a concrete `KeystoreCorruptionError` variant. | |||||
| * | tor-keymgr: Add tests for ArtiNativeKeystore's handling of certs. | Gabriela Moldovan | 2024-12-04 | 1 | -1/+29 | |
| | | ||||||
| * | tor-keymgr: Add support for certs in ArtiNativeKeystore::insert(). | Gabriela Moldovan | 2024-12-04 | 1 | -5/+8 | |
| | | ||||||
| * | tor-keymgr: Add support for certs in ArtiNativeKeystore::get(). | Gabriela Moldovan | 2024-12-04 | 1 | -8/+36 | |
| | | | | | | This makes `ArtiNativeKeystore::get` deserialize the keystore item as a cert, if its `KeystoreItemType` is `Cert`. | |||||
| * | tor-keymgr: Add arti native keystore helper for parsing tor certs. | Gabriela Moldovan | 2024-12-04 | 2 | -0/+42 | |
| | | | | | | We'll soon use this in `ArtiNativeKeystore`'s `Keystore` implementation for parsing certs read from disk. | |||||
| * | tor-keymgr: Add tests for the new cert mgmt functions. | Gabriela Moldovan | 2024-12-04 | 1 | -1/+172 | |
| | | ||||||
| * | tor-keymgr: s/TestKey/TestItem in tests. | Gabriela Moldovan | 2024-12-04 | 1 | -55/+55 | |
| | | | | | | We're about to reuse TestKey as our test key "certificate", so let's preemptively rename it to something more fitting. | |||||
| * | tor-keymgr: Add a test certificate specifier to test_utils. | Gabriela Moldovan | 2024-12-04 | 1 | -1/+34 | |
| | | | | | This is about to be used in a couple of places. | |||||
| * | tor-keymgr: Note some breaking changes in semver.md. | Gabriela Moldovan | 2024-12-04 | 1 | -0/+3 | |
| | | ||||||
| * | tor-keymgr: s/key/item in error message test. | Gabriela Moldovan | 2024-12-04 | 2 | -2/+2 | |
| | | ||||||
| * | tor-keymgr: Rename error variant. | Gabriela Moldovan | 2024-12-04 | 3 | -14/+13 | |
| | | ||||||
| * | tor-keymgr: Remove unused KeyType import. | Gabriela Moldovan | 2024-12-04 | 1 | -1/+1 | |
| | | ||||||
| * | tor-keymgr: Add KeyMgr::get_or_generate_key_and_cert. | Gabriela Moldovan | 2024-12-04 | 1 | -0/+119 | |
| | | ||||||
| * | tor-keymgr: Add KeyMgr::get_key_and_cert() (fmt). | Gabriela Moldovan | 2024-12-04 | 1 | -5/+7 | |
| | | ||||||
| * | tor-keymgr: Add KeyMgr::get_key_and_cert(). | Gabriela Moldovan | 2024-12-04 | 3 | -2/+97 | |
| | | ||||||
| * | tor-keymgr: Remove no-longer-needed explicit link targets. | Gabriela Moldovan | 2024-12-04 | 1 | -2/+2 | |
| | | | | | | These aren't needed anymore now that `KeySpecifierComponent` is in scope. | |||||
| * | tor-keymgr: Add helper for building certificate ArtiPaths. | Gabriela Moldovan | 2024-12-04 | 3 | -2/+130 | |
| | | | | | This will be used for looking up certificates in the keystore. | |||||
| * | tor-keymgr: Split some logic out of KeyMgr::get_from_store(). | Gabriela Moldovan | 2024-12-04 | 1 | -6/+24 | |
| | | | | | | We're soon going to need the "raw" version of the function (the one that returns the key as `K::Key`). | |||||
| * | tor-keymgr: Add variants for missing cert/signing key errors. | Gabriela Moldovan | 2024-12-04 | 1 | -0/+8 | |
| | | | | | | These will be soon be returned by `KeyMgr::{get_key_and_cert,get_or_generate_key_and_cert}`. | |||||
| * | tor-key-forge: Implement EncodableItem for Tor ed25519 certs. | Gabriela Moldovan | 2024-12-04 | 1 | -3/+3 | |
| | | | | | | This will enable us to store `tor_cert::EncodedEd25519Cert`s in the keystore. | |||||
| * | tor-keymgr: Replace as_ssh_key_data with as_keystore_item (fmt). | Gabriela Moldovan | 2024-12-04 | 3 | -3/+3 | |
| | | ||||||
| * | tor-keymgr: Replace as_ssh_key_data with as_keystore_item. | Gabriela Moldovan | 2024-12-04 | 4 | -22/+26 | |
| | | ||||||
| * | tor-key-forge: Replace EncodableItem::key_type() with item_type() (fmt). | Gabriela Moldovan | 2024-12-04 | 1 | -2/+1 | |
| | | ||||||
| * | tor-key-forge: Replace EncodableItem::key_type() with item_type(). | Gabriela Moldovan | 2024-12-04 | 2 | -19/+19 | |
| | | | | | | This function now returns a `KeystoreItemType`, enabling us to represent certs as `EncodableItem`s. | |||||
| * | tor-keymgr: Update docs post-renaming. | Gabriela Moldovan | 2024-12-04 | 1 | -9/+9 | |
| | | ||||||
| * | tor-keymgr: Replace KeyType with KeystoreItemType (fmt). | Gabriela Moldovan | 2024-12-04 | 7 | -21/+70 | |
| | | ||||||
| * | tor-keymgr: Remove now-unused import. | Gabriela Moldovan | 2024-12-04 | 1 | -1/+1 | |
| | | ||||||
| * | tor-key-forge: Remove no longer needed KeyType::Unknown variant. | Gabriela Moldovan | 2024-12-04 | 1 | -14/+0 | |
| | | | | | | Items that have an unrecognized file extension now get mapped to `KeystoreItemType::Unknown`. | |||||
| * | tor-keymgr: Replace KeyType with KeystoreItemType. | Gabriela Moldovan | 2024-12-04 | 9 | -148/+172 | |
| | | | | | | This is part of the work needed to support storing certificates in the keystore (they won't have a `KeyType`, but rather `CertType`). | |||||
| * | tor-key-forge: Rename EncodableKey to EncodableItem. | Gabriela Moldovan | 2024-12-04 | 8 | -27/+27 | |
| | | | | | | | | | This is the first step in replacing `EncodableKey` with the new `EncodableItem` trait (see doc/dev/keymgr-certificates.md). (this refactoring is split over multiple commits to make reviewing easier) | |||||
| * | tor-keymgr: Add a KeyCertificateSpecifier trait (fmt). | Gabriela Moldovan | 2024-12-04 | 1 | -3/+2 | |
| | | ||||||
