문제

Assuming that all configuration data/db passwords etc. are hidden in configuration files that aren't under version control, what kind of security issues might posting a site's code on github/bitbucket cause (issues that aren't already present just by having a public site)? Also assume it is a non-trivial site that utilizes authentication and database interaction.

I have noticed a few sites on github and was wondering if it was a safe/unsafe practice.

도움이 되었습니까?

해결책

Security by obscurity doesn't work.

If uploading the source code to GitHub reveals security issues you already had security issues. Hiding them by hiding your source code does very, very little to improve your security.

You may even receive bug reports and / or fixes, making your code more secure, not less. (Unless your site is high-profile, I wouldn't expect this, but it's possible.)

Of course, as you have already mentioned, your database credentials etc. should not be included in your repository.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top