navan-multi-env-setup

Featured

Set up dev/staging/prod environment separation for Navan integrations without a sandbox API. Use when configuring multiple environments, building CI test pipelines, or setting up local development. Trigger with "navan environments", "navan multi env", "navan dev setup", "navan mock server".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Navan Multi-Environment Setup ## Overview Navan does not offer a sandbox or staging API — every call hits production data with real corporate bookings and expense records. This creates risk for development and testing: a bug in a sync script could modify live itineraries, and CI pipelines cannot safely run integration tests. This skill implements environment isolation using separate OAuth apps, environment variable validation, a local development proxy, and a CI mock server. ## Prerequisites - Navan admin access to create multiple OAuth apps (Admin > Travel admin > Settings > Integrations) - Node.js 18+ for proxy and mock server - Understanding of OAuth 2.0 client credentials flow (see `navan-install-auth`) - `.env` management tooling (dotenv, direnv, or cloud secret manager) ## Instructions ### Step 1: Create Per-Environment OAuth Apps Create separate API credentials in the Navan admin dashboard for each environment. This provides natural isolation — the dev app can have read-only scopes while production gets full access. ```bash # .env.development — read-only scoped OAuth app NAVAN_ENV=development NAVAN_CLIENT_ID=dev-client-id-xxxxx NAVAN_CLIENT_SECRET=dev-client-secret-xxxxx NAVAN_API_BASE=https://api.navan.com/v1 NAVAN_READ_ONLY=true # .env.staging — read + limited write, separate audit trail NAVAN_ENV=staging NAVAN_CLIENT_ID=stg-client-id-xxxxx NAVAN_CLIENT_SECRET=stg-client-secret-xxxxx NAVAN_API_BASE=https://api.navan.com/v1 NAVAN_READ_ONLY=false # .env.produc...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

navan-local-dev-loop

Set up a local development environment for Navan API integrations with token caching and request logging. Use when starting a new Navan project or debugging API issues locally. Trigger with "navan local dev", "navan dev setup", "navan local dev loop", "navan dev environment".

2,266 Updated today
jeremylongshore
AI & Automation Featured

navan-install-auth

Set up OAuth 2.0 authentication for the Navan REST API. Use when configuring a new Navan integration or rotating API credentials. Trigger with "install navan", "setup navan auth", "navan credentials", "navan oauth".

2,266 Updated today
jeremylongshore
AI & Automation Featured

navan-security-basics

Secure Navan API credentials with OAuth 2.0 best practices, SSO/SAML, and SCIM provisioning. Use when hardening a Navan integration, rotating credentials, or configuring identity provider SSO. Trigger with "navan security", "navan sso", "navan credentials", "navan scim".

2,266 Updated today
jeremylongshore
AI & Automation Featured

evernote-multi-env-setup

Configure multi-environment setup for Evernote integrations. Use when setting up dev, staging, and production environments, or managing environment-specific configurations. Trigger with phrases like "evernote environments", "evernote staging", "evernote dev setup", "multiple environments evernote".

2,266 Updated today
jeremylongshore
AI & Automation Featured

navan-prod-checklist

Use when validating production readiness for a Navan API integration — credential rotation, alerting, rate limits, SSO, SCIM, and compliance audit trails. Trigger with "navan prod checklist" or "navan production readiness".

2,266 Updated today
jeremylongshore