Problem: The Cloud SaaS team is working toward private code on Sourcegraph Cloud. Prior to allowing users to index their own private code with Sourcegraph, we need confidence that we can proactively identify and resolve security issues. We also need to ensure that we’re protected against known security flaws.
- ✅ We have a better way to store and access our own secrets.
- ✅ External surface scanning - issue (Being executed by Core App)
- ✅ Security review - authentication and authorization
- ✅ Reviewing and restricting site admins on sourcegraph.com
- ✅ Customer facing security policy
- ✅ Pen test
- ⏳ GCP access control audit
These are goals that we have not started working on, but expect to begin work on in the near future. They exist as direct continuations of our current goals, and are documented to show how we plan to ensure the continuity of our work.
Problem: The Cloud SaaS team team is working toward enabling Sourcegraph Cloud as an alternative to on-premise deployments. To be confident that Sourcegraph Cloud is a secure alternative to Sourcegraph on-premise, we need a high degree of confidence in our security posture. We’ll do this by improving visibility across our entire threat surface, as well as continuously and proactively ensuring the efficacy of our security controls.
- We have confidence that our centralized logging infrastructure is production-ready, and we have relevant tooling and testing environments configured.
- We’re confident that we’re ingesting logs from all services that are tightly coupled to our Cloud deployment. This is anything that directly interacts with our cloud deployment with elevated privileges, or directly allows authentication to these services.
- Additional continuous scanning and alerting is implemented.
- Continuously scan our sourcecode for vulnerabilities (SAST), and document triage and patching processes.
- Continuously monitor our 3rd party dependencies for vulnerabilities and outdated versions.
- We’re ingesting logs from all services loosely coupled to our Cloud deployment. This is anything that cannot independently impact Cloud, but may be leveraged to gain access, extract sensitive information, or otherwise negatively impact cloud.
- We have confidence that the logs we’re ingesting provide enough useful information about their context. This is a prerequisite for normalizing our log format.
- Normalize log format in our centralized log storage so that it is easier to correlate and search. This is a prerequisite for creating automated alerts from the logs.
- Create alerts and dashboards to automate the process of investigating events of interest (e.g., detect and alert on a spike of failed login attempts to a single account, or across Sourcegraph Cloud as a whole).
- We connect our test security repository to Sourcegraph Cloud and only members who can access that repository on GitHub can access that repository on Sourcegraph Cloud (i.e., Sourcegraph organization owners and @sourcegraph/security members). We then advertise a bounty for each unique vulnerability that allows an unauthorized person to gain access to this test security repository on Sourcegraph Cloud.
- We run a time-bound capture the flag event where there are larger bounties for being able to gain access to our test security repository on Sourcegraph Cloud.
- Document and publish our security practices so that our customers can review and audit them.
Problem: As we begin providing a SaaS product, attaining a full SOC 2 & SOC 3 certification will become necessary to enable the business. Note that a SOC 3 provides the same assurances as a SOC 2 certification, but contains fewer details, and is something that we can freely distribute. If reasonable, we’ll pursue SOC 2 type 2 in parallel with this, since it’s the same audit process. After operating in a SOC 2 environment for six months, we will attain SOC 2 type 2 - as per the requirement.
- Configure Vanta to document and plan our SOC readiness.
- Prepare for SOC 2 type 1 certification and contract with an auditor to complete the audit.
- This will serve as a way to communicate to our customers that we’re on the right track in our SOC certification process.
- SOC 3 is the focus as audit reports are designed to be more easily digestible than SOC 2 - nothing prevents us from sharing our SOC 2 audit artifacts.
- Put protocols in place to produce and gather the requisite auditable artifacts for SOC 3.
- Attain SOC certifications and publicly share the reports.