summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
* | keymgr: Fix another infinite loop around Keymgr error handling.Gabriela Moldovan2023-06-291-1/+1
|/ | | | This `From` impl was just calling itself recursively...
* Merge branch 'rustdoc_fix' into 'main'Nick Mathewson2023-06-291-1/+1
|\ | | | | | | | | Fix a rustdoc link. See merge request tpo/core/arti!1351
| * Fix a rustdoc link.Nick Mathewson2023-06-291-1/+1
| |
* | Merge branch 'exp' into 'main'Ian Jackson2023-06-292-1/+4
|\ \ | | | | | | | | | | | | tor-error: Make KeystoreFsPermissions experimental for now See merge request tpo/core/arti!1350
| * | tor-error: Make KeystoreFsPermissions experimental for nowIan Jackson2023-06-291-0/+3
| | | | | | | | | | | | Let's defer this decision.
| * | tor-keymgr: When keymgr enabled, enable tor-error's experimental tooIan Jackson2023-06-291-1/+1
| | |
* | | Merge branch 'validate-client-spec' into 'main'Ian Jackson2023-06-295-28/+153
|\ \ \ | | | | | | | | | | | | | | | | keymgr: Validate ArtiPaths, replace HsClientSpecifier with generic ArtiPathComponent See merge request tpo/core/arti!1262
| * | | Run rustfmtIan Jackson2023-06-291-3/+2
| | | |
| * | | keymgr: Remove unstable ErrorKind, use internal! for ArtiPath errors.Gabriela Moldovan2023-06-293-29/+8
| | | |
| * | | keymgr: Validate the individual ArtiPahtComponents of ArtiPath.Gabriela Moldovan2023-06-291-37/+25
| | | | | | | | | | | | | | | | | | | | This also implicitly forbids leading and trailing slashes in an `ArtiPath`.
| * | | keymgr: Rephrase ArtiPath docs.Gabriela Moldovan2023-06-291-14/+5
| | | | | | | | | | | | | | | | This updates the docs with Diziet's suggested doc improvements.
| * | | keymgr: Remove ArtiPath normalization, introduce additional restrictions.Gabriela Moldovan2023-06-292-45/+46
| | | |
| * | | keymgr: Document how ArtiPath validation is actually supposed to work.Gabriela Moldovan2023-06-291-7/+11
| | | |
| * | | keymgr: Move validation requirements to the ArtiPath docs.Gabriela Moldovan2023-06-291-12/+15
| | | |
| * | | keymgr: Make ArtiPath platform-independent by always using '/' as a separator.Gabriela Moldovan2023-06-291-10/+10
| | | |
| * | | hsclient: Make HsClientSpecifier a newtype instead of a type alias.Gabriela Moldovan2023-06-291-1/+11
| | | |
| * | | keymgr: Add tests for ArtiPath validation.Gabriela Moldovan2023-06-291-0/+90
| | | |
| * | | keymgr: Validate ArtiPath and ArtiPathComponent.Gabriela Moldovan2023-06-291-12/+45
| | | |
| * | | keymgr: Derive Into for ArtiPath and ArtiPathComponent.Gabriela Moldovan2023-06-291-1/+3
| | | |
| * | | keymgr: Define an error type for bad `ArtiPathComponents`.Gabriela Moldovan2023-06-294-14/+29
| | | |
| * | | arti-client, hsclient: Typealias HsClientSpecifier to ArtiPathComponent.Gabriela Moldovan2023-06-292-26/+14
| | | | | | | | | | | | | | | | `ArtiPathComponent` is a more generic version of `HsClientSpecifier`.
| * | | keymgr: Derive Display for ArtiPath and ArtiPathComponent.Gabriela Moldovan2023-06-291-3/+4
| | | |
| * | | keymgr: Define `ArtiPathComponent`.Gabriela Moldovan2023-06-292-1/+22
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | An `ArtiPathComponent` is a substring of an `ArtiPath`. An `ArtiPathComponent` will be validated according to the same rules as `ArtiPath`. In the future we can replace `HsClientSpecifier` with `ArtiPathComponent` (they both serve the same purpose except `ArtiPathComponent` is more generic).
* | | Merge branch 'keymgr-config' into 'main'gabi-2502023-06-296-9/+196
|\ \ \ | | | | | | | | | | | | | | | | arti-client: Add keystore_dir to StorageConfig. See merge request tpo/core/arti!1312
| * | | arti-client: Fix clippy lint.Gabriela Moldovan2023-06-291-0/+1
| | | |
| * | | arti-client: Make keystore_dir an experimental option.Gabriela Moldovan2023-06-292-25/+17
| | | |
| * | | arti-client: Add TODO regarding keystore_dir deserialization.Gabriela Moldovan2023-06-291-0/+3
| | | |
| * | | arti cfg tests: Add declare_exceptions for storage.keystore_dir.Gabriela Moldovan2023-06-291-1/+22
| | | | | | | | | | | | | | | | | | | | This moves `storage.keystore_dir` to a separate `declare_exceptions` block and explains why we have this exception.
| * | | tor-config: Remove semver.mdGabriela Moldovan2023-06-291-1/+0
| | | | | | | | | | | | | | | | | | | | The APIs mentioned in semver.md are all `experimental` now so we don't really need the file anymore.
| * | | tor-config: Make ItemOrBool an experimental feature.Gabriela Moldovan2023-06-294-3/+35
| | | |
| * | | example-config: Temporarily remove keystore_dir example.Gabriela Moldovan2023-06-292-17/+1
| | | | | | | | | | | | | | | | | | | | | | | | Let's remove this until we figure out how the config should behave when the `keymgr` feature is disabled (should it accept or reject `keystore_dir = true`?)
| * | | arti-client: Fix clippy lints.Gabriela Moldovan2023-06-291-1/+1
| | | | | | | | | | | | | | | | Part of #891
| * | | arti-client: Load keystore dir and permissions from config.Gabriela Moldovan2023-06-291-6/+2
| | | | | | | | | | | | | | | | Part of #891
| * | | arti-client: Add expand_keystore_dir function.Gabriela Moldovan2023-06-291-0/+13
| | | | | | | | | | | | | | | | Part of #891
| * | | arti-client: Add keystore_dir to StorageConfig.Gabriela Moldovan2023-06-295-5/+91
| | | |
| * | | config: Add ItemOrBool helper for deserializing a bool or a value.Gabriela Moldovan2023-06-292-0/+60
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will enable us to support the new `keystore_dir` field, which can be either a boolean indicating whether the keystore is disabled or enabled and initialized with the default keystore dir, or a string which points to a custom keystore directory (and implies the keystore is enabled): ``` # use this path, fail if compiled out # keystore = "/path/to/arti/keystore" # # use default path, fail if compiled out # keystore = true # # disable # keystore = false ``` Part of #891
* | | Merge branch 'keymgr' into 'main'Ian Jackson2023-06-292-5/+20
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | tor-keymgr: Adjust stability guarantees for release Closes #934 See merge request tpo/core/arti!1346
| * | | tor-keymgr: Add missing footnoteIan Jackson2023-06-291-0/+5
| | | |
| * | | tor-keymgr: Replace whole-crate-is-unstable warningIan Jackson2023-06-291-3/+5
| | | | | | | | | | | | | | | | | | | | arti-client is going to use this so it can't be whole-crate-unstable, but it can be rapidly-changing.
| * | | tor-keymgr features: Document that "keymgr" is experimentalIan Jackson2023-06-291-0/+8
| | | |
| * | | tor-keymgr features: Make "keymgr" disabled by defaultIan Jackson2023-06-292-2/+2
| | |/ | |/|
* | | Merge branch 'stabilize-hs-client' into 'main'Nick Mathewson2023-06-297-15/+22
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Mark all {hs,onion-serivce}-client features as non-experimental. Closes #896 See merge request tpo/core/arti!1347
| * | | Mark all {hs,onion-serivce}-client features as non-experimental.Nick Mathewson2023-06-297-15/+22
| | | |
* | | | Merge branch 'default' into 'main'Ian Jackson2023-06-294-7/+37
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | Turn off HS client connections by default See merge request tpo/core/arti!1345
| * | | arti-client: StreamPrefs: Add security noteIan Jackson2023-06-291-0/+7
| | | |
| * | | Turn off HS client connections by defaultIan Jackson2023-06-294-5/+14
| | | | | | | | | | | | | | | | As per IRC discussion, re lack of Vanguards.
| * | | arti-client tests: Explicitly enable .onion in most testsIan Jackson2023-06-291-2/+16
| | |/ | |/| | | | | | | | | | These tests include tests of .onion, which we are disabling by default. So we must make some prefs that enable them.
* | | Merge branch 'timeouts' into 'main'Ian Jackson2023-06-292-17/+130
|\ \ \ | | | | | | | | | | | | | | | | tor-hsclient: Use estimated timeouts See merge request tpo/core/arti!1342
| * | | tor-hsclient: Add some notes about timeouts and hopsIan Jackson2023-06-291-0/+8
| | | |
| * | | tor-hsclient: Use estimated timeouts for introduction and rendezvous (fmt)Ian Jackson2023-06-291-2/+6
| | | |