Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Thumbs.db
=======
/.idea/
/venv/
/.venv/
/tests/__pycache__/
/src/__pycache__/
/src/v5_5/__pycache__/
Expand Down
32 changes: 20 additions & 12 deletions FEATURES.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,21 @@ Locations `.declaration.http.servers[].locations[].uri` match modifiers in `.dec

### NGINX API Gateway use case

| Feature | API v5.5 | API v5.6 | API v5.7 | Notes |
|--------------------------------------------------------------|-------------------------------------------------------------------------------|-------------------------------------------------------------------------------|-------------------------------------------------------------------------------|-----------------------------------------------|
| Configuration generation from OpenAPI schema | X | X | X | OpenAPI 2.0, 3.0, 3.0.1, YAML and JSON format |
| HTTP methods enforcement | X | X | X | |
| Mandatory query string parameters enforcement | | X | X | |
| Mandatory query string parameters allowed values enforcement | | X | X | |
| per-URI rate limiting | X | X | X | |
| per-URI client authentication | <li>Static JWT key</li><li>JWT key fetched from URL</li><li>Bearer token</li> | <li>Static JWT key</li><li>JWT key fetched from URL</li><li>Bearer token</li> | <li>Static JWT key</li><li>JWT key fetched from URL</li><li>Bearer token</li> | |
| per-URI client authorization | <li>JWT claims</li> | <li>JWT claims</li> | <li>JWT claims</li> | |
| per-URI cache | X | X | X | |
| Developer portal | <li>Redocly</li><li>Backstage</li> | <li>Redocly</li><li>Backstage</li> | <li>Redocly</li><li>Backstage</li> | Supported through 3rd party integration |
| API visibility | <li>Moesif</li> | <li>Moesif</li> | <li>Moesif</li> | Supported through 3rd party integration |
| Feature | API v5.5 | API v5.6 | API v5.7 | Notes |
|----------------------------------------------|-------------------------------------------------------------------------------|-------------------------------------------------------------------------------|-------------------------------------------------------------------------------|-----------------------------------------------|
| Configuration generation from OpenAPI schema | X | X | X | OpenAPI 2.0, 3.0, 3.0.1, YAML and JSON format |
| HTTP methods enforcement | X | X | X | |
| Requests payload enforcement | | | X | |
| Query string parameters enforcement | | X | X | |
| Query string parameters values enforcement | | X | X | |
| Mandatory HTTP headers enforcement | | X | X | |
| HTTP Response codes enforcement | | | X | |
| per-URI rate limiting | X | X | X | |
| per-URI client authentication | <li>Static JWT key</li><li>JWT key fetched from URL</li><li>Bearer token</li> | <li>Static JWT key</li><li>JWT key fetched from URL</li><li>Bearer token</li> | <li>Static JWT key</li><li>JWT key fetched from URL</li><li>Bearer token</li> | |
| per-URI client authorization | <li>JWT claims</li> | <li>JWT claims</li> | <li>JWT claims</li> | |
| per-URI cache | X | X | X | |
| Developer portal | <li>Redocly</li><li>Backstage</li> | <li>Redocly</li><li>Backstage</li> | <li>Redocly</li><li>Backstage</li> | Supported through 3rd party integration |
| API visibility | <li>Moesif</li> | <li>Moesif</li> | <li>Moesif</li> | Supported through 3rd party integration |


Swagger files and OpenAPI schemas can be used to automatically configure NGINX as an API Gateway
Expand All @@ -66,6 +69,10 @@ Declaration path `.declaration.http.servers[].locations[].apigateway` defines th
- `api_gateway.enabled` - enable/disable API Gateway provisioning
- `api_gateway.strip_uri` - removes the `.declaration.http.servers[].locations[].uri` part of the URI before forwarding requests to the upstream
- `api_gateway.server_url` - the base URL of the upstream server
- `api_gateway.enforce_methods` - enable/disable HTTP methods enforcement (`true` by default)
- `api_gateway.enforce_bodies` - enable/disable HTTP request bodies and Content-Type enforcement (`true` by default)
- `api_gateway.enforce_parameters` - enable/disable mandatory query string parameters and HTTP headers enforcement (`true` by default)
- `api_gateway.enforce_response_codes` - enable/disable HTTP response codes enforcement (`true` by default)
- `developer_portal.enabled` - enable/disable Developer portal provisioning
- `developer_portal.type` - developer portal type. `redocly` and `backstage` are currently supported
- `developer_portal.redocly.*` - Redocly-based developer portal parameters. See the [Postman collection](/contrib/postman)
Expand Down Expand Up @@ -200,6 +207,7 @@ For additional details see https://nginx.org/en/docs/http/ngx_http_oidc_module.h
"scope": "<OPENID_SCOPE>",
"session_store": "<OPTIONAL_SESSION_KEYVAL_STORE_NAME>",
"session_timeout": "<OPTIONAL_OIDC_SESSION_TIMEOUT>",
"session_sync_leeway": "<OPTIONAL_SESSION_SYNC_LEEWAY>",
"ssl_crl": "<OPTIONAL_IDP_SSL_CRL_CERTIFICATE_PROFILE_NAME>",
"ssl_trusted_certificate": "<OPTIONAL_IDP_SSL_TRUSTED_CA_PROFILE_NAME>",
"userinfo": <true|false>
Expand Down
1 change: 0 additions & 1 deletion contrib/mcp/src/nginx_declarative_api_mcp/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"""
from __future__ import annotations

import asyncio
import logging
import sys

Expand Down
Loading
Loading