[TT-12339] Missing schema updates for enforce timeout#8319
Conversation
|
This PR updates the JSON schemas for API definitions to formally support sub-second precision for the enforce timeout middleware. It introduces a new Files Changed Analysis
The changes are minimal and consistent across both schema files, indicating a standardized update to the timeout configuration. Architecture & Impact Assessment
Configuration FlowsequenceDiagram
participant User as User/Admin
participant Dashboard as Tyk Dashboard/API
participant ControlPlane as Control Plane
participant Gateway as Tyk Gateway
User->>Dashboard: Configures API with timeout "500ms"
Dashboard->>ControlPlane: Sends API Definition with `"duration": "500ms"`
ControlPlane->>ControlPlane: Validates definition against updated JSON schema
ControlPlane->>Gateway: Pushes validated API definition
Gateway->>Gateway: Loads config into `apidef.EnforceTimeout` struct
Note over Gateway: At runtime, `GetEnforcedTimeoutSettings` reads this value to apply the timeout.
Scope Discovery & Context ExpansionThe PR title "Missing schema updates" and the existence of the The primary impact is on the configuration and validation layers. By making the schema accurate, it prevents valid configurations from being rejected and enables tooling to correctly present this option to users. However, the change introduces a potential misconfiguration risk. By making both References
Metadata
Powered by Visor from Probelabs Last updated: 2026-06-17T04:32:21.921Z | Triggered by: pr_updated | Commit: 22b15b8 💡 TIP: You can chat with Visor using |
🎯 Recommended Merge TargetsBased on JIRA ticket TT-12339: [BE] Implement sub-second timeout for the Enforced Timeout middleware Fix Version: Tyk 5.14.0
Required:
📋 Workflow
|
Security Issues (2)
Security Issues (2)
✅ Performance Check PassedNo performance issues found – changes LGTM. Quality Issues (4)
Powered by Visor from Probelabs Last updated: 2026-06-17T04:31:30.801Z | Triggered by: pr_updated | Commit: 22b15b8 💡 TIP: You can chat with Visor using |
…or-the-enforced-timeout-middleware-missing-schemas
|
SentinelOne CNS Hardcoded Secret Detector SentinelOne CNS is a cloud-agnostic, agentless CSPM & CWPP solution that continuously detects and prevents vulnerabilities that have the highest probability of being exploited in Azure, AWS, Google Cloud, and Kubernetes. |
🚨 Jira Linter FailedCommit: The Jira linter failed to validate your PR. Please check the error details below: 🔍 Click to view error detailsNext Steps
This comment will be automatically deleted once the linter passes. |
|



Description
Related Issue
Motivation and Context
How This Has Been Tested
Screenshots (if appropriate)
Types of changes
Checklist