[WRONG BRANCH] fix(export): omit provider text with ${...} from Hermes/OpenClaw exports - #44
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
${...} from Hermes/OpenClaw exports${...} from Hermes/OpenClaw exports
⏳ DRAFT
What to do
Its title has been prefixed with |
|
✅ Deterministic PR hygiene checks passed. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughHermes and OpenClaw exports now exclude model selectors or display names containing ChangesConfiguration export safety
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Motivation
model.namespacedand display text directly into interpolation-capable client configs, which could allow a malicious provider to inject${ENV}sequences that expand to sensitive environment values.Description
containsEnvInterpolationto detect${...}sequences and prevent provider-controlled strings from being emitted verbatim into interpolation-capable outputs insrc/clients/config-export.ts.namespacedselector contains interpolation syntax, preserving other valid entries and header injection behavior viaproxyAdmissionHeaders.namecontains interpolation syntax, usingflatMapto skip offending rows while keeping context-window logic intact.tests/client-config-new-clients.test.tsthat injects malicious catalog rows (containing${SENSITIVE_ENV}) and asserts that Hermes and OpenClaw omit those entries from the generated configs.Testing
node_modules/@oven/bun-linux-x64-baseline/bin/bun test tests/client-config-new-clients.test.ts tests/client-config-export-new-clients.test.ts, and the modified tests passed (48 tests across the two files all passed).bun run typecheckandbun run privacy:scan, both of which completed successfully in this environment.bun test, which exercised many unrelated modules but hit existing timeouts in long-running combo/retained-root tests in this environment; those broader failures are unrelated to the export changes.Codex Task
Summary by CodeRabbit
Bug Fixes
Tests