跳转至

Redact mode(脱敏模式(Redact mode))

Redact mode visually obfuscates the visible content of a Workshop application so you can share the layout and structure of a module without exposing the underlying data. Use redact mode when you take screenshots or share your screen and want to hide the underlying data. Redact mode differs from kiosk mode, which restricts permissions; redact mode does not.

:::callout{theme="warning"} Redact mode is a visual aid only and is not a security feature. Workshop still loads and processes the underlying data; redact mode only changes how the page renders. Do not rely on redact mode to protect sensitive information from a determined viewer with access to your browser session. :::

A Workshop module with redact mode enabled, showing text replaced with obfuscated glyphs and images replaced with diagonal striped backgrounds.

Enable redact mode

Append the query parameter ?workshop_enableRedactMode=true to the URL of any Workshop module to enable redact mode. The parameter persists in the URL across in-application navigation, so reloading the page or copying the URL preserves the redacted state.

What redact mode changes

When redact mode is on, Workshop changes how the page renders in the following ways:

  • Workshop renders all text in a custom font that replaces each character with an obfuscated glyph, preserving the approximate length and shape of words.
  • Workshop replaces icons and chart plot areas with a diagonal striped background.
  • Workshop hides images, SVGs, canvases, videos, audio elements, and embedded iframes.

Module behavior does not change otherwise. Variables, events, actions, and data fetches run normally, and you can navigate, filter, and interact with the module as you would in any other session — only the page rendering changes.


中文翻译

脱敏模式(Redact mode)

脱敏模式(Redact mode)可在视觉上模糊处理Workshop应用的可见内容,使您能够分享模块的布局和结构,而不会暴露底层数据。当您需要截取屏幕截图或共享屏幕并希望隐藏底层数据时,可使用脱敏模式。脱敏模式与信息亭模式(kiosk mode)不同,后者用于限制权限;脱敏模式则不会。

:::callout{theme="warning"} 脱敏模式仅为视觉辅助工具,并非安全功能。Workshop仍会加载和处理底层数据;脱敏模式仅改变页面的渲染方式。请勿依赖脱敏模式来保护敏感信息,以防有权限访问您浏览器会话的恶意查看者。 :::

启用了脱敏模式的Workshop模块,显示文本已被替换为模糊字形,图像已被替换为斜条纹背景。

启用脱敏模式

在任意Workshop模块的URL后附加查询参数?workshop_enableRedactMode=true即可启用脱敏模式。该参数会在应用内导航时持续保留在URL中,因此刷新页面或复制URL均可保持脱敏状态。

脱敏模式的变更内容

启用脱敏模式后,Workshop会按以下方式改变页面渲染:

  • Workshop使用自定义字体渲染所有文本,将每个字符替换为模糊字形,同时保留单词的大致长度和形状。
  • Workshop将图标和图表绘图区域替换为斜条纹背景。
  • Workshop隐藏图像、SVG、画布(canvas)、视频、音频元素以及嵌入的iframe(iframe)。

模块的其他行为不会改变。变量、事件、操作和数据获取均正常运行,您可以像在其他会话中一样进行导航、筛选和与模块交互——仅页面渲染方式发生变化。