Skip to main content

Architecture Overview

The DevEx Backstage Platform is a comprehensive developer experience solution deployed on Google Cloud Platform, built on the Backstage framework.

High-Level Architecture

Component Layers

1. Presentation Layer

The frontend is a React application built with Material-UI, providing:

  • Homepage Dashboard - Customizable sections for onboarding, team links, repos, GCP projects, and PRs
  • Catalog Browser - Service catalog with entity relationships
  • Scaffolder - Template-based project creation
  • Plugin UIs - Terraform, Vault, Claude Flow, and Mockup interfaces

2. API Layer

The backend API server handles:

  • Authentication - Multi-provider OAuth (GitHub, Google, GCP IAP)
  • Authorization - Role-based access via Backstage permissions
  • Plugin APIs - RESTful endpoints for each plugin
  • Proxy - Secure external API access

3. Plugin Layer

13 custom plugins extend Backstage functionality:

CategoryPlugins
Homepagehomepage-links, homepage-repos-backend, homepage-gcp-projects-backend
Infrastructureterraform-cloud, terraform-state-backend
Securityvault-secrets, vault-secrets-backend
Developmentclaude-flow, claude-flow-backend
Designmockup, mockup-backend

4. Data Layer

  • Cloud SQL - PostgreSQL 15 for application data
  • HashiCorp Vault - Secrets management with GCP KMS auto-unseal
  • Cloud Storage - TechDocs and Vault configuration

5. Infrastructure Layer

  • Cloud Run - Containerized deployment with VPC connector
  • Private VPC - Internal networking with Cloud NAT
  • IAP - Secure external access to Vault

Authentication Architecture

Dual Authentication Pattern

FlowUse CaseToken Type
User OAuthPR reviews, comments, user actionsUser's GitHub/Google token
Service AuthBackend-to-backend, catalog ingestionVault JWT or ADC

Deployment Architecture

CI/CD Pipeline

  1. Semantic Versioning - Automatic version calculation
  2. Terraform Apply - Infrastructure provisioning via TFC
  3. Docker Build - Multi-stage build with caching
  4. Cloud Run Deploy - Zero-downtime deployment

Network Architecture

Technology Stack

LayerTechnology
FrontendReact 18, TypeScript, Material-UI
BackendNode.js 22, TypeScript, Express
DatabasePostgreSQL 15 (Cloud SQL)
SecretsHashiCorp Vault with GCP KMS
InfrastructureTerraform, Google Cloud Platform
CI/CDGitHub Actions, Terraform Cloud
ContainerDocker, Cloud Run
DocumentationDocusaurus 3