mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-27 16:12:56 +00:00
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>.
48 lines
1.1 KiB
TOML
48 lines
1.1 KiB
TOML
[package]
|
|
name = "proxy"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
anyhow = "1.0"
|
|
async-trait = "0.1"
|
|
base64 = "0.13.0"
|
|
bytes = { version = "1.0.1", features = ['serde'] }
|
|
clap = "3.0"
|
|
futures = "0.3.13"
|
|
hashbrown = "0.11.2"
|
|
hex = "0.4.3"
|
|
hmac = "0.12.1"
|
|
hyper = "0.14"
|
|
lazy_static = "1.4.0"
|
|
md5 = "0.7.0"
|
|
parking_lot = "0.12"
|
|
pin-project-lite = "0.2.7"
|
|
rand = "0.8.3"
|
|
reqwest = { version = "0.11", default-features = false, features = ["blocking", "json", "rustls-tls"] }
|
|
routerify = "3"
|
|
rustls = "0.20.0"
|
|
rustls-pemfile = "0.2.1"
|
|
scopeguard = "1.1.0"
|
|
serde = "1"
|
|
serde_json = "1"
|
|
sha2 = "0.10.2"
|
|
socket2 = "0.4.4"
|
|
thiserror = "1.0.30"
|
|
tokio = { version = "1.17", features = ["macros"] }
|
|
tokio-postgres = { git = "https://github.com/zenithdb/rust-postgres.git", rev="d052ee8b86fff9897c77b0fe89ea9daba0e1fa38" }
|
|
tokio-rustls = "0.23.0"
|
|
url = "2.2.2"
|
|
git-version = "0.3.5"
|
|
|
|
utils = { path = "../libs/utils" }
|
|
metrics = { path = "../libs/metrics" }
|
|
workspace_hack = { version = "0.1", path = "../workspace_hack" }
|
|
|
|
x509-parser = "0.13.2"
|
|
|
|
[dev-dependencies]
|
|
rcgen = "0.8.14"
|
|
rstest = "0.12"
|
|
tokio-postgres-rustls = "0.9.0"
|