aboutsummaryrefslogtreecommitdiff
path: root/src/api/core/mod.rs
diff options
context:
space:
mode:
authorMathijs van Veluw <[email protected]>2024-04-06 14:42:53 +0200
committerGitHub <[email protected]>2024-04-06 14:42:53 +0200
commite1a8df96dbadfbf5ad36ce9aa2f31f34396166c2 (patch)
tree36d2f1a3ebc6103786f8bb414c097c1b96c80a6b /src/api/core/mod.rs
parente42a37c6c12bf7d51dd33ff7b6f000f4be6c8384 (diff)
downloadvaultwarden-e1a8df96dbadfbf5ad36ce9aa2f31f34396166c2.tar.gz
vaultwarden-e1a8df96dbadfbf5ad36ce9aa2f31f34396166c2.zip
Update Key Rotation web-vault v2024.3.x (#4446)
Key rotation was changed since 2024.1.x. Multiple other items were added to be rotated like password-reset and emergency-access data to be part of just one POST instead of having multiple. See: https://github.com/dani-garcia/bw_web_builds/pull/157
Diffstat (limited to 'src/api/core/mod.rs')
-rw-r--r--src/api/core/mod.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/api/core/mod.rs b/src/api/core/mod.rs
index 7712ea82..1d31b27c 100644
--- a/src/api/core/mod.rs
+++ b/src/api/core/mod.rs
@@ -191,14 +191,17 @@ fn version() -> Json<&'static str> {
#[get("/config")]
fn config() -> Json<Value> {
let domain = crate::CONFIG.domain();
- let feature_states = parse_experimental_client_feature_flags(&crate::CONFIG.experimental_client_feature_flags());
+ let mut feature_states =
+ parse_experimental_client_feature_flags(&crate::CONFIG.experimental_client_feature_flags());
+ // Force the new key rotation feature
+ feature_states.insert("key-rotation-improvements".to_string(), true);
Json(json!({
// Note: The clients use this version to handle backwards compatibility concerns
// This means they expect a version that closely matches the Bitwarden server version
// We should make sure that we keep this updated when we support the new server features
// Version history:
// - Individual cipher key encryption: 2023.9.1
- "version": "2023.9.1",
+ "version": "2024.2.0",
"gitHash": option_env!("GIT_REV"),
"server": {
"name": "Vaultwarden",