开发者

Should/can one change their Public and Private API keys on a regular basis for security purposes?

开发者 https://www.devze.com 2023-01-15 22:54 出处:网络
I run a site that is an implementation of a proprietary hosting+cms solution.This solution offers a nicely doc\'d API that I have had several contracted programmers interface with in order to build cu

I run a site that is an implementation of a proprietary hosting+cms solution. This solution offers a nicely doc'd API that I have had several contracted programmers interface with in order to build custom extensions of the site functionality.

As such, I have had to share my API keys several times. The methods called by the API can operate on the database in a number of manners. Thus, sharing the keys with too many people presents a security risk I am trying to avoid, but I also haven't even begun to reach the point where I can afford to bring on a full-time developer. Thus, I will continue to have to share keys for a bit longer.

As such, how would I go about limiting my risk as much as possible? I know sharing with as few people as possible is the obvious answer, and I will do that as much as possible.

But in ad开发者_如何学运维dition to that solution, how do other sites/admins go about this?


Such keys should expire on a regular interval. In the case of ssl most certificates expire after 1 year. Five years is more than enough to prevent the threat of Brute Force, even if you are using a small key space. However, if any any point your server is compromised you should regenerate your keys, as well as change all passwords.

0

精彩评论

暂无评论...
验证码 换一张
取 消