This was a question I had been asked during an interview with a startup company.
"How would you protect your core source code in this situation?
You want to outsource a certain function of your program. You also want to add that developer in your VCS repository, but you do not want that person to be able to read your most important codes."
When I heard this, I was like, "What?" Obviously, I totally flunked that question. Then again, there are many freelancers out there. There must be a security measure for these kind of stuffs. But seriously, how do you do that?
- How do you invite someone to your repository and block them from reading certain parts? - or -
- How do you ask someone to build a part of your program whilst not sharing your source code?