DevOps.com

Where the world meets DevOps

  • 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
  • DevOps Chats
  • Webinars
    • Upcoming
    • On-Demand Webinars
  • Library
  • Events
    • Virtual Summits
    • Conferences
  • Sponsored Communities
    • CloudBees
    • IT as Code
  • Related Sites
    • MediaOps
    • Container Journal
    • Security Boulevard
    • SweetCode.io
    • Digital Anarchist
    • DevOps TV on YouTube
    • DevOps Chat on SoundCloud
    • DevOps Connect
    • DevOps Dozen
  • Media Kit
  • Follow Us
    • Twitter
    • Google News
    • LinkedIn
    • Facebook
    • DevOps TV on YouTube
    • Email
MENUMENU
  • AI
    • Appian

      Appian Infuses Low-Code Platform With AI

      Appian

      How DevOps Powered by AI and Machine Learning Is Delivering Business Transformation

      AI, machine learning

      A Buyer’s Guide to AI and Machine Learning

      AIOps

      DevOps and AIOps: Better Together

      Datical Liquibase

      IBM Launches Ambitious AIOps Initiative

  • Cloud
    • AWS Slack

      AWS Aligns With Slack to Foster Dev Team Collaboration

      Harness

      Harness Enables DevOps Teams to Rein in Cloud Costs

      Cloud and DevOps, CI/CD

      Cloud and DevOps: CI/CD and Market Analysis

      cloud security report

      Report Finds Most Cloud Security Issues Left Unaddressed

      CSP, CDN

      How FaaS Is Disrupting Workflows: New CSP vs. CDN Services

  • Continuous Delivery
    • Atlassian DevOps

      Atlassian Unfurls Bevy of DevOps Updates

      CircleCI

      CircleCI Extends Core CI/CD Platform

      Jamstack

      Netlify Makes Build Plugins Available for Jamstack Platform

      SDM

      CloudBees Extends SDM Service Reach

      New Relic

      Report Finds Much Room for CD Improvement

  • Continuous Testing
    • Shift-Right Testing - TestOps

      Shift-Right Testing: The Emergence of TestOps

      What Developers Should Take Away from the Iowa Caucus App Debacle

      What Developers Should Take Away from the Iowa Caucus App Debacle

      survey testing

      Survey Sees Little Progress in Drive to Shift Testing Left

      DevOps Software Testing

      DevOps Places Software Testing in the Crosshairs

      testing

      DevOps Chats: Enterprise Continuous Testing With a Shift-Right Mindset

  • DevSecOps
    • Mobile app, security, app security

      COVID-19, the New Normal and the Indisputable Importance of Mobile App Security

      GitLab

      GitLab Adds Fuzz Testing to DevSecOps Toolbox

      DevSecOps, DevOps, Security

      3 DevOps Security Best Practices Your Organization Can’t Afford To Ignore

      DevSecOps, agile

      DevSecOps vs. Agile Development: Putting Security at the Heart of Program Development

      Appian

      How DevOps Powered by AI and Machine Learning Is Delivering Business Transformation

  • Leadership Suite
    • Work from home, remote work

      Work from Home: Changing Enterprise Risk and Careers

      tech investments

      Surviving Through the New Normal

      Enterprise IT teams

      Need for Increased Training — Strained Budgets Strain Enterprise IT Teams

      COVID Impact

      Coronavirus Impact: Enterprises Must Focus on What Works

      IT budgets

      Despite Downturn, Enterprise IT Budgets Remain Intact

  • Practices
    • AWS Slack

      AWS Aligns With Slack to Foster Dev Team Collaboration

      Mobile app, security, app security

      COVID-19, the New Normal and the Indisputable Importance of Mobile App Security

      DevSecOps, DevOps, Security

      3 DevOps Security Best Practices Your Organization Can’t Afford To Ignore

      DevOps, Agile

      Review, Review, Review

      Dev teams, time to optimize, developers, DevOps

      Using this Time to Optimize Your Dev Team’s Workflow

  • ROELBOB
    • game-time

      Game Time

      personas

      Developer Personas, or the Exquisite State of Being of June

      friends-and-followers

      Friends and Followers

      history-of-software-development-part-1

      History of Software Development – Part 1

      foresight-n-hindsight

      Foresight and Hindsight

  • Toolbox
    • AWS Slack

      AWS Aligns With Slack to Foster Dev Team Collaboration

      Appian

      Appian Infuses Low-Code Platform With AI

      Logi Analytics

      Logi Analytics Simplifies Dashboard Development

      Heroku logging, log management

      The Top 5 Challenges to Overcome with Heroku Logging

      Atlassian DevOps

      Atlassian Unfurls Bevy of DevOps Updates

  • IT as Code
  • More Topics
    • Application Performance Management/Monitoring
    • Culture
    • Enterprise DevOps

Home » Blogs » Using Netflix’s HubCommander to Automate GitHub Organizations

Netflix's HubCommander to Automate GitHub

Using Netflix’s HubCommander to Automate GitHub Organizations

Bill DoerrfeldBy Bill Doerrfeld on November 14, 2018 2 Comments

Netflix owes a great deal of its exponential growth to its phenomenal tech stack. Throttling its content through a single internal API, the company was able to deliver content agnostic of device type and quickly disrupt its contemporary competitors in the consumer entertainment industry.

Recent Posts By Bill Doerrfeld
  • How to Scale Microservices CI/CD Pipelines
  • LogicMonitor Releases IT Downtime Detection and Mitigation Study
  • How 200 CIOs Responded to a Fully Remote Economy
Bill Doerrfeld More from Bill Doerrfeld
Related Posts
  • Using Netflix’s HubCommander to Automate GitHub Organizations
  • Microsoft Is Acquiring GitHub for $7.5B, Becomes Steward of Leading Open Source Repository
  • GitHub Actions Advances Automation Strategy
    Related Categories
  • Blogs
  • DevOps Practice
  • Enterprise DevOps
  • Features
    Related Topics
  • github
  • GitHub repositories
  • HubCommander
  • Netflix
  • open source
Show more
Show less

We’re intrigued, then, when Netflix exposes some of its internal architecture for others to use. HubCommander is just one recent addition to Netflix’s growing collection of open source tools. It’s a ChatOps tool for GitHub management.

We’ve previously covered an open source approach to ChatOps, tracking how to bring free operational tools into the conversation for increased transparency and efficiency. In this article, we’ll resume this research by learning how Netflix has utilized HubCommander and delve into its open source iteration to see how others might leverage it to automate its GitHub organization.

Problems

Managing many GitHub repositories while working in a large organization can be frustrating; especially difficult is the task of managing permission levels between various user subsets. Not only are various user permission levels difficult to trace, but there is an intrinsic security problem to address as well, especially when working with external teams.

“One of the biggest challenges with using GitHub organizations is user management.” — Netflix

Project managers need to administer different organizations, and GitHub requires admin privileges to manage such repository settings; if onboarding thousands of employees, editing this manually could be an extremely tedious job.

Benefits!

At Netflix, HubCommander standardizes its user management approach, enabling automation for GitHub repo permissions across development teams.

“Management of many users on GitHub can be a challenge without tooling. We needed to provide enhanced security capabilities while maintaining developer agility. As such, we created HubCommander to provide these capabilities in a method optimized for Netflix.”

HubCommander thereby provides this missing link, granting admins the ability to quickly grant privileges. Easily to embeddable into chat, the HubCommander is made with ChatOps in mind. Therefore, privileged GitHub organization management tasks can be performed from the Slack channel, “without granting administrative or owner privileges to your GitHub organization members.”

Using HubCommander

To use HubCommander, first, you must have Python 3.5+, Slack, a GitHub organization, and a GitHub bot user with ownership level privileges.

Next, Slack channels with HubCommander installed can make the call !help to return a list of bot commands:

Source: Netflix

To create a repo, for example, you can simply use the command !CreateRepo:

Source: Netflix

Utilizing HubCommander also has security benefits as it reduces the number of GitHub API permissions granted per user—reducing attack vectors inherently increases security. Another point on security is HubCommander’s integration with Duo for additional authentication:

Source: Netflix

The total list of HubCommander features include:

  • Repository creation
  • Repository deletion
  • Repository description and website modification
  • Granting outside collaborators specific permissions to repositories
  • Repository default branch modification
  • Repository PR listing
  • Repository deploy Key listing/creation/deletion
  • Repository topics creation/deletion
  • Repository branch protection enabling/disabling
  • Enable Travis CI on a GitHub repo
  • Safeguard commands with 2FA via Duo

Automating GitHub With ChatOps

If your code resides in multiple Git repositories, like Netflix, having a method to configure permissions across all entities in a convenient way becomes a necessity. With a bot to perform operational tasks on GitHub repositories, Netflix is benefiting from automatic manipulation and a wider team access, adding to its agile goals:

“The reduction in administrative overhead has significantly simplified our open source efforts.”

Netflix operates with three development channels (a core Netflix OSS, Spinnmaker and a skunkworks project for new ideas). Thus, having a consistent permissions model across organizations can decrease friction. Also, since Netflix collaborates with third parties, such as contractors or other open source contributors, HubCommander also acts as an effective way to maintain security.

Final Thoughts

Netflix recognizes a growing popularity in the ChatOps approach and cites other benefits such as team transparency, a timestamp for each event and a self-service nature—all reasons for adopting a ChatOps strategy into its developer tooling.

HubCommander appears like a good ChatOps tool for GitHub repository management. However, GitHub Actions (still in beta at the time of writing) is a new feature that will aid development workflows, offering automation for the GitHub operational duties themselves. This may spark alternative bots to be developed, especially in terms of workflows that respond to events.

For now, with open source utilities such as HubCommander, certain GitHub duties can be quickened, stimulating a culture of more efficient management to decrease redundant tasks. While shorthand for GitHub repository management might not seem at first glance as a priority, it could scale down operational headaches tremendously.

— Bill Doerrfeld

Filed Under: Blogs, DevOps Practice, Enterprise DevOps, Features Tagged With: github, GitHub repositories, HubCommander, Netflix, open source

  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • More
  • Click to share on Pinterest (Opens in new window)
  • Click to share on Tumblr (Opens in new window)

Like this:

Like Loading...
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
« Speed to Market
Reinvent Testing to Galvanize Digital Transformation »

Upcoming Webinars

Leading the Transformation
Monday, June 15, 2020 - 1:00 pm EDT
A Decade of DevOps: Design Patterns for Future-Proofing Your DevOps Strategy
Wednesday, June 17, 2020 - 1:00 pm EDT
Prepare Your DevOps Culture to Withstand the Digital Experience Onslaught
Thursday, June 18, 2020 - 1:00 pm EDT

TechStrong TV – Live Streaming

TechStrong TV - All Episodes

Top Stories of the Week

  • View DevOps.com Privacy Policy

Upcoming Webinars

Mon 15

Leading the Transformation

Mon, June 15, 1:00 pm - 2:00 pm EDT
Wed 17

A Decade of DevOps: Design Patterns for Future-Proofing Your DevOps Strategy

Wed, June 17, 1:00 pm - 2:00 pm EDT
Thu 18

Prepare Your DevOps Culture to Withstand the Digital Experience Onslaught

Thu, June 18, 1:00 pm - 2:00 pm EDT

More Webinars

Past Webinars

Latest from DevOps.com

AWS Aligns With Slack to Foster Dev Team Collaboration
June 12, 2020 | Mike Vizard
COVID-19, the New Normal and the Indisputable Importance of ...
June 12, 2020 | Tom Tovar
Making SD-WAN More Secure and Flexible
June 12, 2020 | Matt Cable
Game Time
June 12, 2020 | ROELBOB
Appian Infuses Low-Code Platform With AI
June 11, 2020 | Mike Vizard

Most Read on DevOps.com

The Linux Foundation Adds Free Jenkins Training Course
June 8, 2020 | Mike Vizard
Cloud and DevOps: CI/CD and Market Analysis
June 9, 2020 | Pavan Belagatti
Hasura Launches Beta of GraphQL-Based Remote Joins Tool
June 8, 2020 | Mike Vizard
MongoDB, Storj Labs Work to Reduce Data Security Costs
June 8, 2020 | Mike Vizard
Friends and Followers
June 8, 2020 | ROELBOB

On-Demand Webinars

DevOps.com Webinar ReplaysDevOps.com Webinar Replays

Download Free eBook

The State of the CI/CD/ARA Market: Convergence
https://library.devops.com/the-state-of-the-ci/cd/ara-market
  • Home
  • About DevOps.com
  • Meet our Authors
  • Write for DevOps.com
  • Business Directory
  • Media Kit
  • Sponsor Info
  • Copyright
  • TOS
  • Privacy Policy

© 2020 ·MediaOps Inc.All rights reserved.