Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

feat: Add credential-level option to disable session recording and logging

未关闭
#10 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

browserbase/n8n-node 的其他 Issue

查看 browserbase/n8n-node 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。