feat: Add credential-level option to disable session recording and logging
还没有人认领这个 Issue。
- #11 来自 @snkrheadz —— 已关闭,未合并
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 72/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 冷清
- 技术栈
- typescript
- 领域
- backend
调研方向
从 credentials/BrowserbaseApi.credentials.ts 开始,找到根据 credential 和 Browser Options 值构建 Browserbase 会话设置的节点执行逻辑。添加两个默认值为 false 的可选 credential 字段,并验证启用其中任意一个都会强制关闭其对应的设置,同时在禁用时保持当前行为不变。
由索引模型根据 Issue 内容生成。
描述
Problem
When using the Browserbase node for back-office automation (e.g., expense processing, HR workflows, internal tools), browser sessions may display sensitive employee and business data. The current default behavior (recordSession: true, logSession: true) causes this data to be captured and stored on Browserbase servers for up to 30 days.
While individual workflow creators can toggle these options off in Browser Options, there is no way for an organization's n8n administrator to enforce this policy across all workflows using the same Browserbase credential.
Proposal
Add two optional boolean fields to BrowserbaseApi.credentials.ts that allow credential owners to force-disable session recording and logging for all workflows using that credential:
// credentials/BrowserbaseApi.credentials.ts
{
displayName: 'Disable Session Recording',
name: 'disableSessionRecording',
type: 'boolean',
default: false,
description: 'Force-disable session recording for all workflows using this credential. When enabled, the per-node "Record Session" option is ignored.',
},
{
displayName: 'Disable Session Logging',
name: 'disableSessionLogging',
type: 'boolean',
default: false,
description: 'Force-disable session logging for all workflows using this credential. When enabled, the per-node "Log Session" option is ignored.',
},
In the node execution logic:
const credentials = await this.getCredentials('browserbaseApi');
const browserSettings = {
recordSession: credentials.disableSessionRecording
? false
: (browserOptions.recordSession ?? true),
logSession: credentials.disableSessionLogging
? false
: (browserOptions.logSession ?? true),
// ...
};
Why credential-level?
- Admin control: In n8n, credentials are typically managed by admins/owners — regular workflow creators use shared credentials without editing them.
- Organization-wide enforcement: A single credential shared across multiple workflows applies the policy uniformly.
- No breaking changes: Defaults to
false, preserving existing behavior for all current users. - Works on n8n Cloud and self-hosted: No dependency on environment variables or instance-level settings.
Alternatives considered
| Approach | Pros | Cons |
|---|---|---|
Change defaults to false |
Simple | Users can re-enable; no enforcement |
| Environment variable | True admin control | Not available on n8n Cloud |
| Credential-level option | Admin control + Cloud compatible | Slightly unconventional use of credentials |
Context
We operate n8n Cloud for back-office automation (CS, Finance, HR departments) and encountered this issue when evaluating Browserbase for internal workflows. We're happy to submit a PR implementing this change if the approach is acceptable.
- 主要语言
- TypeScript
- 星标
- 5
- 派生
- 2
- 平均合并
- 2 天 19 小时
- 30 天内合并 PR
- 2
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
browserbase/n8n-node 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 35/100
browserbase/n8n-node#22 ·
查看 browserbase/n8n-node 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
xdjs/MusicNerdWeb#1532 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
sebastian-software/ardo#352 ·
维护者通常 1 天内回复
-
@react95/core good first issue
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 3 天内回复
-
@shikijs/stream: `ShikiStreamTokenizer.clone()` shares its `tokensStable` array with the original可能已有人在做 @xyrolle 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 6 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复