Skip to content

Commit 3c03296

Browse files
authored
New SVR2 enclaves for staging and production
1 parent 87572c5 commit 3c03296

File tree

2 files changed

+40
-15
lines changed

2 files changed

+40
-15
lines changed

rust/attest/src/constants.rs

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,16 @@ pub const ENCLAVE_ID_SVR2_STAGING_PREQUANTUM: &[u8] =
1919
pub const ENCLAVE_ID_SVR2_PROD_PREQUANTUM: &[u8] =
2020
&hex!("9314436a9a144992bb3680770ea5fd7934a7ffd29257844a33763a238903d570");
2121

22-
pub const ENCLAVE_ID_SVR2_STAGING: &[u8] =
22+
pub const ENCLAVE_ID_SVR2_STAGING_2025Q2: &[u8] =
2323
&hex!("2e8cefe6e3f389d8426adb24e9b7fb7adf10902c96f06f7bbcee36277711ed91");
24-
pub const ENCLAVE_ID_SVR2_PROD: &[u8] =
24+
pub const ENCLAVE_ID_SVR2_PROD_2025Q2: &[u8] =
2525
&hex!("093be9ea32405e85ae28dbb48eb668aebeb7dbe29517b9b86ad4bec4dfe0e6a6");
2626

27+
pub const ENCLAVE_ID_SVR2_STAGING: &[u8] =
28+
&hex!("a75542d82da9f6914a1e31f8a7407053b99cc99a0e7291d8fbd394253e19b036");
29+
pub const ENCLAVE_ID_SVR2_PROD: &[u8] =
30+
&hex!("29cd63c87bea751e3bfd0fbd401279192e2e5c99948b4ee9437eafc4968355fb");
31+
2732
pub const ENCLAVE_ID_SVRB_STAGING: &[u8] =
2833
&hex!("fefd012f3792a5ffd7d385171431adcde938ccb1346d1e1d9d2635da9c44da99");
2934

@@ -86,7 +91,7 @@ pub const RAFT_CONFIG_SVR2_PROD_PREQUANTUM: &RaftConfig = &RaftConfig {
8691
attestation_timeout: 604800,
8792
simulated: false,
8893
};
89-
pub const RAFT_CONFIG_SVR2_STAGING: &RaftConfig = &RaftConfig {
94+
pub const RAFT_CONFIG_SVR2_STAGING_2025Q2: &RaftConfig = &RaftConfig {
9095
min_voting_replicas: 3,
9196
max_voting_replicas: 9,
9297
super_majority: 0,
@@ -96,7 +101,7 @@ pub const RAFT_CONFIG_SVR2_STAGING: &RaftConfig = &RaftConfig {
96101
simulated: false,
97102
};
98103

99-
pub const RAFT_CONFIG_SVR2_PROD: &RaftConfig = &RaftConfig {
104+
pub const RAFT_CONFIG_SVR2_PROD_2025Q2: &RaftConfig = &RaftConfig {
100105
min_voting_replicas: 4,
101106
max_voting_replicas: 13,
102107
super_majority: 2,
@@ -106,6 +111,26 @@ pub const RAFT_CONFIG_SVR2_PROD: &RaftConfig = &RaftConfig {
106111
simulated: false,
107112
};
108113

114+
pub const RAFT_CONFIG_SVR2_STAGING: &RaftConfig = &RaftConfig {
115+
min_voting_replicas: 3,
116+
max_voting_replicas: 9,
117+
super_majority: 0,
118+
group_id: 14164309227572919775,
119+
db_version: 2,
120+
attestation_timeout: 604800,
121+
simulated: false,
122+
};
123+
124+
pub const RAFT_CONFIG_SVR2_PROD: &RaftConfig = &RaftConfig {
125+
min_voting_replicas: 4,
126+
max_voting_replicas: 13,
127+
super_majority: 2,
128+
group_id: 10263621230883829694,
129+
db_version: 2,
130+
attestation_timeout: 604800,
131+
simulated: false,
132+
};
133+
109134
pub const RAFT_CONFIG_SVRB_STAGING: &RaftConfig = &RaftConfig {
110135
min_voting_replicas: 3,
111136
max_voting_replicas: 9,
@@ -118,7 +143,7 @@ pub const RAFT_CONFIG_SVRB_STAGING: &RaftConfig = &RaftConfig {
118143

119144
// This is left here primarily to support SVR2 bridging code that does
120145
// not expose the notion of environment to the clients.
121-
pub(crate) static EXPECTED_RAFT_CONFIG_SVR2: SmallMap<&'static [u8], &'static RaftConfig, 4> =
146+
pub(crate) static EXPECTED_RAFT_CONFIG_SVR2: SmallMap<&'static [u8], &'static RaftConfig, 6> =
122147
SmallMap::new([
123148
(
124149
ENCLAVE_ID_SVR2_STAGING_PREQUANTUM,
@@ -128,6 +153,11 @@ pub(crate) static EXPECTED_RAFT_CONFIG_SVR2: SmallMap<&'static [u8], &'static Ra
128153
ENCLAVE_ID_SVR2_PROD_PREQUANTUM,
129154
RAFT_CONFIG_SVR2_PROD_PREQUANTUM,
130155
),
156+
(
157+
ENCLAVE_ID_SVR2_STAGING_2025Q2,
158+
RAFT_CONFIG_SVR2_STAGING_2025Q2,
159+
),
160+
(ENCLAVE_ID_SVR2_PROD_2025Q2, RAFT_CONFIG_SVR2_PROD_2025Q2),
131161
(ENCLAVE_ID_SVR2_STAGING, RAFT_CONFIG_SVR2_STAGING),
132162
(ENCLAVE_ID_SVR2_PROD, RAFT_CONFIG_SVR2_PROD),
133163
]);

rust/net/src/env.rs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -216,13 +216,10 @@ pub(crate) const ENDPOINT_PARAMS_CDSI_PROD: EndpointParams<'static, Cdsi> = Endp
216216
raft_config: (),
217217
};
218218

219-
// Currently, the production SVR2 is prequantum while we're testing the postquantum
220-
// handshakes in staging.
221-
pub(crate) const ENDPOINT_PARAMS_SVR2_PROD_PREQUANTUM: EndpointParams<'static, SvrSgx> =
222-
EndpointParams {
223-
mr_enclave: MrEnclave::new(attest::constants::ENCLAVE_ID_SVR2_PROD_PREQUANTUM),
224-
raft_config: attest::constants::RAFT_CONFIG_SVR2_PROD_PREQUANTUM,
225-
};
219+
pub(crate) const ENDPOINT_PARAMS_SVR2_PROD: EndpointParams<'static, SvrSgx> = EndpointParams {
220+
mr_enclave: MrEnclave::new(attest::constants::ENCLAVE_ID_SVR2_PROD),
221+
raft_config: attest::constants::RAFT_CONFIG_SVR2_PROD,
222+
};
226223

227224
pub(crate) const KEYTRANS_SIGNING_KEY_MATERIAL_STAGING: &[u8; 32] =
228225
&hex!("ac0de1fd7f33552bbeb6ebc12b9d4ea10bf5f025c45073d3fb5f5648955a749e");
@@ -589,9 +586,7 @@ pub const PROD: Env<'static> = Env {
589586
},
590587
svr2: EnclaveEndpoint {
591588
domain_config: DOMAIN_CONFIG_SVR2,
592-
// Currently, the production SVR2 is prequantum while we're testing the postquantum
593-
// handshakes in staging.
594-
params: ENDPOINT_PARAMS_SVR2_PROD_PREQUANTUM,
589+
params: ENDPOINT_PARAMS_SVR2_PROD,
595590
},
596591
svr_b: None,
597592
keytrans_config: KEYTRANS_CONFIG_PROD,

0 commit comments

Comments
 (0)