Skip to content

Add OFREP endpoint app for Vercel Flags - #551

Open
dferber90 wants to merge 2 commits into
mainfrom
codex/ofrep-endpoint
Open

dferber90 wants to merge 2 commits into
mainfrom
codex/ofrep-endpoint

Conversation

@dferber90

Copy link
Copy Markdown
Collaborator

Add apps/ofrep so OpenFeature OFREP clients can evaluate flags from any Vercel Flags project. The app implements both required OFREP 0.4.0 endpoints and uses @vercel/flags-core for evaluation.

Forward the caller's SDK key or Vercel OIDC token to the Flags data service. Keep successful datafiles in a bounded, five-second cache with separate entries for each credential and source project. Limit JWT cache entries to the token expiry. Permission changes can take up to five seconds to take effect.

Support bulk ETags, CORS, request validation, and protocol error responses. Add a plain-text home page with separate SDK key and OIDC request examples. Top-level null and array flag values return errors because OFREP 0.4.0 does not define these value types.

Validation:

  • All 58 tests pass, including tests with the official OFREP server provider.
  • Production build, TypeScript checks, and Biome checks pass.
  • Production HTTP checks pass for single, bulk, and encoded-key routes.
  • The frozen lockfile installs successfully.

Live OIDC access still needs verification with real credentials.

@vercel

vercel Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
flags-playground Ready Ready Preview, v0 Oct 10, 2026 3:24pm UTC
flags-sdk-dev Ready Ready Preview, v0 Oct 10, 2026 3:24pm UTC
flags-sdk-flagsmith Ready Ready Preview, v0 Oct 10, 2026 3:24pm UTC
flags-sdk-launchdarkly Ready Ready Preview, v0 Oct 10, 2026 3:24pm UTC
flags-sdk-reflag Ready Ready Preview, v0 Oct 10, 2026 3:24pm UTC
flags-sdk-snippets Ready Ready Preview, v0 Oct 10, 2026 3:24pm UTC
flags-sdk-sveltekit-snippets Ready Ready Preview, v0 Oct 10, 2026 3:24pm UTC
shirt-shop Ready Ready Preview, v0 Oct 10, 2026 3:24pm UTC
shirt-shop-api Ready Ready Preview, v0 Oct 10, 2026 3:24pm UTC
4 Skipped Deployments
Project Deployment Actions Updated
flags-sdk-growthbook Skipped Skipped v0 Oct 10, 2026 3:24pm UTC
flags-sdk-openfeature Skipped Skipped v0 Oct 10, 2026 3:24pm UTC
flags-sdk-posthog Skipped Skipped v0 Oct 10, 2026 3:24pm UTC
flags-sdk-statsig Skipped Skipped v0 Oct 10, 2026 3:24pm UTC

@socket-security

socket-security Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​openfeature/​ofrep-provider@​0.2.5731009991100

View full report

projectId,
expiresAt,
cacheKey: createHash('sha256')
.update(JSON.stringify([token, projectId]))

This branch was successfully deployed

9 active and 5 inactive deployments
Preview – flags-sdk-dev — 9ea1dfca Deployed Oct 10, 2026 by vercel[bot]
Preview – flags-sdk-sveltekit-snippets — 9ea1dfca Deployed Oct 10, 2026 by vercel[bot]
Preview – flags-sdk-snippets — 9ea1dfca Deployed Oct 10, 2026 by vercel[bot]
Preview – flags-playground — 9ea1dfca Deployed Oct 10, 2026 by vercel[bot]
Preview – flags-sdk-flagsmith — 9ea1dfca Deployed Oct 10, 2026 by vercel[bot]
Preview – flags-sdk-launchdarkly — 9ea1dfca Deployed Oct 10, 2026 by vercel[bot]
Preview – flags-sdk-reflag — 9ea1dfca Deployed Oct 10, 2026 by vercel[bot]
Preview – shirt-shop — 9ea1dfca Deployed Oct 10, 2026 by vercel[bot]
Preview – shirt-shop-api — 9ea1dfca Deployed Oct 10, 2026 by vercel[bot]
Preview – flags-sdk-growthbook — 9ea1dfca Deployed Oct 10, 2026 by vercel[bot]
Preview – flags-sdk-posthog — 9ea1dfca Deployed Oct 10, 2026 by vercel[bot]
Preview – flags-sdk-statsig — 9ea1dfca Deployed Oct 10, 2026 by vercel[bot]
Preview – flags-sdk-vercel — 9ea1dfca Deployed Oct 10, 2026 by vercel[bot]
Preview – flags-sdk-openfeature — 9ea1dfca Deployed Oct 10, 2026 by vercel[bot]
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.

2 participants