Skip to main content
Redhat Developers  Logo
  • Products

    Platforms

    • Red Hat Enterprise Linux
      Red Hat Enterprise Linux Icon
    • Red Hat AI
      Red Hat AI
    • Red Hat OpenShift
      Openshift icon
    • Red Hat Ansible Automation Platform
      Ansible icon
    • See all Red Hat products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat Developer Hub
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat OpenShift Local
    • Red Hat Developer Sandbox

      Try Red Hat products and technologies without setup or configuration fees for 30 days with this shared Red Hat OpenShift and Kubernetes cluster.
    • Try at no cost
  • Technologies

    Featured

    • AI/ML
      AI/ML Icon
    • Linux
      Linux Icon
    • Kubernetes
      Cloud icon
    • Automation
      Automation Icon showing arrows moving in a circle around a gear
    • See all technologies
    • Programming languages & frameworks

      • Java
      • Python
      • JavaScript
    • System design & architecture

      • Red Hat architecture and design patterns
      • Microservices
      • Event-Driven Architecture
      • Databases
    • Developer experience

      • Productivity
      • Tools
      • GitOps
    • Automated data processing

      • AI/ML
      • Data science
      • Apache Kafka on Kubernetes
    • Platform engineering

      • DevOps
      • DevSecOps
      • Red Hat Ansible Automation Platform for applications and services
    • Secure development & architectures

      • Security
      • Secure coding
  • Learn

    Featured

    • Kubernetes & cloud native
      Openshift icon
    • Linux
      Rhel icon
    • Automation
      Ansible cloud icon
    • AI/ML
      AI/ML Icon
    • See all learning resources

    E-books

    • GitOps cookbook
    • Podman in action
    • Kubernetes operators
    • The path to GitOps
    • See all e-books

    Cheat sheets

    • Linux commands
    • Bash commands
    • Git
    • systemd commands
    • See all cheat sheets

    Documentation

    • Product documentation
    • API catalog
    • Legacy documentation
  • Developer Sandbox

    Developer Sandbox

    • Access Red Hat’s products and technologies without setup or configuration, and start developing quicker than ever before with our new, no-cost sandbox environments.
    • Explore the Developer Sandbox

    Featured Developer Sandbox activities

    • Get started with your Developer Sandbox
    • OpenShift virtualization and application modernization using the Developer Sandbox
    • Explore all Developer Sandbox activities

    Ready to start developing apps?

    • Try at no cost
  • Blog
  • Events
  • Videos

How Developer Hub simplifies Backstage configuration

