Skip to content

Commit 50888e4

Browse files
committed
Rename kms to dstack-kms
1 parent 193f819 commit 50888e4

File tree

17 files changed

+79
-85
lines changed

17 files changed

+79
-85
lines changed

Cargo.lock

Lines changed: 54 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ resolver = "2"
4343
ra-rpc = { path = "ra-rpc", default-features = false }
4444
ra-tls = { path = "ra-tls" }
4545
dstack-gateway-rpc = { path = "gateway/rpc" }
46-
kms-rpc = { path = "kms/rpc" }
46+
dstack-kms-rpc = { path = "kms/rpc" }
4747
dstack-guest-agent-rpc = { path = "guest-agent/rpc" }
4848
dstack-vmm-rpc = { path = "vmm/rpc" }
4949
cc-eventlog = { path = "cc-eventlog" }

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,12 @@ Run build.sh again to build the artifacts.
121121

122122
# If everything is okay, you should see the built artifacts in the `build` directory.
123123
$ ls
124-
certs images kms kms.toml run dstack-vmm vmm.toml dstack-gateway gateway.toml
124+
certs images dstack-kms kms.toml run dstack-vmm vmm.toml dstack-gateway gateway.toml
125125
```
126126

127127
Now you can open 3 terminals to start the components:
128128

129-
1. Run `./kms`
129+
1. Run `./dstack-kms -c kms.toml`
130130
2. Run `sudo ./dstack-gateway -c gateway.toml`
131131
3. Run `./dstack-vmm -c vmm.toml`
132132

@@ -260,12 +260,6 @@ Given the config `GATEWAY_LISTEN_PORT_PASSTHROUGH=9008`, now we can go to [`http
260260
## Upgrade an App
261261

262262
Got to the dstack-vmm webpage, click the [Upgrade] button, select or paste the compose file you want to upgrade to, and click the [Upgrade] button again.
263-
Upon successful initiation of the upgrade, you'll see a message prompting you to run the following command in your terminal to authorize the upgrade through KMS:
264-
265-
```shell
266-
./kms-allow-upgrade.sh <app_id> <upgraded_app_id>
267-
```
268-
269263
The app id does not change after the upgrade. Stop and start the app to apply the upgrade.
270264

271265
## HTTPS Certificate Transparency

cert-client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ license.workspace = true
88
[dependencies]
99
anyhow.workspace = true
1010
dstack-types.workspace = true
11-
kms-rpc.workspace = true
11+
dstack-kms-rpc.workspace = true
1212
ra-rpc = { workspace = true, features = ["client"] }
1313
ra-tls.workspace = true
1414
serde_json.workspace = true

cert-client/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use anyhow::{Context, Result};
2+
use dstack_kms_rpc::{kms_client::KmsClient, SignCertRequest};
23
use dstack_types::{AppKeys, KeyProvider};
3-
use kms_rpc::{kms_client::KmsClient, SignCertRequest};
44
use ra_rpc::client::{RaClient, RaClientConfig};
55
use ra_tls::{
66
attestation::QuoteContentType,

gateway/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ smallvec.workspace = true
3535
futures.workspace = true
3636
cmd_lib.workspace = true
3737
load_config.workspace = true
38-
kms-rpc.workspace = true
38+
dstack-kms-rpc.workspace = true
3939
ra-tls.workspace = true
4040
dstack-guest-agent-rpc.workspace = true
4141
http-client = { workspace = true, features = ["prpc"] }

gateway/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ async fn maybe_gen_certs(config: &Config, tls_config: &TlsConfig) -> Result<()>
9898
let kms_url = format!("{kms_url}/prpc");
9999
info!("Getting CA cert from {kms_url}");
100100
let client = RaClient::new(kms_url, true).context("Failed to create kms client")?;
101-
let client = kms_rpc::kms_client::KmsClient::new(client);
101+
let client = dstack_kms_rpc::kms_client::KmsClient::new(client);
102102
let ca_cert = client.get_meta().await?.ca_cert;
103103
let key = ra_tls::rcgen::KeyPair::generate().context("Failed to generate key")?;
104104
let cert = ra_tls::cert::CertRequest::builder()

kms/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "kms"
2+
name = "dstack-kms"
33
version.workspace = true
44
authors.workspace = true
55
edition.workspace = true
@@ -20,7 +20,7 @@ tracing-subscriber.workspace = true
2020
x25519-dalek.workspace = true
2121
yasna.workspace = true
2222

23-
kms-rpc.workspace = true
23+
dstack-kms-rpc.workspace = true
2424
ra-rpc = { workspace = true, features = ["client", "rocket"] }
2525
ra-tls.workspace = true
2626
load_config.workspace = true

kms/rpc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "kms-rpc"
2+
name = "dstack-kms-rpc"
33
version.workspace = true
44
authors.workspace = true
55
edition.workspace = true

kms/src/main_service.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
use std::sync::Arc;
22

33
use anyhow::{bail, Context, Result};
4-
use fs_err as fs;
5-
use k256::ecdsa::SigningKey;
6-
use kms_rpc::{
4+
use dstack_kms_rpc::{
75
kms_server::{KmsRpc, KmsServer},
86
AppId, AppKeyResponse, GetAppKeyRequest, GetMetaResponse, GetTempCaCertResponse,
97
KmsKeyResponse, KmsKeys, PublicKeyResponse, SignCertRequest, SignCertResponse,
108
};
9+
use fs_err as fs;
10+
use k256::ecdsa::SigningKey;
1111
use ra_rpc::{Attestation, CallContext, RpcCall};
1212
use ra_tls::{
1313
attestation::VerifiedAttestation,

0 commit comments

Comments
 (0)