Title: We are Shimon and Eyar, co-founders of Datree (<a href="https:&#x2F;&#x2F;www.datree.io" rel="nofollow">https:&#x2F;&#x2F;www.datree.io</a>). We&#x27;ve built software to help engineering teams automate the adoption of development best practices, coding standards, and security policies.<p>When I (Shimon) was the manager of a 400-developer company&#x27;s infrastructure engineering team, we had an issue where a developer committed AWS secret keys into a public GitHub repo. We were very, very lucky that the bad actors who quickly got ahold of the keys &quot;only&quot; spun up compute instances to mine bitcoin.<p>Mistakes happen and they happen to the best of us. No developer wants to make mistakes, especially ones impacting production. Those mistakes can be not only costly to the business, but emotionally painful for the developer.<p>After finding out about the issue, I had to search for any other leaked secret in our repositories to make sure we were no longer exposed. The next thing that I had to do was to take steps to help folks avoid making this mistake again.<p>It&#x27;s easy to create a policy that says &quot;do not commit secrets to GitHub&quot; (which was what I did) but in reality, this is much harder to implement. I would do things like sending a mass email to all of Engineering and having code reviewers check for it manually during code reviews. Problem is, these approaches don&#x27;t work consistently—if at all.<p>The bigger the engineering team—and the faster it ships software—the bigger this problem becomes. Also, developers today operate more independently and have broader responsibilities; they are responsible for not just writing code, but also testing, and deployment to production. You might expect that developers would follow best practices, standards, and policies, but of course, in practice, these things fall through the cracks. That&#x27;s why we built Datree.<p>What we built is a rules engine, which is essentially a server-side git-hook platform. We connect it to the organization’s source control, scan the layout of the repository, parse all structured files like YAML &#x2F; JSON &#x2F; XML &#x2F; Dockerfile, and build a catalog with the organization’s metadata—such as packages used, container images, and all the properties in the structured files.<p>The engine performs an automatic check each time code is committed to GitHub. This happens before the code can be merged to master. It runs just like your CI tests. It checks if the rules you&#x27;ve set are followed—and tells the developer when they aren&#x27;t and how to fix it, but not like your CI configuration, Datree is running on the org level so you can apply any rule on all of your repositories in just one click.<p>You may be asking “is this another static code analysis tool?” We see Datree as completing or complementing those tools, not competing with them. We’re seeing our customers create a rule with Datree to check and verify that static code analysis step is integrated and executed as part of their CI flow, instead of going over each CI config file in their repositories and updating it manually.<p>Rules could be anything: development best practices, lessons learned from post-mortems, security policies, or compliance standards. For example, a very popular rule is to prevent secrets from being merged into the master branch. Leaking secrets to source control is a common and potentially costly mistake (see <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19825202" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19825202</a>).<p>Often people ask us, “what rules should we adopt?” Because of this, we started curating industry best practices and turning them into rules they can simply enable when they use our product. Datree now comes with more than dozens of rules packs for all kinds of popular technologies (like Docker and serverless), languages and frameworks, tools (like GitHub and Travis CI), and even use cases (like SOC 2 compliance). Of course, you are free to create your own custom rules.<p>To date, Datree has run 100,000+ checks for Engineering teams large and small, including Microsoft, Globalgiving, Cybereason, and Gigster (YC S15, 400+ engineers).<p>We’re sure many HN members will have encountered similar problems and&#x2F;or have expertise in this area. We’d love to hear from you: How do you ensure the adoption of development best practices for your team? What works and doesn’t? Thank you!
Upvote: