rhdh-portal
Skill2 starsChanged 10 months agoMITView on GitHub
Red Hat Developer Hub — installation, configuration, Golden Path registration, TechDocs, and portal management
- Sends data out
In this repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- ai-foundry-operationsSkill
- argocd-cliSkill
- aro-deploymentSkill
- azure-cliSkill
- azure-infrastructureSkill
- database-managementSkill
- deploy-orchestrationSkill
- github-cliSkill
- helm-cliSkill
- kubectl-cliSkill
- mcp-cliSkill
- observability-stackSkill
- oc-cliSkill
- openshift-operationsSkill
- prerequisitesSkill
- terraform-cliSkill
- validation-scriptsSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 175
Use GitHub App (not PAT) for integration
- Distinctive: line 177
Use groups for access control
- Distinctive: line 181
Use External Secrets for credential management
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
When to Use
- Install and configure RHDH on AKS/ARO
- Register Golden Path templates in the catalog
- Configure GitHub integration and OAuth
- Set up TechDocs publishing
- Manage catalog entities and plugins
- Onboard developer teams
Prerequisites
- kubectl access to target cluster
- Helm 3.12+ installed
- Azure PostgreSQL deployed (via Terraform
databasesmodule) - GitHub App configured (via
setup-github-app.sh) - Azure Storage Account for TechDocs (via Terraform
securitymodule)
Installation & Configuration
1. Create Namespace and Secrets
# Create RHDH namespace
kubectl create namespace rhdh
# Create secrets (use values from Key Vault or env vars)
kubectl create secret generic rhdh-secrets \
--namespace rhdh \
--from-literal=GITHUB_APP_CLIENT_ID="${GITHUB_APP_CLIENT_ID}" \
--from-literal=GITHUB_APP_CLIENT_SECRET="${GITHUB_APP_CLIENT_SECRET}" \
--from-literal=GITHUB_APP_ID="${GITHUB_APP_ID}" \
--from-literal=GITHUB_APP_PRIVATE_KEY="${GITHUB_APP_PRIVATE_KEY}" \
--from-literal=GITHUB_WEBHOOK_SECRET="${GITHUB_WEBHOOK_SECRET}" \
--from-literal=POSTGRESQL_HOST="${POSTGRESQL_HOST}" \
--from-literal=POSTGRESQL_USER="${POSTGRESQL_USER}" \
--from-literal=POSTGRESQL_PASSWORD="${POSTGRESQL_PASSWORD}" \
--from-literal=ARGOCD_AUTH_TOKEN="${ARGOCD_AUTH_TOKEN}" \
--from-literal=ARGOCD_ADMIN_PASSWORD="${ARGOCD_ADMIN_PASSWORD}" \
--from-literal=GRAFANA_TOKEN="${GRAFANA_TOKEN}" \
--from-literal=STORAGE_ACCOUNT_NAME="${STORAGE_ACCOUNT_NAME}" \
--from-literal=STORAGE_ACCOUNT_KEY="${STORAGE_ACCOUNT_KEY}" \
--from-literal=K8S_SERVICE_ACCOUNT_TOKEN="${K8S_SA_TOKEN}"2. Install RHDH via Helm
# Add Red Hat Helm repo
helm repo add openshift-helm-charts https://charts.openshift.io/
helm repo update
# Install RHDH with project config
helm install rhdh openshift-helm-charts/redhat-developer-hub \
--namespace rhdh \
--values platform/rhdh/values.yaml \
--wait --timeout 15m
# Verify pods
kubectl get pods -n rhdh
kubectl wait --for=condition=ready pod -l app.kubernetes.io/name=backstage -n rhdh --timeout=600s3. Verify Installation
# Check pod status
kubectl get pods -n rhdh
# Check logs for startup errors
kubectl logs -n rhdh -l app.kubernetes.io/name=backstage --tail=50
# Port forward for local access
kubectl port-forward -n rhdh svc/rhdh 7007:7007
# Verify API is responding
curl -s http://localhost:7007/api/catalog/entities | jq 'length'Golden Path Template Registration
Register All Templates
# Register templates from GitHub (bulk)
for template_dir in golden-paths/h1-foundation/*/ golden-paths/h2-enhancement/*/ golden-paths/h3-innovation/*/; do
template_name=$(basename "$template_dir")
echo "Registering: $template_name"
curl -X POST "https://developer.${DNS_ZONE_NAME}/api/catalog/locations" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${RHDH_TOKEN}" \
-d "{\"type\":\"url\",\"target\":\"https://github.com/${GITHUB_ORG}/three-horizons-accelerator-v4/blob/main/${template_dir}template.yaml\"}"
doneRegister Individual Template
# Register a single template
curl -X POST "https://developer.${DNS_ZONE_NAME}/api/catalog/locations" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${RHDH_TOKEN}" \
-d '{"type":"url","target":"https://github.com/ORG/REPO/blob/main/golden-paths/h2-enhancement/microservice/template.yaml"}'Verify Templates
# List registered templates
curl -s "https://developer.${DNS_ZONE_NAME}/api/catalog/entities?filter=kind=Template" \
-H "Authorization: Bearer ${RHDH_TOKEN}" | jq '.[].metadata.name'
# Count templates (expect 22)
curl -s "https://developer.${DNS_ZONE_NAME}/api/catalog/entities?filter=kind=Template" \
-H "Authorization: Bearer ${RHDH_TOKEN}" | jq 'length'TechDocs Setup
Configure TechDocs Publishing
# Ensure Azure Blob Storage container exists
az storage container create \
--name techdocs \
--account-name "${STORAGE_ACCOUNT_NAME}" \
--auth-mode key
# Build and publish TechDocs for a component
npx @techdocs/cli generate --source-dir ./docs --output-dir ./site
npx @techdocs/cli publish \
--publisher-type azureBlobStorage \
--azureAccountName "${STORAGE_ACCOUNT_NAME}" \
--azureAccountKey "${STORAGE_ACCOUNT_KEY}" \
--entity default/component/my-service \
--directory ./siteDay-2 Operations
Portal Health
# Check RHDH pods
kubectl get pods -n rhdh -l app.kubernetes.io/name=backstage
# Check portal logs
kubectl logs -n rhdh -l app.kubernetes.io/name=backstage --tail=100
# Port forward for local access
kubectl port-forward -n rhdh svc/rhdh 7007:7007Catalog Operations
# Register entity via API
curl -X POST "http://localhost:7007/api/catalog/locations" \
-H "Content-Type: application/json" \
-d '{"type":"url","target":"https://github.com/org/repo/blob/main/catalog-info.yaml"}'
# List entities
curl -s "http://localhost:7007/api/catalog/entities" | jq '.[].metadata.name'
# Refresh all entities
curl -X POST "http://localhost:7007/api/catalog/refresh"Team Onboarding
# Use the onboard-team script
.github/skills/rhdh-portal/scripts/onboard-team.sh --team-name <team> --github-org <org>Project Files Reference
- Helm values:
platform/rhdh/values.yaml - Onboarding script:
.github/skills/rhdh-portal/scripts/onboard-team.sh - Golden Paths:
golden-paths/(22 templates across 3 horizons) - Terraform module:
terraform/modules/rhdh/
Best Practices
- Use GitHub App (not PAT) for integration
- Configure OAuth for authentication
- Use groups for access control
- Enable TechDocs for all components
- Register templates via catalog locations (not manual YAML)
- Configure proper CORS settings
- Use External Secrets for credential management
Output Format
- Command executed
- Portal status
- Entity count and status
- Recommendations
Integration with Agents
Used by: @platform, @devops
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

