Berk D. Demir
1 week ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
12 additions and
0 deletions
-
.env.template
-
src/api/core/ciphers.rs
-
src/config.rs
|
|
@ -401,6 +401,7 @@ |
|
|
## - "cxp-import-mobile": Enable the import via CXP on iOS (Clients >= 2025.9.2) |
|
|
## - "cxp-import-mobile": Enable the import via CXP on iOS (Clients >= 2025.9.2) |
|
|
## - "cxp-export-mobile": Enable the export via CXP on iOS (Clients >= 2025.9.2) |
|
|
## - "cxp-export-mobile": Enable the export via CXP on iOS (Clients >= 2025.9.2) |
|
|
## - "pm-30529-webauthn-related-origins": |
|
|
## - "pm-30529-webauthn-related-origins": |
|
|
|
|
|
## - "pm-32009-new-item-types": Enable new item types: Bank Account, Driver's License, and Passport (Clients >= 2026.4.0) |
|
|
## - "desktop-ui-migration-milestone-1": Special feature flag for desktop UI (Desktop >= 2026.2.0) |
|
|
## - "desktop-ui-migration-milestone-1": Special feature flag for desktop UI (Desktop >= 2026.2.0) |
|
|
## - "desktop-ui-migration-milestone-2": Special feature flag for desktop UI (Desktop >= 2026.2.0) |
|
|
## - "desktop-ui-migration-milestone-2": Special feature flag for desktop UI (Desktop >= 2026.2.0) |
|
|
## - "desktop-ui-migration-milestone-3": Special feature flag for desktop UI (Desktop >= 2026.2.0) |
|
|
## - "desktop-ui-migration-milestone-3": Special feature flag for desktop UI (Desktop >= 2026.2.0) |
|
|
|
|
|
@ -266,6 +266,9 @@ pub struct CipherData { |
|
|
Card = 3, |
|
|
Card = 3, |
|
|
Identity = 4, |
|
|
Identity = 4, |
|
|
SshKey = 5 |
|
|
SshKey = 5 |
|
|
|
|
|
BankAccount = 6 |
|
|
|
|
|
DriversLicense = 7 |
|
|
|
|
|
Passport = 8 |
|
|
*/ |
|
|
*/ |
|
|
pub r#type: i32, |
|
|
pub r#type: i32, |
|
|
pub name: String, |
|
|
pub name: String, |
|
|
@ -278,6 +281,9 @@ pub struct CipherData { |
|
|
card: Option<Value>, |
|
|
card: Option<Value>, |
|
|
identity: Option<Value>, |
|
|
identity: Option<Value>, |
|
|
ssh_key: Option<Value>, |
|
|
ssh_key: Option<Value>, |
|
|
|
|
|
bank_account: Option<Value>, |
|
|
|
|
|
drivers_license: Option<Value>, |
|
|
|
|
|
passport: Option<Value>, |
|
|
|
|
|
|
|
|
favorite: Option<bool>, |
|
|
favorite: Option<bool>, |
|
|
reprompt: Option<i32>, |
|
|
reprompt: Option<i32>, |
|
|
@ -510,6 +516,9 @@ pub async fn update_cipher_from_data( |
|
|
3 => data.card, |
|
|
3 => data.card, |
|
|
4 => data.identity, |
|
|
4 => data.identity, |
|
|
5 => data.ssh_key, |
|
|
5 => data.ssh_key, |
|
|
|
|
|
6 => data.bank_account, |
|
|
|
|
|
7 => data.drivers_license, |
|
|
|
|
|
8 => data.passport, |
|
|
_ => err!("Invalid type"), |
|
|
_ => err!("Invalid type"), |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
@ -1441,6 +1441,8 @@ pub const SUPPORTED_FEATURE_FLAGS: &[&str] = &[ |
|
|
"cxp-export-mobile", |
|
|
"cxp-export-mobile", |
|
|
// Platform Team
|
|
|
// Platform Team
|
|
|
"pm-30529-webauthn-related-origins", |
|
|
"pm-30529-webauthn-related-origins", |
|
|
|
|
|
// Vault Team
|
|
|
|
|
|
"pm-32009-new-item-types", |
|
|
]; |
|
|
]; |
|
|
|
|
|
|
|
|
impl Config { |
|
|
impl Config { |
|
|
|