Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open Source and how it works for secure projects? [closed]

i've always wanted to make some of our companies products open-source..but we have a lot of things in our source code that would make us vulnurable. How is this handled in most open source projects? For example, we use some custom web services to do actions to our database (Add accounts, delete accounts, ect). The source code would have to contain the key (password) we use to use the web service. If someone wanted, they could grab the source, get the key to use our web service, and wreck havoc on our database.

Are these just projects that should not be open source? Or is it common to just put the sensitive stuff in a file or something and not include that part? (Although doing this, would make the source kinda useless for the public since it would lose it's functionality).

Any links or resources on open-source projects and how this kinda stuff should be handled would be nice.

Thanks

like image 867
Kyle Avatar asked Oct 28 '09 08:10

Kyle


People also ask

What is more secure open source or closed source?

Due to the large number of individuals contributing to an open-source project and ultimately improving the software, proponents of open source systems assert fewer vulnerabilities and faster patching. In contrast, closed-source proponents argue that their codebases are more secure and less vulnerable to hacking.

Can an open source project become closed?

Yes, it is possible to make an open source project into a closed source project. The copyright holder can change the license of a project at any time, or cease to distribute source code of new releases.

What is the difference between open source and closed source?

With closed source software (also known as proprietary software), the public is not given access to the source code, so they can't see or modify it in any way. But with open source software, the source code is publicly available to anyone who wants it, and programmers can read or change that code if they desire.

How does an open source project work?

When a project is open source, that means anybody is free to use, study, modify, and distribute your project for any purpose. These permissions are enforced through an open source license.


1 Answers

Passwords and senstitive data are best not included the source file. If you look at the design of open-source software like PHPMyAdmin, a config file is provided to add in those information, and are usually stored in the root folder of the webhost (or anywhere outside www folder).

So the idea is that if your website use some info to link to a service, you should hide them away in a file as well and ask your user to provide the password and to create their own account.

like image 148
Extrakun Avatar answered Oct 01 '22 17:10

Extrakun