Skip to content

Commit 7698a99

Browse files
1 parent eb14784 commit 7698a99

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

guides/bundles/index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,18 @@ <h3 id="sandboxing">Sandboxing</h3>
990990
- Review metadata before loading
991991
- Use <code>--clear</code> cautiously (it deletes existing data)
992992
- Keep backups of your graph database</p>
993+
<h3 id="secrets-in-bundles">Secrets in Bundles</h3>
994+
<p>Bundles include node properties from the indexed source code, which may contain <strong>string literals and variable values</strong> such as API keys, tokens, passwords, and database connection strings that were hardcoded in the source.</p>
995+
<p><strong>Before sharing a bundle:</strong></p>
996+
<ol>
997+
<li>Enable <code>REDACT_SECRETS=true</code> in your CGC config before indexing to automatically redact likely secrets:
998+
<div class="highlight"><pre><span></span><code>cgc<span class="w"> </span>config<span class="w"> </span><span class="nb">set</span><span class="w"> </span>REDACT_SECRETS<span class="w"> </span><span class="nb">true</span>
999+
cgc<span class="w"> </span>index<span class="w"> </span>/path/to/repo
1000+
cgc<span class="w"> </span>bundle<span class="w"> </span><span class="nb">export</span><span class="w"> </span>my-project.cgc
1001+
</code></pre></div></li>
1002+
<li>Inspect the bundle contents (<code>unzip -p bundle.cgc nodes.jsonl</code>) for any remaining sensitive values.</li>
1003+
<li>CGC logs a warning at index time when potential secrets are detected, listing the affected nodes and properties.</li>
1004+
</ol>
9931005
<hr />
9941006
<h2 id="troubleshooting">🛠️ Troubleshooting</h2>
9951007
<h3 id="bundle-import-fails">Bundle Import Fails</h3>

search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)