Skip to content

feat: add credential-level option to disable session recording and logging#11

Open
snkrheadz wants to merge 1 commit intobrowserbase:mainfrom
snkrheadz:feat/credential-level-disable-recording-logging
Open

feat: add credential-level option to disable session recording and logging#11
snkrheadz wants to merge 1 commit intobrowserbase:mainfrom
snkrheadz:feat/credential-level-disable-recording-logging

Conversation

@snkrheadz
Copy link
Copy Markdown

Summary

  • Add disableSessionRecording and disableSessionLogging boolean fields to BrowserbaseApi credentials
  • When enabled, the per-node "Record Session" / "Log Session" options are overridden and always set to false
  • Defaults to false — no breaking changes for existing users

Motivation

Resolves #10

Organizations running back-office automation (expense processing, HR workflows, internal tools) need a way for admins to enforce that session recording and logging are disabled across all workflows. Credential-level control is ideal because:

  • Credentials are managed by admins/owners, not individual workflow creators
  • A single shared credential applies the policy uniformly across all workflows
  • Works on both n8n Cloud and self-hosted instances

Changes

File Change
credentials/BrowserbaseApi.credentials.ts Added 2 boolean fields (disableSessionRecording, disableSessionLogging)
nodes/Browserbase/Browserbase.node.ts Check credential values before applying per-node browser options

Test plan

  • Build passes (npm run build)
  • Lint passes (npm run lint)
  • Verified in local n8n (Docker) — new fields appear in credential UI
  • With both toggles OFF: recording/logging behaves as before (per-node control)
  • With toggles ON: recording/logging forced off regardless of per-node settings

…gging

Add two boolean fields to BrowserbaseApi credentials that allow
credential owners to force-disable session recording and logging
for all workflows using that credential.

When enabled, the per-node Browser Options toggles are overridden
and recording/logging is always off. Defaults to false, preserving
existing behavior.

Closes browserbase#10
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.

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

1 participant