Back to articles
DevOps & Systems

Building an Enterprise IDP with Backstage, Score, and Crossplane

This guide walks through building an enterprise Identity Provider (IDP) using Backstage, Score, and Crossplane to manage identities, control access, and automate infrastructure in a...

DPTCloud Engineering8 min read
Building an Enterprise IDP with Backstage, Score, and Crossplane

This guide walks through building an enterprise Identity Provider (IDP) using Backstage, Score, and Crossplane to manage identities, control access, and automate infrastructure in a DevOps environment. With a modern architecture, the system enables development teams to automate permissioning, deploy resources, and monitor performance according to enterprise security standards. The guide covers setting up Backstage as a service management platform, integrating Score for security risk assessment, and using Crossplane to manage multi-cloud resources consistently.

System Architecture Overview

The enterprise IDP system is designed to provide a central point for authentication, authorization, and infrastructure management. Backstage serves as the internal platform for development teams, offering a user interface to access services, resources, and tools. Score is integrated to evaluate the security of resources and services, providing security scores based on standards such as CIS, NIST, or ISO 27001. Crossplane acts as an abstraction layer to manage infrastructure resources across multiple platforms (AWS, GCP, Azure) from a single point, enabling deployment using a declarative model.

Integrating these components helps organizations reduce reliance on individual tools, increase consistency, and automate operations. Each component plays a distinct role but works seamlessly through APIs and webhooks. Backstage provides the user interface, Score delivers risk analysis, and Crossplane handles infrastructure deployment.

Setting Up Backstage as a Service Management Platform

Backstage is an open-source platform developed by Spotify that allows development teams to manage and access their services, resources, and tools. To set up Backstage, you need a VPS or dedicated server with high performance to run these services. You can use [NVMe Cloud VPS for Docker, Nginx & Databases](/en/vps) or [High-Performance Dedicated Servers for Production Clusters](/en/dedicated-server) to ensure stable performance.

The setup process includes installing Node.js, creating a new Backstage project with the `create-app` command, and configuring necessary plugins such as `catalog` (service management), `auth` (user authentication), and `api-docs` (API documentation). After starting Backstage, you can add services to the catalog and configure access permissions for each team.

To ensure security, Backstage should be deployed via Nginx as a reverse proxy and use HTTPS. You can use Let's Encrypt to obtain free SSL certificates. Additionally, configure OAuth2 or SAML to integrate with enterprise authentication systems.

Integrating Score for Security Assessment

Score is a security risk assessment tool that provides scores based on common security standards. To integrate Score into the system, you need to set up a Score service, either independently or using a third-party service. This service will scan resources and services managed by Backstage to evaluate their security level.

Score can be configured to perform checks on a scheduled basis or event-driven (e.g., when a new service is deployed). The assessment results will be displayed in Backstage, helping development teams identify security vulnerabilities and improve code quality. You can refer to the guide on [Building an Automated SAST Code Analysis and Scoring System with SonarQube on VPS](/en/blog/xay-dung-he-thong-phan-tich-va-cham-diem-ma-nguon-tu-dong-sast-bang-sonarqube-tren-vps) to learn more about integrating security analysis tools.

Managing Infrastructure Resources with Crossplane

Crossplane is an open-source tool that enables managing infrastructure resources across multiple platforms such as AWS, GCP, and Azure from a single point. It uses a declarative model to describe infrastructure resources, allowing development teams to automate deployment and management.

To use Crossplane, you need to install it on a Kubernetes cluster. You can use [Kubernetes on VPS: Professional K8s Cluster Setup Under $50/Month](/en/blog/kubernetes-tren-vps-huong-dan-xay-dung-k8s-cluster-chuyen-nghiep-voi-ngan-sach-duoi-50-usdthang) to set up an efficient Kubernetes cluster. After installing Crossplane, you can create "Compositions" to define infrastructure resources like databases, networks, or virtual machines.

Integrating Crossplane with Backstage allows development teams to request infrastructure resources through the user interface, and Crossplane will deploy those resources on the appropriate platform. This reduces deployment time and increases consistency in resource management.

Implementing Green DevOps Strategy

To optimize operational costs, you can apply a Green DevOps strategy using Keda to automatically shut down Node.js bots on VPS during low load. This reduces energy consumption and costs when there is no traffic. You can refer to the detailed guide at [Green DevOps Strategy: Configuring Keda to Automatically Shut Down Node.js Bots on VPS During Low Load](/en/blog/chien-luoc-green-devops-cau-hinh-keda-de-tu-dong-tat-bot-node-vps-khi-thap-diem).

Testing and Verification

To verify the system is working correctly, you should perform the following checks:

  • Try logging into Backstage and verify that services are displayed correctly.
  • Run a security test on a specific service and check that the score is displayed in Score.
  • Request the deployment of a new infrastructure resource (e.g., a database) and verify that the resource is created correctly on the cloud platform.

Troubleshooting

Common issues that may arise include:

  • Backstage does not display services: Check that the catalog plugin is configured correctly and that services are registered properly.
  • Score does not display scores: Verify that the Score service is running and that access permissions are correctly assigned.
  • Crossplane does not deploy resources: Check that resources are defined correctly in the composition and that Crossplane has the necessary access permissions.

References

For more information on the technologies mentioned, you can refer to the following documentation:

  • [Backstage Documentation](https://backstage.io/docs/)
  • [Score Documentation](https://score.readthedocs.io/)
  • [Crossplane Documentation](https://crossplane.io/docs/)

Prerequisites

To follow this guide, you need:

  • A VPS or dedicated server with sufficient resources to run Backstage, Score, and Crossplane.
  • Node.js installed for Backstage setup.
  • A Kubernetes cluster for Crossplane deployment.
  • Access to AWS, GCP, or Azure for multi-cloud infrastructure management.
  • Basic knowledge of Docker, Nginx, and security best practices.

Verification Commands

After setting up the system, run the following commands to verify functionality:

curl -sL https://github.com/crossplane/crossplane/releases/latest/download/install.sh | sh
kubectl get databaseinstances.database.aws.crossplane.io

Ensure that the database instance is created and visible in the output.

Assumptions

This guide assumes that:

  • Users have basic familiarity with DevOps tools and cloud infrastructure.
  • Access to the necessary cloud platforms (AWS, GCP, Azure) is available.
  • Security policies and compliance standards are understood and followed.

Related infrastructure & engineering guides: NVMe Cloud VPS for Docker, Nginx & Databases · Building a High-End Private Music Streaming System with Navidrome and Subsonic Client

DPTCloud Tier III Infrastructure

Recommended NVMe Cloud VPS Plans to Deploy This Setup

Enterprise RAID 10 NVMe SSDs, CMC & FPT District 9 uplinks with Anycast Anti-DDoS and 99.99% SLA.

View 22 VPS Plans
ECO · vn-02

VPS-2E

94.600 ₫ / mo

10% VAT included

  • CPU: 2 vCPU
  • RAM: 2 GB
  • SSD: 30 GB NVMe
ECO · vn-02Recommended

VPS-3E

170.500 ₫ / mo

10% VAT included

  • CPU: 2 vCPU
  • RAM: 4 GB
  • SSD: 50 GB NVMe
BASIC · vn-01Recommended

VPS-05

457.600 ₫ / mo

10% VAT included

  • CPU: 4 vCPU
  • RAM: 8 GB
  • SSD: 50 GB NVMe

Related Articles

View all
ZaloZalo SupportDiscord0384 753 478