asw/archive/examples-legacy/vault/redacted.html
exe.dev user e47a9f4401 asw-v01: archive deferred content (packs, site, lab, legacy examples)
- 2.1: packs/ -> archive/packs/
- 2.2: site/ -> archive/site/
- 2.3: src/lab/ -> archive/lab/
- 2.4: examples/ -> archive/examples-legacy/ (SSI-based)
2026-06-07 10:39:21 +02:00

53 lines
2.5 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<!--#include virtual="/_include/head.html" -->
<title>Redacted — ASW Examples</title>
<meta name="description" content="data-redacted — privacy-aware
content masking with reveal-on-hover">
</head>
<body>
<!--#include virtual="/_include/nav.html" -->
<main>
<header>
<h1>Redacted</h1>
<p data-text="lead">data-redacted — privacy-aware content masking
with reveal-on-hover</p>
</header>
<p><code>data-redacted</code> masks sensitive content visually while
keeping it in the DOM. Three variants: block (default), inline, and
label.</p>
<h2 id="block-redaction">Block redaction</h2>
<p>Full paragraphs or sections masked. Useful for credentials, keys,
private notes.</p>
<div data-redacted>
This is a secret API key: sk-ant-api03-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
It should not be visible in a screenshot or casual glance.
</div>
<h2 id="inline-redaction">Inline redaction</h2>
<p>Mask a word or phrase within running text.</p>
<p>The agent authenticated using token <span data-redacted="inline">ghp_abc123secrettoken</span> to push the commit.</p>
<p>Ludo's email is <span data-redacted="inline">ludo@trentuna.com</span> — hover to reveal.</p>
<h2 id="label-variant">Label variant</h2>
<p>Replace content with a descriptive label. The label stays visible;
content is hidden until hover.</p>
<p>Password: <span data-redacted="label" data-label="credentials">hunter2</span></p>
<p>Private key: <span data-redacted="label" data-label="SSH key">-----BEGIN OPENSSH PRIVATE KEY-----</span></p>
<h2 id="agent-usage">Agent usage</h2>
<p>An agent writing a session report can redact secrets inline without a
post-processing step:</p>
<div class="sourceCode" id="cb1"><pre
class="sourceCode html"><code class="sourceCode html"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="dt">&lt;</span><span class="kw">p</span><span class="dt">&gt;</span>Authenticated as <span class="dt">&lt;</span><span class="kw">span</span> <span class="er">data-redacted</span><span class="ot">=</span><span class="st">&quot;inline&quot;</span><span class="dt">&gt;</span>vigilio-token-abc<span class="dt">&lt;/</span><span class="kw">span</span><span class="dt">&gt;</span>.<span class="dt">&lt;/</span><span class="kw">p</span><span class="dt">&gt;</span></span></code></pre></div>
<p>No classes. No JavaScript. The CSS handles it.</p>
</main>
<!--#include virtual="/_include/footer.html" -->
</body>
</html>