- Encryption of KVM Values: Are KVM maps encrypted by default if no specific encryption parameters are provided in the management API call during the creation of the map? Or do we need to explicitly set up encryption?
KVM in Apigee X and hybrid are encrypted by default. [Relevant documentation](Using key value maps | Apigee | Google Cloud).
- KVM vs Secret Manager: How would you compare the security of using KVM Store versus Secret Manager from an Apigee proxy perspective? Are there any significant security concerns or benefits with one over the other?
“Compare the security” is a very broad ask. As you will know, the security of a system depends on many factors. ONE of the things that it may depend on is the strength of the encryption algorithm, with strength subsuming the idea of “key strength”. AES128 uses a shorter key than AES256, and so in theory could or should be considered to be “weaker” encryption. BUT, that is not always the case. Just because AES128 and AES256 use the same first three letters in their names, does not mean they are absolutely equivalent with regard to everything else, except for key length. There may be un-discovered weaknesses in AES256 that are simply not present or feasible in AES128, or vice versa.
Having said that, the underlying encryption for all of GCP storage uses AES256 - so the underlying algorithm is the same for Secret Manager and for KVM.
Another key element in evaluating the “overall security” of a system is key management,. In Google cloud you have the ability to manage your own crypto keys (this is called “Customer Managed Encryption Keys” in GCP-speak, typically abbreviated as CMEK), or you may elect to allow Google to manage the keys. I think the latter is the most secure option, but some customers have a policy that disallows vendors from managing keys, and would prefer to manage their own. This “sounds good” except one must consider that if you are managing keys, then YOU have to be responsible for storing the keys, rotating the keys, auditing access to the keys, and so on. Just because you are holding the keys, does not mean it is being held securely. If you write the keys to a thumb drive and leave it lying on your desk, that’s not a secure backup. So key management is a factor in overall security, and it is not a simple case of “this option is better than that option.”
After all of that, there is access. Which users or principals will have read or write access to the KVMs, to the Secrets stored under secret manager? How does your system provision secrets into those things, and how secure is that process?
So I think it is impossible to say one is “better” or “more secure” than the other. The encryption-at-rest is the same. The actual security of the system will depend on your implementation and processes surrounding the technology.
- Access to KVM Values: Besides using the KVM policy, are there any other methods by which values stored in KVM could be accessed or read? What security measures should we take to ensure only authorized policies or systems can access them?
No. The way to read the KVM is only through the KVM policy. The way to read Secret Manager is only through the REST API.
Good luck.