public bool Load(SecretItem secret) { // Load a vault secret when its secret name starts with the // prefix. Other secrets won't be loaded. var secretName = secret.Identifier.Name; var envIndex = secretName.IndexOf("--"); if (envIndex > -1) { var env = secretName.Substring(0, envIndex); return(!_envronments.ContainsValue(env)); } return(true); }