impr(cloud-v2#494): Remove OpenSSL as a dependency (#7404)

* add npekin auth config

* fix: use rustls

* remove native-tls

* impr: update npekin pool details

* set env to production

* remove deps

* prettier
This commit is contained in:
Nikita Pekin 2023-08-02 13:11:53 +03:00 committed by GitHub
parent 6f90711f0f
commit acce6108d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 35 deletions

25
Cargo.lock generated
View File

@ -2036,9 +2036,6 @@ name = "enso-build-utilities"
version = "0.1.0"
dependencies = [
"ide-ci",
"path-clean",
"reqwest",
"serde",
]
[[package]]
@ -4155,19 +4152,6 @@ dependencies = [
"tokio-io-timeout",
]
[[package]]
name = "hyper-tls"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905"
dependencies = [
"bytes",
"hyper",
"native-tls",
"tokio",
"tokio-native-tls",
]
[[package]]
name = "hyperx"
version = "1.4.0"
@ -5381,12 +5365,6 @@ dependencies = [
"path-dedot",
]
[[package]]
name = "path-clean"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ecba01bf2678719532c5e3059e0b5f0811273d94b397088b82e3bd0a78c78fdd"
[[package]]
name = "path-dedot"
version = "3.0.18"
@ -5930,12 +5908,10 @@ dependencies = [
"http-body",
"hyper",
"hyper-rustls 0.23.2",
"hyper-tls",
"ipnet",
"js-sys",
"log",
"mime",
"native-tls",
"once_cell",
"percent-encoding",
"pin-project-lite",
@ -5945,7 +5921,6 @@ dependencies = [
"serde_json",
"serde_urlencoded",
"tokio",
"tokio-native-tls",
"tokio-rustls 0.23.4",
"tokio-util",
"tower-service",

View File

@ -123,7 +123,9 @@ byte-unit = { version = "4.0.14", features = ["serde"] }
bytes = { version = "1.1.0" }
matches = { version = "0.1" }
console_error_panic_hook = { version = "0.1.6" }
reqwest = { version = "0.11.5" }
reqwest = { version = "0.11.5", default-features = false, features = [
"rustls-tls"
] }
proc-macro2 = { version = "1.0.50" }
syn = { version = "2.0", features = [
"full",

View File

@ -61,8 +61,8 @@ const BASE_AMPLIFY_CONFIG = {
const AMPLIFY_CONFIGS = {
/** Configuration for @indiv0's Cognito user pool. */
npekin: {
userPoolId: auth.UserPoolId('eu-west-1_AXX1gMvpx'),
userPoolWebClientId: auth.UserPoolWebClientId('1rpnb2n1ijn6o5529a7ob017o'),
userPoolId: auth.UserPoolId('eu-west-1_7yB1Lr0fS'),
userPoolWebClientId: auth.UserPoolWebClientId('ulc9knbbf0anduetrq9nnrlg2'),
domain: auth.OAuthDomain('npekin-enso-domain.auth.eu-west-1.amazoncognito.com'),
...BASE_AMPLIFY_CONFIG,
} satisfies Partial<auth.AmplifyConfig>,

View File

@ -44,7 +44,7 @@ const CLOUD_REDIRECTS = {
/** All possible API URLs, sorted by environment. */
const API_URLS = {
pbuchu: ApiUrl('https://xw0g8j3tsb.execute-api.eu-west-1.amazonaws.com'),
npekin: ApiUrl('https://s02ejyepk1.execute-api.eu-west-1.amazonaws.com'),
npekin: ApiUrl('https://lkxuay3ha1.execute-api.eu-west-1.amazonaws.com'),
production: ApiUrl('https://7aqkn3tnbc.execute-api.eu-west-1.amazonaws.com'),
}

View File

@ -6,9 +6,3 @@ edition = "2021"
[dependencies]
ide-ci = { path = "../../ci_utils" }
path-clean = "0.1.0"
serde = { version = "1.0", features = ["derive"] }
[dependencies.reqwest]
version = "0.11.12"
features = ["blocking", "json"]