Skip to content

feat: implement Sunset and Deprecation headers for legacy AI routes - #331

Merged
kilodesodiq-arch merged 1 commit into
ChainForgee:mainfrom
AugistineCreates:main
Jul 17, 2026
Merged

kilodesodiq-arch merged 1 commit into
ChainForgee:mainfrom
AugistineCreates:main

Conversation

@AugistineCreates

@AugistineCreates AugistineCreates commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

Closes #266

This pull request introduces RFC-compliant Sunset and Deprecation headers for all legacy /ai/* API paths, addressing the missing signals needed by mobile and frontend clients to migrate towards the versioned /v1/ai/* equivalents. Additionally, it integrates a Redis-based sliding window rate limiter to replace the in-process Map-based limiter.

Verification Results

  • Verified that legacy routes correctly return 308 Temporary/Permanent Redirect containing the headers Deprecation: true and Sunset: Thu, 01 Oct 2026 00:00:00 GMT when using the default environment settings.
  • Verified /ai/ocr returns 400/422 with headers appended.
  • Verified non-legacy paths (/health, /ai/metrics, etc.) are unaffected and do not emit these headers.

Copy link
Copy Markdown
Contributor

Awesome work on this! Thanks for the contribution 🚀 Merging now.

@kilodesodiq-arch
kilodesodiq-arch merged commit bf9aafb into ChainForgee:main Jul 17, 2026
8 checks passed
ifygreg01-best pushed a commit to ifygreg01-best/ChainForge that referenced this pull request Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sunset header and feature-flagged retirement for legacy routes

2 participants