Skip to content
maintainx-prod-checklist logo

MaintainX Production Checklist

maintainx-prod-checklist

Production deployment checklist for MaintainX integrations.

SKILL.md

Full skill instructions

MaintainX Production Checklist

Overview

Comprehensive pre-deployment and post-deployment checklist for MaintainX integrations covering security, reliability, observability, and data integrity.

Prerequisites

  • MaintainX integration developed and tested
  • Production MaintainX account with API access
  • Deployment infrastructure ready (Cloud Run, K8s, or similar)

Instructions

Step 1: Authentication & Security

# Verify production API key works
curl -s -o /​dev/​null -w "HTTP %{http_code}" \
  https://api.getmaintainx.com/​v1/​users?limit=1 \
  -H "Authorization: Bearer $MAINTAINX_API_KEY_PROD"

# Verify no secrets in codebase
npx gitleaks detect --source . --no-git
  • API key stored in secret manager (not env file or code)
  • .env and *.key files in .gitignore
  • Pre-commit hook blocking secret commits
  • API key rotation schedule set (every 90 days)
  • Input validation on all user-provided data (Zod or similar)

Step 2: Error Handling & Resilience

  • Retry logic with exponential backoff for 429 and 5xx errors
  • Retry-After header honored on 429 responses
  • Circuit breaker for cascading failure prevention
  • Graceful degradation when MaintainX API is down
  • Request timeout set (30 seconds recommended)
// Verify retry logic is configured
const client = axios.create({
  baseURL: 'https://api.getmaintainx.com/​v1',
  timeout: 30_000,  // 30 second timeout
  headers: { Authorization: `Bearer ${apiKey}` },
});

Step 3: Data Integrity

  • Cursor-based pagination handles all list endpoints
  • Idempotency keys on webhook handlers (prevent duplicate processing)
  • Data sync state persisted (survives restarts)
  • Reconciliation job runs daily to detect drift
  • Work order status transitions follow valid paths only

Step 4: Observability

  • Structured JSON logging (not console.log in production)
  • API request metrics (count, latency, error rate)
  • Health check endpoint (/​health) returning API connectivity status
  • Readiness probe (/​ready) for container orchestration
  • Alerting configured for error rate > 5%, latency > 5s, sync lag > 15min

Step 5: Performance

  • Connection pooling with keep-alive enabled
  • Response caching for static resources (users, locations, teams)
  • Max page size (100) used for pagination
  • Webhook-driven updates instead of polling where possible
  • Rate limiting to stay within API quotas

Step 6: Deployment

  • Multi-stage Docker build (small production image)
  • Non-root user in container
  • Resource limits set (CPU, memory)
  • Auto-scaling configured (min 1 instance for webhooks)
  • Rollback procedure documented and tested

Post-Deployment Verification

#!/​bin/​bash
echo "=== Post-Deployment Verification ==="

# 1. Health check
echo -n "Health check: "
curl -s http://YOUR_SERVICE_URL/​health | jq -r '.status'

# 2. API connectivity
echo -n "MaintainX API: "
curl -s -o /​dev/​null -w "%{http_code}" \
  https://api.getmaintainx.com/​v1/​users?limit=1 \
  -H "Authorization: Bearer $MAINTAINX_API_KEY_PROD"
echo ""

# 3. Create test work order
echo "Creating test work order..."
WO=$(curl -s -X POST https://api.getmaintainx.com/​v1/​workorders \
  -H "Authorization: Bearer $MAINTAINX_API_KEY_PROD" \
  -H "Content-Type: application/​json" \
  -d '{"title":"Post-deploy verification test","priority":"LOW"}')
WO_ID=$(echo $WO | jq -r '.id')
echo "  Created: #$WO_ID"

# 4. Verify retrieval
echo -n "Retrieve test: "
curl -s "https://api.getmaintainx.com/​v1/​workorders/​$WO_ID" \
  -H "Authorization: Bearer $MAINTAINX_API_KEY_PROD" | jq -r '.status'

# 5. Clean up
curl -s -X PATCH "https://api.getmaintainx.com/​v1/​workorders/​$WO_ID" \
  -H "Authorization: Bearer $MAINTAINX_API_KEY_PROD" \
  -H "Content-Type: application/​json" \
  -d '{"status":"CLOSED"}' > /​dev/​null
echo "  Cleaned up test work order #$WO_ID"

# 6. Check metrics endpoint
echo -n "Metrics endpoint: "
curl -s -o /​dev/​null -w "%{http_code}" http://YOUR_SERVICE_URL/​metrics
echo ""

echo "=== Verification complete ==="

Go-Live Readiness Summary

CategoryRequirementPriority
AuthSecret manager, no hardcoded keysP0
ErrorsRetry + backoff for 429/​5xxP0
DataPagination, idempotency, sync stateP0
ObservabilityLogging, metrics, health checkP0
PerformanceConnection pooling, cachingP1
SecurityInput validation, audit loggingP1
DeploymentDocker, non-root, resource limitsP1
RecoveryRollback procedure, reconciliationP2

Output

  • All P0 checklist items verified before go-live
  • Post-deployment verification script run successfully
  • Test work order created and cleaned up in production
  • Health check and metrics endpoints responding
  • Go-live readiness documented

Error Handling

IssueCheckSolution
Health check fails post-deploycurl /​healthCheck API key is mounted, restart pod
Test work order creation failsCheck HTTP statusVerify API key permissions and plan tier
Metrics endpoint 404Check route configEnsure metrics server started on correct port
High error rate after deployCheck logsRoll back, investigate, fix, redeploy

Resources

Next Steps

For API version migrations, see maintainx-upgrade-migration.

Examples

Automated pre-deploy gate in CI:

# .github/​workflows/​deploy.yml
jobs:
  pre-deploy-check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/​checkout@v4
      - run: npx gitleaks detect --source . --no-git
      - run: npm run test -- --coverage --coverageThreshold='{"global":{"branches":80}}'
      - run: npm run lint
      - run: npm run typecheck

More DevOps & CI/CD skills

Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.

6K 472.6K
View

Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.

6K 472.6K
View

Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.

1.5K 454.3K
View
azure-kubernetes logo
DevOps & CI/CD

azure-kubernetes

Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.

1.5K 447.1K
View

Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.

92.7K 354.9K
View
just-scrape logo
DevOps & CI/CD

just-scrape

Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.

69 245K
View

Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.

462 159.7K
View

Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.

462 159.1K
View
deploy-to-vercel logo
DevOps & CI/CD

deploy-to-vercel

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

31.9K 146.6K
View
programmatic-seo logo
DevOps & CI/CD

programmatic-seo

Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.

53.3K 140.1K
View

Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.

63 123.5K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View

Coding & apps AI tools

Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View
Imagica logo
Coding & apps

Imagica

Build a no-code AI app in minutes.

Freemium
View
E
Coding & apps

Emergent.sh

An IDE for code migration from legacy to modern frameworks through coding agents.

Freemium
View
Wonder Dynamics logo
Coding & apps

Wonder Dynamics

Automate CGI animation in live-action scenes

Paid
View
M
Coding & apps

Mixo

Launch a website in seconds with AI.

Paid
View
AI Code Convert logo
Coding & apps

AI Code Convert

Streamline Your Coding Experience with AI Code Helper

Free
View