Skip to content

fix(server): preserve inline provider secrets on redacted saves - #250

Merged
leoisadev1 merged 2 commits into
mainfrom
fix/redacted-provider-secrets
Sep 10, 2026
Merged

fix(server): preserve inline provider secrets on redacted saves#250
leoisadev1 merged 2 commits into
mainfrom
fix/redacted-provider-secrets

Conversation

@leoisadev1

Copy link
Copy Markdown
Member

Problem

Saving an unchanged provider can erase a sensitive environment value stored inline in settings.json. Clients return a redacted placeholder, but there may not yet be a corresponding secret-store entry.

Fix

Before persisting that placeholder, migrate the current inline value for the same provider instance and variable into the secret store. Explicit replacements and clears keep their existing behavior. If the secret-store write fails, the original file and cached value stay in place.

This is an Akeru adaptation of upstream T3 Code work.

Upstream

Verification

  • vp test run apps/server/src/serverSettings.test.ts — 45 passed
  • Targeted lint — clean

Model

Grok 4.6 High in Grok Build via Orca.

Saving an unchanged provider can erase a sensitive environment value
stored inline in settings.json. Clients return a redacted placeholder,
but there may not yet be a corresponding secret-store entry.

Before persisting that placeholder, migrate the current inline value
for the same provider instance and variable into the secret store.
Explicit replacements and clears keep their existing behavior.

Upstream: pingdotgg#10054

Grok 4.6 High in Grok Build via Orca.
@vercel

vercel Bot commented Sep 10, 2026

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
akeru-bot-landing Skipped Skipped Sep 10, 2026 6:32pm UTC

Request Review

@github-actions github-actions Bot added size:S vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Sep 10, 2026
@greptile-apps

greptile-apps Bot commented Sep 10, 2026

Copy link
Copy Markdown

Greptile Summary

This change preserves existing inline provider credentials when unchanged redacted placeholders are saved, migrates retained values to the secret store, and keeps explicit replacement and clearing behavior intact.

Confidence Score: 5/5

Safe to merge.

There are no outstanding findings.

Reviews (2): Last reviewed commit: "Merge branch 'main' into fix/redacted-pr..." | Re-trigger Greptile

@leoisadev1
leoisadev1 merged commit a308614 into main Sep 10, 2026
11 checks passed
@leoisadev1
leoisadev1 deleted the fix/redacted-provider-secrets branch September 10, 2026 23:33
@github-actions github-actions Bot mentioned this pull request Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant