Git 检测到我的 GitHub 存储库中公开的 ODBC 连接字符串
我已经将我的代码推到master
分支到Git Repo。但是我忘了确保连接数据库服务器设置。
详细介绍,我全部委托并推动了包括ODBC连接字符串,秘密键,服务器密码的文件文件。 我知道这是开发人员的最大错误之一。但是我努力完成另一个代码,然后无法处理整个问题。
根据我的研究,GIT的结构为Worktree,每个提交都是整个存储库的快照,因此,如果我在本地代码上解决了错误并再次推动我的错误,则无法解决该问题的秘密泄漏。因为git保存了我的秘密密钥&历史密码。所以我真的需要你的帮助!
我如何解决问题,而无需修改操作以repository (删除整个回购并创建新的回购)
以及如何在我只需要删除每个秘密字符字符串和密码时如何针对安全文件设置git犯罪?
我正在使用 .netcore 和 entityFramework 在 Visual Studio *。
I have already pushed my code to the master
branch to the Git repo. But I forgot to secure of my connection database server setting.
In detail, I commited and pushed entirely local appsettings.json
file that include ODBC connection string, secret keys, password of server.
I knew it is one of the most mistake of developers. But I worked hard to finish another piece of code, then cannot handle the whole problem.
According my research, Git was structured as worktree and each commit is a snapshot of the whole repo, so if I fix my mistake on locally code and push again, the problem cannot be solved the secret leak. Because Git saved my secret key & password on history. So I really need your help!
How can I solve the problem without modifiied actions to repository (delete entire repo and create new one)
And how to set up Git to against secured files when I just need to remove secret character strings and password on each commit?
I am using .NetCore and EntityFrameWork to build a web api on visual studio*.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论