February 2, 2026
Joshua Canter
Related topics:
Developer productivityDeveloper toolsGitOps
Related products:
Red Hat Developer HubRed Hat OpenShift GitOpsRed Hat OpenShift

    In previous articles, we described the internal entities representing enterprise services in Red Hat Developer Hub and created a simple installation. Now we will explore the configuration and plug-ins provided by Developer Hub to help automate the import of Templates and the use of a GitHub organization for users and groups. 

    Configuring an upstream Backstage instance can be a daunting task. Red Hat Developer Hub provides many supported integrations to make your existing services easier to use. This article will explain how to enable the dynamic plug-ins provided by Developer Hub and demonstrate integration with GitHub for users, groups, and catalogs. You will learn how Red Hat Developer Hub simplifies the installation and configuration of Backstage allowing teams to focus on their organization rather than configuration.  

    Importing static catalogs

    The previous articles explained how Developer Hub uses the Backstage Software Catalog and its components, resources, and APIs to map out software. To ingest these resources, they need to exist somewhere accessible to Developer Hub, usually in a version control system. A premade repository provides a simple example of how to set up a template repository. The template.yaml file will act as a top-level artifact for Developer Hub to discover templates.  

    Template.yaml

    ---
    apiVersion: backstage.io/v1alpha1
    kind: Location
    metadata:
      name: rhdh-skillz
      description: A collection of Example Software Templates for Red Hat Developer Hub
    spec:
      type: url
      targets:
        - templates/quarkus-on-openshift/template.yaml
        - templates/argo-onboard/template.yaml

    The entity kind “Location” is known to Developer Hub and instructs it to load entities from target URLs. These targets can import nearly any entity in the Backstage Software Catalog, but this example shows the importing of two sample templates as a static catalog. 

    You must update the application configuration for Developer Hub to include this catalog location.  

    app-config.yaml

    kind: ConfigMap
    apiVersion: v1
    metadata:
     name: app-config-rhdh
     namespace: rhdh-operator
    data:
      app-config.yaml: |
        app:
          title: My Red Hat Developer Hub Instance
        auth:
          environment: development
          providers:
            guest:
              dangerouslyAllowOutsideDevelopment: true
        catalog:
          locations:
            - type: url
              target: https://github.com/rhdh-beginners-guide/rhdh-templates/blob/main/templates.yaml
              rules:
                - allow: [Template]

    After applying this new configuration, Developer Hub will restart. After a few minutes, the guest user will have access to new self-service catalogs. Press the + button at the top of the UI (Figure 1) to access the self-service screen.

    The Red Hat Developer Hub home screen shows a red arrow pointing to the self service shortcut.
    Figure 1: The self-service shortcut is available in the Developer Hub header.

    There should now be two catalog items imported from GitHub in the self-service menus (Figure 2). This GitHub location is public and does not require authentication, which you can configure with the appropriate plug-ins.  

    The Red Hat Developer Hub self-service screen shows two Templates listed imported from a GitHub integration.
    Figure 2: Two templates are available on the Self Service screen.

    Note that static import is only one way to import resources. Plug-ins also exist to discover entities from sources such as GitHub.

    Integrating with GitHub

    A previous article demonstrated how to integrate with GitHub using the Helm install method. Using the operator installation method is largely the same, with the application configuration in a ConfigMap instead of within the Helm release. Additionally, repository discovery will be enabled. 

    Note: Extra permissions in GitHub will be required over what is listed in the previous article if creating new repositories is desired. Refer to the Backstage GitHub documentation for details.

    Prerequisite:

    • Set up a GitHub organization and application with correct permissions for Developer Hub as described in the previous article.

    Create secrets in OpenShift for GitHub

    Next, we will create secrets for GitHub in Red Hat OpenShift. The sensitive values for integration with GitHub will be stored in a secret. This secret will be referenced in your Backstage manifest and the keys will be used in your Developer Hub application configuration file. 

    kind: Secret
    apiVersion: v1
    metadata:
     name: github-secrets
     namespace: rhdh-operator
    stringData:
     GITHUB_APP_APP_ID: <application id from github>
     GITHUB_APP_CLIENT_ID: <client id from github>
     GITHUB_APP_CLIENT_SECRET: <client secret from github>
     GITHUB_APP_PRIVATE_KEY: <private key from github>
     GITHUB_APP_WEBHOOK_SECRET: <webhook secret>
     GITHUB_APP_WEBHOOK_URL: <webhook url>
     GITHUB_ORG: <your org name>
    type: Opaque

    Install plug-ins for GitHub

    Now that the secret for GitHub has been created, we need to begin to use the secret and update the application configuration with the GitHub configurations.

    We must first enable the correct dynamic plug-ins in Developer Hub. This is done via another ConfigMap which is attached to the Backstage CR. This ConfigMap is a list of plug-ins and configurations and whether they should be enabled.  

    kind: ConfigMap
    apiVersion: v1
    metadata:
      name: dynamic-plugins-rhdh
      namespace: rhdh-operator
    data:
      dynamic-plugins.yaml: |
        includes:
          - dynamic-plugins.default.yaml
        plugins:
         - package:  ./dynamic-plugins/dist/backstage-plugin-catalog-backend-module-github-dynamic
           disabled: false
         - package: ./dynamic-plugins/dist/backstage-plugin-catalog-backend-module-github-org-dynamic
           disabled: false
         - package: ./dynamic-plugins/dist/backstage-plugin-scaffolder-backend-module-github-dynamic
           disabled: false

    The Developer Hub application config must be updated with our new auth and integrations with GitHub. This allows Developer Hub to use GitHub as an authentication provider and pull users from the organization we listed in the related secret. 

    Also note the variables (“${GITHUB_ORG}”) in the ConfigMap. These environment variables will be pulled into Developer Hub from the secrets we created previously and accessible in the application configuration.

    kind: ConfigMap
    apiVersion: v1
    metadata:
      name: app-config-rhdh
      namespace: rhdh-operator
    data:
      app-config.yaml: |
        app:
          title: My Red Hat Developer Hub Instance
        catalog:
          providers:
            githubOrg:
              id: production
              githubUrl: "https://github.com"
              orgs: [ "${GITHUB_ORG}" ]
    
              schedule:
    
                initialDelay: { minutes: 2 }
    
                frequency: { hours: 1 }
    
                timeout: { minutes: 50 }
    
          locations:
    
            - type: url
    
              target: https://github.com/rhdh-beginners-guide/rhdh-templates/blob/main/templates.yaml
    
              rules:
    
                - allow: [Template]
        integrations:
          github:
            - host: github.com
              apps:
                - appId: ${GITHUB_APP_APP_ID}
                  clientId: ${GITHUB_APP_CLIENT_ID}
                  clientSecret: ${GITHUB_APP_CLIENT_SECRET}
                  webhookUrl: ${GITHUB_APP_WEBHOOK_URL}
                  webhookSecret: ${GITHUB_APP_WEBHOOK_SECRET}
                  privateKey: |
                    ${GITHUB_APP_PRIVATE_KEY}
        auth:
          environment: production
          providers:
            github:
              production:
                clientId: ${GITHUB_APP_CLIENT_ID}
                clientSecret: ${GITHUB_APP_CLIENT_SECRET}
        signInPage: github

    Add the secret to Backstage by updating the CR with .spec.application.extraEnvs.secrets. This will load our secrets as environment variables in the pod when Developer Hub starts.

    ---
    apiVersion: rhdh.redhat.com/v1alpha3
    kind: Backstage
    metadata:
      name: developer-hub
      labels:
        app.kubernetes.io/name: backstage
      namespace: rhdh-operator
    spec:
      application:
        appConfig:
          configMaps:
            - name: app-config-rhdh
          mountPath: /opt/app-root/src
        dynamicPluginsConfigMapName: dynamic-plugins-rhdh
        extraEnvs:
          secrets:
            - name: github-secrets
        extraFiles:
          mountPath: /opt/app-root/src
        replicas: 1
        route:
          enabled: true
      database:
        enableLocalDb: true

    After Developer Hub restarts, it will periodically pull users and groups from GitHub. You can manage this configuration with options in the GitHubOrg provider.

    Now users from your GitHub organization can log into Developer Hub (Figure 3).

    The Red Hat Developer Hub home screen shows a red arrow pointing to the user’s name synced from GitHub.
    Figure 3: This shows a GitHub user successfully synced and logged in.

    Wrap up

    This article showed users how to import static catalogs, configure dynamic plug-ins, and integrate with GitHub for repository discovery and user/group import. These tools barely scratch the surface of integrations possible with Developer Hub and the rich plug-in library. 

    In the next article, we will explore another plug-in, allowing integration with Red Hat OpenShift GitOps (based on ArgoCD). Until then, explore the built-in features of Red Hat Developer Hub and integrations that may be important to your business. No test cluster available? Take advantage of the trial to explore Red Hat Developer Hub today. 

    Related Posts

    • Introducing the Dynamic Plug-ins Factory for Developer Hub

    • Red Hat Developer Hub background and concepts

    • How to build your dynamic plug-ins for Developer Hub

    • Red Hat Developer Hub: The fastest path to Backstage on Kubernetes

    Recent Posts

    • New LibSSH connection plug-in for Ansible replaces Paramiko

    • How to build an image mode pipeline with GitLab

    • Build a zero trust environment with Red Hat Connectivity Link

    • Guide to configuring multiple authentication providers in Developer Hub

    • Agentic AI: Design reliable workflows across the hybrid cloud

    What’s up next?

    Learning Path Streamline Development: GitHub Integration and Software Templates in Red Hat Developer Hub feature image

    Streamline Development: GitHub Integration and Software Templates in Red Hat...

    In this learning exercise, we’ll build on a freshly installed Red Hat...
    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer tools
    • Interactive tutorials
    • API catalog

    Quicklinks

    • Learning resources
    • E-books
    • Cheat sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site status dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2025 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Report a website issue