|
| 1 | +# Harness Platform Extension Capabilities |
| 2 | + |
| 3 | +This extension provides comprehensive access to Harness Platform APIs, enabling you to manage your entire DevOps lifecycle directly from Gemini CLI. |
| 4 | + |
| 5 | +## 🚀 CI/CD & Pipelines |
| 6 | +- **Pipeline Management**: List, view, and monitor pipeline executions |
| 7 | +- **Pull Request Integration**: Create and manage pull requests with status checks |
| 8 | +- **Repository Operations**: Access repository details and manage code workflows |
| 9 | +- **Template Discovery**: Find and use intelligent templates based on natural language descriptions |
| 10 | + |
| 11 | +## 💰 Cloud Cost Management (CCM) |
| 12 | +- **Cost Analysis**: Get detailed cost breakdowns and perspectives |
| 13 | +- **Budget Tracking**: Monitor spending against budgets with time-series data |
| 14 | +- **Recommendations**: Access cost optimization recommendations with savings estimates |
| 15 | +- **Anomaly Detection**: Identify and manage cost anomalies across your cloud infrastructure |
| 16 | +- **Commitment Analysis**: Analyze Reserved Instances and Savings Plans utilization |
| 17 | + |
| 18 | +## 🔒 Security & Compliance |
| 19 | +- **Security Test Orchestration (STO)**: Manage security issues, exemptions, and vulnerability scanning |
| 20 | +- **Supply Chain Security (SCS)**: Track artifacts, compliance, and chain of custody |
| 21 | +- **Audit Trails**: Access comprehensive audit logs for compliance and governance |
| 22 | + |
| 23 | +## 🏗️ Infrastructure & Services |
| 24 | +- **Service Management**: Deploy and manage application services |
| 25 | +- **Environment Control**: Manage deployment environments and configurations |
| 26 | +- **Infrastructure Definitions**: Handle infrastructure as code deployments |
| 27 | +- **Connector Management**: Configure and manage various platform integrations |
| 28 | + |
| 29 | +## 📊 Monitoring & Observability |
| 30 | +- **Dashboard Access**: View and analyze custom dashboards |
| 31 | +- **Log Management**: Download and analyze pipeline execution logs |
| 32 | +- **Chaos Engineering**: Run chaos experiments and analyze results |
| 33 | + |
| 34 | +## 🏢 Internal Developer Portal (IDP) |
| 35 | +- **Entity Management**: Manage catalog entities and scorecards |
| 36 | +- **Score Tracking**: Monitor and improve developer experience metrics |
| 37 | + |
| 38 | +## 🎯 Registry & Artifacts |
| 39 | +- **Artifact Management**: List and manage artifacts across registries |
| 40 | +- **Version Control**: Track artifact versions and metadata |
| 41 | +- **File Operations**: Access specific artifact files and contents |
| 42 | + |
| 43 | +## 📋 Templates & Automation |
| 44 | +- **Intelligent Template Discovery**: Find relevant templates using natural language descriptions |
| 45 | +- **Template Management**: Access and utilize pipeline and workflow templates |
| 46 | +- **Template Catalog**: Browse available templates across different scopes |
| 47 | + |
| 48 | +## 🔍 Audit & Governance |
| 49 | +- **Audit Trails**: Track user activities and system changes for compliance |
| 50 | +- **User Activity Monitoring**: Monitor and analyze user actions across the platform |
| 51 | +- **Compliance Reporting**: Generate audit reports for governance and security reviews |
| 52 | + |
| 53 | +## 🔌 Platform Integration |
| 54 | +- **Connector Catalog**: Browse and discover available platform integrations |
| 55 | +- **Connector Management**: Configure and manage various third-party connections |
| 56 | +- **Database Operations**: Access database schema information and metadata |
| 57 | + |
| 58 | +## Example Commands |
| 59 | + |
| 60 | +Ask Gemini CLI natural language questions like: |
| 61 | + |
| 62 | +- "Show me the latest pipeline executions for my project" |
| 63 | +- "What are the top cost recommendations for this month?" |
| 64 | +- "Create a pull request for the feature branch" |
| 65 | +- "List all security issues with high severity" |
| 66 | +- "What's the cost breakdown by service for the last 30 days?" |
| 67 | +- "Show me the chaos experiment results from yesterday" |
| 68 | +- "Find templates for deploying to Kubernetes" |
| 69 | +- "Show me audit logs for user activities this week" |
| 70 | +- "List all available connectors in the catalog" |
| 71 | +- "What database schemas are available in my project?" |
| 72 | + |
| 73 | +## Getting Started |
| 74 | + |
| 75 | +**IMPORTANT: Setup Required Before First Use** |
| 76 | + |
| 77 | +1. **Get your Harness API Key:** |
| 78 | + - Go to Harness Platform → Account Settings → Access Management → API Keys |
| 79 | + - Create a new API key with appropriate permissions |
| 80 | + - Copy the API key |
| 81 | + |
| 82 | +2. **Set Environment Variables:** |
| 83 | + ```bash |
| 84 | + export HARNESS_API_KEY="your_api_key_here" |
| 85 | + export HARNESS_DEFAULT_ORG_ID="your_org_id" # Optional |
| 86 | + export HARNESS_DEFAULT_PROJECT_ID="your_project_id" # Optional |
| 87 | + ``` |
| 88 | + |
| 89 | + Note: `HARNESS_BASE_URL` defaults to `https://app.harness.io` and doesn't need to be set unless you're using a custom Harness instance. |
| 90 | + |
| 91 | +3. **Verify Docker is running:** |
| 92 | + ```bash |
| 93 | + docker --version |
| 94 | + ``` |
| 95 | + |
| 96 | +4. **Test the extension:** |
| 97 | + Ask: "List my Harness pipelines" or "Show me my cost recommendations" |
| 98 | + |
| 99 | +**If you get authentication errors:** |
| 100 | +- Double-check your API key is set: `echo $HARNESS_API_KEY` |
| 101 | +- Verify the API key has proper permissions in Harness Platform |
| 102 | +- Make sure Docker is running: `docker info` |
| 103 | + |
| 104 | +**For custom Harness instances:** |
| 105 | +- Set your custom base URL: `export HARNESS_BASE_URL="https://your-custom-harness.com"` |
| 106 | +- Most users can skip this - it defaults to `https://app.harness.io` |
| 107 | + |
| 108 | +The extension automatically handles authentication and provides context-aware responses based on your Harness Platform configuration. |
0 commit comments