KlimentSerafimov
d059e588a6
Added invariant check for project name. (#1921)
Summary: Added invariant checking for project name. Refactored ClientCredentials and TlsConfig.
* Added formatting invariant check for project name:
**\forall c \in project_name . c \in [alnum] U {'-'}.
** sni_data == <project_name>.<common_name>
* Added exhaustive tests for get_project_name.
* Refactored TlsConfig to contain common_name : Option<String>.
* Refactored ClientCredentials construction to construct project_name directly.
* Merged ProjectNameError into ClientCredsParseError.
* Tweaked proxy tests to accommodate refactored ClientCredentials construction semantics.
* [Pytests] Added project option argument to test_proxy_select_1.
* Removed project param from Api since now it's contained in creds.
* Refactored &Option<String> -> Option<&str>.
Co-authored-by: Dmitrii Ivanov <dima@neon.tech>.
2022-06-22 09:34:24 -04:00
..
2022-06-03 19:36:09 +03:00
2022-06-09 17:14:46 +02:00
2022-06-02 16:21:28 -04:00
2022-06-02 16:21:28 -04:00
2022-06-02 16:21:28 -04:00
2022-06-02 16:21:28 -04:00
2022-06-02 16:21:28 -04:00
2022-06-02 16:21:28 -04:00
2022-06-02 16:21:28 -04:00
2022-06-02 16:21:28 -04:00
2022-06-16 14:07:11 +03:00
2022-06-02 16:21:28 -04:00
2022-06-21 11:04:10 -04:00
2022-06-02 16:21:28 -04:00
2022-06-02 16:21:28 -04:00
2022-06-02 16:21:28 -04:00
2022-06-02 16:21:28 -04:00
2022-06-09 18:30:16 +04:00
2022-06-02 16:21:28 -04:00
2022-06-09 17:14:46 +02:00
2022-06-02 16:21:28 -04:00
2022-06-02 16:21:28 -04:00
2022-06-02 16:21:28 -04:00
2022-06-02 16:21:28 -04:00
2022-06-22 09:34:24 -04:00
2022-06-02 16:21:28 -04:00
2022-06-02 16:21:28 -04:00
2022-06-03 19:36:09 +03:00
2022-06-03 00:23:13 +03:00
2022-06-09 17:14:46 +02:00
2022-06-02 16:21:28 -04:00
2022-06-02 16:21:28 -04:00
2022-06-02 16:21:28 -04:00
2022-06-02 16:21:28 -04:00
2022-06-02 16:21:28 -04:00
2022-06-02 16:21:28 -04:00
2022-06-02 16:21:28 -04:00
2022-06-02 16:21:28 -04:00
2022-06-02 16:21:28 -04:00
2022-06-17 20:43:54 +03:00
2022-06-02 16:21:28 -04:00