Skip to content
← Public packages

@kentcdodds/cloudflare-connect-personal-software-ecosystem

I Built Your Personal Software Ecosystem: Kent C. Dodds's Cloudflare Connect 2026 lightning talk deck (Reveal.js). How Kody gives every user one of everything on Cloudflare.

FollowForkOpen app

Files

12-secrets.html

20 lines · 912 B · HTML
<section id="secrets" data-slide="secrets" data-title="Agents only name the credential">
	<h2>Agents only name the credential</h2>
	<pre><code class="language-typescript">import { credential } from 'kody:runtime'

export default async function main() {
  const github = await credential('github')
  const response = await github.fetch(
    'https://api.github.com/user/repos?per_page=5',
  )
  return response.json()
}</code></pre>
	<aside class="notes">
		Solution: agents only name the credential. credential('github') hands the sandbox a
		client that holds an opaque handle, never the value. The credential decides where the
		value goes: its hosts, and its inject rule, Authorization Bearer by default. The
		gateway places it at the boundary, only over HTTPS, only on those hosts. There is no
		secret_get. This is stealable even if they never use Kody. Next: how the gateway
		works.
	</aside>
</section>