diff options
Diffstat (limited to 'src/key')
-rw-r--r-- | src/key/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/key/mod.rs b/src/key/mod.rs index bd06931..32ca241 100644 --- a/src/key/mod.rs +++ b/src/key/mod.rs @@ -60,8 +60,8 @@ impl FromStr for KeyProtection { fn from_str(s: &str) -> Result<KeyProtection, ()> { match s { "plaintext" => Ok(KeyProtection::Plaintext), - s if s.starts_with("arn") => Ok(KeyProtection::AwsKmsEnvelope(s.to_string())), - s if s.starts_with("gcp") => Ok(KeyProtection::GoogleKmsEnvelope(s.to_string())), + s if s.starts_with("arn:") => Ok(KeyProtection::AwsKmsEnvelope(s.to_string())), + s if s.starts_with("projects/") => Ok(KeyProtection::GoogleKmsEnvelope(s.to_string())), _ => Err(()), } } |