Skip to content

fix masked profile secret preservation#13

Merged
caorushizi merged 1 commit into
masterfrom
codex/fix-masked-secret-preserve
Jun 17, 2026
Merged

fix masked profile secret preservation#13
caorushizi merged 1 commit into
masterfrom
codex/fix-masked-secret-preserve

Conversation

@caorushizi

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 17, 2026 16:04
@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
one-cli-docs Ready Ready Preview, Comment Jun 17, 2026 4:04pm

@caorushizi
caorushizi merged commit ab442a1 into master Jun 17, 2026
7 checks passed
@caorushizi
caorushizi deleted the codex/fix-masked-secret-preserve branch June 17, 2026 16:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes credential handling in the configure HTTP API + dashboard so that masked secrets ("********") are not accidentally persisted back into credentials.json during profile updates, and ensures additional deploy backends have their tokens masked by default.

Changes:

  • Added masking for Cloudflare and EdgeOne deploy profile API tokens in the serve layer.
  • Added server-side logic to preserve existing secrets when an upsert payload contains the masked sentinel.
  • Updated the dashboard secret inputs to display masked secrets as empty with an “unchanged” placeholder, plus i18n copy updates and new tests.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/cli/internal/serve/mask.go Adds masking for Cloudflare/EdgeOne tokens and applies it in maskConfig.
packages/cli/internal/serve/handlers_configure.go Preserves existing secrets on upsert when the payload contains the mask sentinel.
packages/cli/internal/serve/handlers_configure_test.go Adds regression tests for masked-secret preservation and deploy token masking.
apps/dashboard/src/pages/SectionDetail.tsx Renders masked secrets as empty inputs with an “unchanged” placeholder to avoid resubmitting "********".
apps/dashboard/src/locales/zh-CN.json Updates edit description and adds secret-unchanged placeholder string.
apps/dashboard/src/locales/en-US.json Updates edit description and adds secret-unchanged placeholder string.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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