DevOps.com

  • Latest
    • Articles
    • Features
    • Most Read
    • News
    • News Releases
  • Topics
    • AI
    • Continuous Delivery
    • Continuous Testing
    • Cloud
    • Culture
    • DevSecOps
    • Enterprise DevOps
    • Leadership Suite
    • DevOps Practice
    • ROELBOB
    • DevOps Toolbox
    • IT as Code
  • Videos/Podcasts
    • DevOps Chats
    • DevOps Unbound
  • Webinars
    • Upcoming
    • On-Demand Webinars
  • Library
  • Events
    • Upcoming Events
    • On-Demand Events
  • Sponsored Communities
    • AWS Community Hub
    • CloudBees
    • IT as Code
    • Rocket on DevOps.com
    • Traceable on DevOps.com
    • Quali on DevOps.com
  • Related Sites
    • Techstrong Group
    • Container Journal
    • Security Boulevard
    • Techstrong Research
    • DevOps Chat
    • DevOps Dozen
    • DevOps TV
    • Digital Anarchist
  • Media Kit
  • About
  • AI
  • Cloud
  • Continuous Delivery
  • Continuous Testing
  • DevSecOps
  • Leadership Suite
  • Practices
  • ROELBOB
  • Low-Code/No-Code
  • IT as Code
  • More Topics
    • Application Performance Management/Monitoring
    • Culture
    • Enterprise DevOps

Home » Features » It is Time to Secure Git

Git false positive GitLab

It is Time to Secure Git

By: Don Macvittie on February 2, 2022 Leave a Comment

At this point, we’ve got a ton of experience with the bits of Git that we use. And locking down Git is well-documented. Okay, it is documented; we can say that, at least. Interestingly, much of the ‘how to secure Git’ information out there is actually ‘how to keep critical information out of Git,’ and that is the problem. ‘Critical information’ always includes warnings to “not put configuration information into Git. Ever.” And that has been the default way to lock down Git for nearly its entire existence.

Then along comes GitOps. What is its purpose, in a nutshell? To put that critical information into Git. So we have been waltzing along; only a fraction of us actually locking down our implementation because we were making sure the data in Git, while valuable, was not full of bits of information that would be useful in compromising systems. But now it will be. In fact, in GitOps, nearly everything is one of those bits of information useful to attackers.

All of which means that it is time to get serious about Git security. Not content, but actual Git security. I won’t go crazy with links to lockdown documents here—it is a vastly different process to lock down a local Git repository versus a remote one and it is drastically different when you’re locking down a service like GitHub or GitLab (actually, some of the work is done for you with a SaaS vendor) … so, you’ll have to look it up yourself, based on your Git implementation. But there are documents out there that walk you through it; you’ll just have to make sure you find the ones that say, “How to lock down Git repositories” and not “How to keep privileged data out of Git repositories.”

But whatever you do, stop putting it off. Now, if a neer-do-well gets into your repository, it won’t just be source code for various apps that are leaked—and that is certainly bad enough, even if your organization is not a software organization—it will be infrastructure information that can be used and abused. So make certain that information is protected in every possible way. Point security at Git and tell them, “We know you are insanely busy, but this is the most important thing to protect if we are going to implement GitOps.” Because it quite literally is. If database configuration, network configs and possibly even login info are to be stored in Git, locking it down (both local and remote copies) is imperative. You wouldn’t leave that info in plain text on a centralized data store and count on existing protections. So don’t do the equivalent with Git.

If GitOps isn’t in your immediate future, that’s still your source code full of vulnerability advertisements out there, so at least ask your security team to give your Git install/policies/config a review. Even as a developer, I am less worked up about source code repositories than configuration repositories. There are several reasons for that, but the big one is you all. The bulk of organizations just don’t seem that worked up about source code repository security, but that changes when operations is asked about the list of holes in the firewall being moved into Git—and being configurable from Git (as just one example).

So, keep kicking it! You all are making, delivering and securing a metric ton of software, and the complexity of our environments did not decrease after the remote work wave hit. Yet, you are still rocking it. May you have enough staff to do the job and applicants that come looking to work with you over competitors. And keep showing the world that software is manageable. But secure your Git.

Recent Posts By Don Macvittie
  • AI: It’s What Staff Crave!
  • The Life and Times of Feature Flags
  • CI/CD is the New Lock-In
More from Don Macvittie
Related Posts
  • It is Time to Secure Git
  • Picking a Git for the Enterprise
  • DevOps Chat: GitHub Enterprise as a Hosted Service, with Jean-Louis Vignaud
    Related Categories
  • Blogs
  • DevOps Practice
  • Enterprise DevOps
  • Features
    Related Topics
  • GIT
  • Git Security
  • gitops
  • GitOps framework
  • Secrets
Show more
Show less

Filed Under: Blogs, DevOps Practice, Enterprise DevOps, Features Tagged With: GIT, Git Security, gitops, GitOps framework, Secrets

Sponsored Content
Featured eBook
The Automated Enterprise

The Automated Enterprise

“The Automated Enterprise” e-book shows the important role IT automation plays in business today. Optimize resources and speed development with Red Hat® management solutions, powered by Red Hat Ansible® Automation. IT automation helps your business better serve your customers, so you can be successful as you: Optimize resources by automating ... Read More
« App Store Antitrust Bill | GDPR vs. Google Fonts | Wordle Worth $10M+

TechStrong TV – Live

Watch latest episodes and shows

DevOps.com Poll

Get The Top Stories of the Week

  • View DevOps.com Privacy Policy
  • This field is for validation purposes and should be left unchanged.

Upcoming Webinars

Developer Security: Building Security Culture Into Your Engineering Team
Wednesday, February 2, 2022 - 11:00 am EST
Proactive Threat Hunting in Red Hat Environments With CrowdStrike
Wednesday, February 2, 2022 - 1:00 pm EST
The Least Is the Most You Should Do - Establishing Least-Privilege Access in Cloud Infrastructure
Thursday, February 3, 2022 - 1:00 pm EST

Latest from DevOps.com

Taking a DevSecOps Approach to API Security
February 2, 2022 | Doug Dooley
It is Time to Secure Git
February 2, 2022 | Don Macvittie
App Store Antitrust Bill | GDPR vs. Google Fonts | Wordle Worth $10M+
February 1, 2022 | Richi Jennings
Continuous Security: The Next Evolution of CI/CD
February 1, 2022 | Brittany Greenfield
Embedded Connectivity Solves the Right (and Left) Problem
January 31, 2022 | Galeal Zino

Most Read on DevOps.com

App Store Antitrust Bill | GDPR vs. Google Fonts | Wordle Wo...
February 1, 2022 | Richi Jennings
Measuring Technical Debt
January 27, 2022 | Sean Mack
Investing in Artificial Intelligence: How MLOps Drives Enter...
January 27, 2022 | Ganesh Bell
Google FLoC is Dead | Meta AI Supercomputer Lives | ARM Deal...
January 27, 2022 | Richi Jennings
Building a Reliable App Installation Experience With MSIX
January 28, 2022 | Venkat Ram Donga

On-Demand Webinars

DevOps.com Webinar ReplaysDevOps.com Webinar Replays

Download Free eBook

The State of Open Source Vulnerabilities 2020
The State of Open Source Vulnerabilities 2020
  • Home
  • About DevOps.com
  • Meet our Authors
  • Write for DevOps.com
  • Media Kit
  • Sponsor Info
  • Copyright
  • TOS
  • Privacy Policy

Powered by Techstrong Group, Inc.

© 2022 ·Techstrong Group, Inc.All rights reserved.