GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(opencode): redact credentials in debug config by opencode-agent[bot] · Pull Request #50956 · anomalyco/opencode

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Sep 23, 2026 •
edited by rekram1-node
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Closes #50915

Always redact credential-named config values, all configured HTTP header values, and credential-bearing URLs in opencode debug config. Preserve unrelated settings and the live resolved config. Full *** masks avoid exposing fragments of short keys. There is no unmasking flag; this is not a general-purpose secret scanner for arbitrary user strings.

Tests: bun test test/cli/debug-config.test.ts --timeout 90000; bun typecheck (from packages/opencode).

Requested by: @rekram1-node (Aiden via Slack)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@rekram1-node
fix(opencode): redact credentials in debug config
e2315a8
@opencode-agent opencode-agent Bot assigned rekram1-node Sep 23, 2026
@github-actions github-actions Bot added the contributor label Sep 23, 2026
@rekram1-node
fix(opencode): always mask debug config credentials
8c61e7a
@rekram1-node
rekram1-node merged commit 82d4c89 into dev Sep 23, 2026
10 of 12 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@rekram1-node
rekram1-node deleted the debug-redaction-v1 branch September 23, 2026 22:35
@github-actions github-actions Bot mentioned this pull request Sep 23, 2026
📊 AI CLI 工具社区动态日报 2026-09-24 litang9/big_model_radar#443
Open
impharaon pushed a commit to impharaon/alpha-code that referenced this pull request Sep 24, 2026
jinjunnn jinjunnn @claude
fix(gate): alpha tip 是红的 —— 上游 sync 打红两道闸,每条 lane 的 push 都被拦 (#1450)
af5812a
`57646831b` 这次 sync 把两条上游改动带进 alpha,各打红一道本机闸门。今晚三条
独立 lane(`#1433` / `#1445` / `#1448`)各自撞上同一对红,全都 push 不出去 ——
这不是谁的改动坏了,是 base 本身红。

**一、`debug config` 现在给凭证打码**

上游 `82d4c8903 fix(opencode): redact credentials in debug config (anomalyco#50956)` 起,
`redactConfig()` 会把 `headers` 下的每个字符串值换成 `"***"`,且**没有开关**
(`packages/opencode/src/cli/cmd/debug/redact.ts`;同一 commit 顺带删掉了
`builder: (yargs) => yargs`)。

`mcp-server-derivation.test.ts` 的 ③ 那一格用 `debug config` 读回真引擎合并后的
配置,于是断言 `X-Token: "t"` 恒红。

**改成断言脱敏后的形状,而不是把这一格删掉或放宽**:

- 这一格真正要判的是「连接字段以真源为准」—— 靠的是 `url`(真源 `mcp.example.com`
  压过 XDG 的 `user-global.example`),而 `redactConfig` 只在 URL 带用户名/口令/
  敏感 query 时才动 url,这里逐字未脱敏,判据完好;
- 头部的**真实值**在 ① 那一格仍被逐字断言,那一格读的是我们自己的注入面、不经引擎。
  所以「值有没有原样传下去」并没有因为这次改动失去判官。

**二、`transform.test.ts` 的用例数被上游加了 24 条**

登记 561,实测 585。`git diff 5764683^1 5764683` 对该文件**纯增量**(零条
`test(` / `it(` 被删),与前两次同步的形态一致(368 → 411 → 561)。按脚本自己的
`--update` 写回,all-or-nothing,diff 恰好一行。

Co-authored-by: jinjunnn <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]>
rldona pushed a commit to plazoleta-dev/FlupCode that referenced this pull request Sep 24, 2026
@opencode-agent @rekram1-node
fix(opencode): redact credentials in debug config (anomalyco#50956)
0ec21b2
Co-authored-by: rekram1-node <[email protected]>
@pminevp pminevp mentioned this pull request Sep 27, 2026
Upstream sync: anomalyco/opencode dev into dev (2026-09-27) (conflicts) AxsionDev/Lunos#70
Merged
pminevp pushed a commit to AxsionDev/Lunos that referenced this pull request Sep 27, 2026
@pminev1 @claude
Merge Lunos dev into upstream-sync/2026-09-27 (XCOD-118 first sync)
5c5cb22
Brings Lunos up to date with anomalyco/opencode dev @ b471c2b (63 commits, 9 days).

Conflicts resolved:
- 29 package.json files: Lunos's version lines (1.18.40) and VS Code extension identity; upstream's
  dependency bumps (@ai-sdk/togetherai 2.0.68, gitlab-ai-provider 6.18.0, open 11.0.4) kept.
- debug/config.ts: upstream's credential redaction (anomalyco#50956) combined with Lunos's drain-safe
  output (XCOD-77) and --sources (XCOD-102).
- triage.yml, duplicate-issues.yml: stay deleted (XCOD-18).
- docs/ecosystem.mdx: upstream's (the Lunos docs build excludes this page, XCOD-124).
- bun.lock: regenerated; nix/hashes.json: Lunos's, recomputed by nix-hashes on dev.
- lunos.upstreamVersion 1.18.32, upstreamSync stamped (0 days behind at this commit).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@pminevp pminevp mentioned this pull request Sep 27, 2026
Upstream sync: anomalyco/opencode dev into scratch-conflict-test (2026-09-27) (conflicts) AxsionDev/Lunos#71
Closed
@github-actions github-actions Bot mentioned this pull request Sep 28, 2026
Informe upstream (semanal) jaminsmoke/Jarvis#52
Open
@alltomatos alltomatos mentioned this pull request Sep 28, 2026
chore(upstream): sincronizar correções do upstream (v1.18.33) — avaliação de impacto e critérios alltomatos/opencode#250
Closed
5 tasks
@ned9 ned9 mentioned this pull request Oct 6, 2026
api: /api/model, /api/config and /api/provider/{id} return resolved provider credentials #53465
Open
nkyang10 pushed a commit to nkyang10/opencode that referenced this pull request Oct 28, 2026
@opencode-agent @rekram1-node @nkyang10
fix(opencode): redact credentials in debug config (anomalyco#50956)
a4a150c
Co-authored-by: rekram1-node <[email protected]>
(cherry picked from commit 82d4c89)
@lihaokun lihaokun mentioned this pull request Nov 5, 2026
fix: 分批回移上游 V1/共享底层修复(错误分类、配置、MCP 与 ripgrep) lihaokun/opencode#108
Open
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@rekram1-node rekram1-node

Labels

contributor

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[FEATURE REQUEST]: Redact credential values in opencode debug config

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@rekram1-node
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.