Skip to content

Commit

Permalink
Polish.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Nov 23, 2024
1 parent c5ced29 commit b606888
Show file tree
Hide file tree
Showing 17 changed files with 489 additions and 407 deletions.
14 changes: 7 additions & 7 deletions .moon/workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ docker:
- '*.json'

unstable_remote:
host: 'grpcs://localhost:9092'
host: 'grpc://localhost:9092'
# mtls:
# caCert: 'crates/remote/tests/__fixtures__/certs/ca.pem'
# clientCert: 'crates/remote/tests/__fixtures__/certs/client.pem'
# clientKey: 'crates/remote/tests/__fixtures__/certs/client.key'
# caCert: 'crates/remote/tests/__fixtures__/certs-local/ca.pem'
# clientCert: 'crates/remote/tests/__fixtures__/certs-local/client.pem'
# clientKey: 'crates/remote/tests/__fixtures__/certs-local/client.key'
# domain: 'localhost'
# tls:
# assumeHttp2: true
# cert: 'crates/remote/tests/__fixtures__/certs/ca.pem'
# domain: 'localhost'
# # assumeHttp2: true
# cert: 'crates/remote/tests/__fixtures__/certs-local/ca.pem'
# # domain: 'localhost'
10 changes: 10 additions & 0 deletions crates/config/src/workspace/remote_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,13 @@ pub struct RemoteConfig {
#[setting(nested)]
pub tls: Option<RemoteTlsConfig>,
}

impl RemoteConfig {
pub fn is_localhost(&self) -> bool {
self.host.contains("localhost") || self.host.contains("0.0.0.0")
}

pub fn is_secure(&self) -> bool {
self.tls.is_some() || self.mtls.is_some()
}
}
14 changes: 13 additions & 1 deletion crates/remote/src/grpc_remote_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ impl RemoteClient for GrpcRemoteClient {
let mut endpoint = Endpoint::from_shared(host.to_owned())
.map_err(map_transport_error)?
.user_agent("moon")
.map_err(map_transport_error)?;
.map_err(map_transport_error)?
.keep_alive_while_idle(true);

if let Some(mtls) = &config.mtls {
endpoint = endpoint
Expand All @@ -78,6 +79,17 @@ impl RemoteClient for GrpcRemoteClient {
.map_err(map_transport_error)?;
}

if config.is_localhost() {
endpoint = endpoint.origin(
format!(
"{}://localhost",
if config.is_secure() { "https" } else { "http" }
)
.parse()
.unwrap(),
);
}

self.channel = Some(endpoint.connect().await.map_err(map_transport_error)?);
self.instance_name = config.cache.instance_name.clone();

Expand Down
42 changes: 23 additions & 19 deletions crates/remote/src/remote_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl RemoteService {

#[instrument]
pub async fn connect(config: &RemoteConfig, workspace_root: &Path) -> miette::Result<()> {
if is_ci() && (config.host.contains("0.0.0.0") || config.host.contains("localhost")) {
if is_ci() && config.is_localhost() {
debug!(
host = &config.host,
"Remote service is configured with a localhost endpoint, but we are in a CI environment; disabling service",
Expand Down Expand Up @@ -402,15 +402,17 @@ async fn batch_upload_blobs(
let client = Arc::clone(&client);
let digest = digest.to_owned();

trace!(
hash = &digest.hash,
blobs = group.items.len(),
size = group.size,
max_size,
"Batching blobs upload (group {} of {})",
group_index + 1,
group_total
);
if group_total > 1 {
trace!(
hash = &digest.hash,
blobs = group.items.len(),
size = group.size,
max_size,
"Batching blobs upload (group {} of {})",
group_index + 1,
group_total
);
}

set.spawn(async move {
if let Err(error) = client.batch_update_blobs(&digest, group.items).await {
Expand Down Expand Up @@ -464,15 +466,17 @@ async fn batch_download_blobs(
let client = Arc::clone(&client);
let digest = digest.to_owned();

trace!(
hash = &digest.hash,
blobs = group.items.len(),
size = group.size,
max_size,
"Batching blobs download (group {} of {})",
group_index + 1,
group_total
);
if group_total > 1 {
trace!(
hash = &digest.hash,
blobs = group.items.len(),
size = group.size,
max_size,
"Batching blobs download (group {} of {})",
group_index + 1,
group_total
);
}

set.spawn(async move { client.batch_read_blobs(&digest, group.items).await });
}
Expand Down
54 changes: 27 additions & 27 deletions crates/remote/tests/__fixtures__/certs-local/ca.crt
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
-----BEGIN CERTIFICATE-----
MI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AWdZH23LMom/Q
sUvWItYGbXmhsPXccAny3e/sqzP/w7yuEaeZDV0C4b7QDsSQO/mFf4weXfGyG/p1
EGwTB2nfZ7h9KyD5R/HcduauR27udP/cJs/xCUxVHqF+wo5O2lTJfcZ6tnS79xpx
6K+ZhaunYsUaig9WVhMMiQx2PSzi5yXG6DeII102Be3ORelnUdRJEMwjDZxRJaH4
Tor2PueQzJ5nIGxNuKHy3ZRQehJiKmXutzPgJBMj/WsCoMekidBIF24Tlhc/Y5M=
-----END CERTIFICATE-----
104 changes: 52 additions & 52 deletions crates/remote/tests/__fixtures__/certs-local/ca.key
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
-----BEGIN ENCRYPTED PRIVATE KEY-----
MIIJpDBWBgkqhkiG9w0BBQ0wSTAxBgkqhkiG9w0BBQwwJAQQEp/s3eumF+5Pb1Ti
aVMJQwICCAAwDAYIKoZIhvcNAgkFADAUBggqhkiG9w0DBwQI5V2QhfNzwgUEgglI
VwACDjqB0PzNVzzwXFBDUwYpQiJx2m3qYvheqmW/SV+QTvzAsmFd7P3+RmZMlIzC
ZqeE5QkKqjajIODsUMTJ/5+y7uzTMXdKgQjpRo9FOD83jnct0ASuAcuF2nCH5zSe
ykAg3iyWp4/yQ0WRALIB94zKiheX/4C0GJ/qt/SQVTXd4zQBE0PJtYBHboqqGsHq
jK6MNvCvv18P5VltOSbuXfhy3LJuvp45AQoJbgl5zAtsFkOqc4o7+ZbKspqGniyw
awzfIn+hncFoUg4GsdDJd357eo+BQ//X4fZ3FALI9lY+MrAq9T3a8xy9BGHnFsXe
5ZMpgt3nYXS/c1YGzEp3Wu/XhK4QK5yAdaHXbtWCqg9l5Np1mZPVcisP5ON+0Dgf
eA5bBZpPucUIoxr3t/GOBj8m7geQ8c76OCHS6SoiTPpQhWG90sGDhFw2L0gRRWs1
KziwECewGl6A/kYHVv/Ib4dHebG4s8fh+ZkAXiaJYBtM3zUlSnDgJufDkzQa/Xvo
QEGIdJZh+byQkFWjGzb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8uKaeV9RUzVRwib29sJbxTOQfx3UbLXILczvp90DzImuYrz1
H5uF94ZUaOX55tgGkZrYu/u/TkC7PPvU7vHdt9REAMFS8y3CNkU+oiOMLlQxW9k4
Ru/sajoJJpsL5DIKjWO57lu76s7MeD/bmghIRsebodZnRZuTumCQph1z2Dt4Xsm4
T/8UGmcaitYHz7gNEglkgN5iV6glLhnTdTmJP6GFRgzXyXmKrENcEuEeknhmnjzJ
JnMnagN0WXDrF/WV4Y3fS1vlcrpwfT3Ip8OlfssuhKTYklpjoJj/InmE+tW3KDh4
5zWfDet5tera1EltPIPTeudwwtr4RlmadJhwrJRtSlViLCSQ0QvJNL0Z38hKnhst
y2tf1LYGohW0VMmSVn55JlDbi3X1aQ7aLAajKCJMsuqGITh0chLRTI9MjlNH+BHT
O4RuV3jsxaKTiGbX21tjqjUfbzvCRQsJIs2O4r1O6TrDxJ2b/bucumeml6SiKZPr
EtLh5ucg8u/YKvp6sxfFq0Deu+XpQpE8vLI6sWSGLzFMtppOdm62TP+5LKP5EK+d
/PkkrOYCPYRhAtC0bk8vRrEhuRwEgK8WTSCS1y+QHifbxfJumubHrDz7lyk9+XvZ
KsbVKZtdM9TK+URrCietawTnWchN+S2I
-----END ENCRYPTED PRIVATE KEY-----
52 changes: 52 additions & 0 deletions crates/remote/tests/__fixtures__/certs-local/ca.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
-----BEGIN PRIVATE KEY-----
MIIJQgIBADANBgkqhkiG9w0BAQEFAASCCSwwggkoAgEAAoICAQCiQHwtgPknqDqA
d4UYa9oZeTtBYpeTvMmNce5+RUnZf9cXJYYEgK4lOeM1yJuvBC3jvrzGco3tZ7qZ
n3qBfpGTENID6QZxKowCJwFMsrjzrwXXDGCkI+Lk6Ztz3ssH9g9Py9nrt9Q292o1
fBgNeO5LF4eiy425IutjFETYeY6LcJlSoRFl4ehz85jWG/VFMeqm52CQ9Y1x4K+V
tPU7zmR93SlEmLSQcsVdKDTEPKNh4SDzFE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