Throughout 2021, GitGuardian's monitoring of public GitHub repositories revealed a two-fold increase in the number of secrets (database credentials, API keys, and other credentials) exposed compared to 2020, accumulating more than six million secrets. To our knowledge, the challenges developers face to avoid checked-in secrets are not yet characterized. The goal of our paper is to aid researchers and tool developers in understanding and prioritizing opportunities for future research and tool automation for mitigating checked-in secrets through an empirical investigation of challenges and solutions related to checked-in secrets. We extract 779 questions related to checked-in secrets on Stack Exchange and apply qualitative analysis to determine the challenges and the solutions posed by others for each of the challenges. We identify 27 challenges and 13 solutions. The four most common challenges, in ranked order, are: (i) store/version of secrets during deployment; (ii) store/version of secrets in source code; (iii) ignore/hide of secrets in source code; and (iv) sanitize VCS history. The three most common solutions, in ranked order, are: (i) move secrets out of source code/version control and use template config file; (ii) secret management in deployment; and (iii) use local environment variables. Our findings indicate that the same solution has been mentioned to mitigate multiple challenges. However, our findings also identify an increasing trend in questions lacking accepted solutions substantiating the need for future research and tool automation on managing secrets.
翻译:在整个2021年,GitGuardian对GitGuardian公共GitHub档案库的监测显示,与2020年相比,披露的秘密(数据库证书、API钥匙和其他证书)数量增加了两倍,比2020年增加了两倍,积累了600多万个秘密。据我们所知,开发者在避免入门秘密方面面临的挑战尚没有特征。我们论文的目的是帮助研究人员和工具开发者了解未来研究和工具自动化的机会,并优先考虑这些机会,以便通过对与入门秘密有关的挑战和解决办法进行实证性调查,减少被检查的机密。我们提取了779个与StackExch Exchange(数据库证书、API钥匙和其他证书)有关的问题,并应用定性分析来确定其他人对每一项挑战提出的挑战和解决方案。我们查明了27个挑战和13个解决方案。按顺序排列的四种最常见的挑战是:(一) 部署过程中储存/转换秘密;(二) 源码的存储/转换;(三) 源码代码中无视/隐藏的秘密;以及(四) 使VCSS历史变得清净化。按顺序排列的三种最常见的解决办法是:(二) 将机密移出对来源代码/变数的解决方案进行管理;三) 也指出,以稀释; 调。