{"slug": "secure-all-your-internal-vibe-coded-applications-in-one-click", "title": "Secure all your internal vibe-coded applications — in one click", "summary": "Cloudflare launched new tools enabling developers to apply Cloudflare Access directly to Workers or account-wide, ensuring internal applications are private by default. The feature attaches authentication policies to the Worker itself, covering all associated domains and preview URLs, and allows account-level defaults so every Worker is protected without individual developer setup. Cloudflare also open-sourced an example internal static site platform where every deployment is private by default.", "body_md": "# Secure all your internal vibe-coded applications — in one click\n\nAI has enabled employees across every team to build applications faster than ever before.\n\nBut that speed is also what's keeping every CISO up at night: any employee can build an application, deploy it to the public Internet, and accidentally expose internal work or company data.\n\nToday, we're launching new tools to make it easy to keep your applications hosted on Workers private. You can now apply Cloudflare Access directly to a Worker or to every Worker in your account, so that your applications are behind your company login by default, without relying on each developer to set that up themselves.\n\nYou can now:\n\n**Set a policy at the account level** to ensure that alland production deployments are behind your company login by default.__preview__**Set a policy on a single application** to ensure authentication is enforced on every domain associated with it, no matter how it's deployed.**See exactly who visits your application.** Get every authenticated user’s email, name, and groups directly in your code — no JWT (JSON Web Token) validation required.**Deploy an internal platform where every deployment is private by default.** We've open-sourced an: an internal static site platform where every Worker deployed is private.__example__\n\n## Access on Workers: how it works\n\nWhen you enable Access on a Worker, Cloudflare enforces authentication before any request reaches your application code. It doesn't matter how the request gets to your Worker, whether it's through a custom domain, a route, a workers.dev subdomain, or a preview URL. If Access is on, the user has to authenticate first.\n\nPreviously, you had to configure this at the hostname level, which meant setting up Access policies on each domain your Worker was reachable on. If you wanted to add a new custom domain to your Worker, you needed to update the Access policy first or that hostname would be reachable without authentication.\n\nNow the policy is attached to the Worker itself, so any domain or URL associated with that Worker is automatically protected. You can choose what to protect: just preview URLs, or all hostnames.\n\nIf you set it to previews only, every preview URL created for that application, whether it's a [workers.dev](http://workers.dev) preview URL or a custom domain you use for previews, will require authentication whenever you deploy a new version. If you set it to all hostnames, every domain associated with that Worker is protected — custom domains, routes, [workers.dev](http://workers.dev) subdomains, and preview URLs.\n\nAccess gives you control over how users authenticate. You can connect your existing identity provider, so employees sign in with the credentials they already use, or restrict access to specific email addresses, email domains, or groups. For agents, you can grant access through service tokens.\n\nRead more in the [ Cloudflare Access for Workers documentation](http://developers.cloudflare.com/workers/configuration/cloudflare-access/) here.\n\n## Keep every Worker in your account private by default\n\nIf you have developers across your organization deploying Workers, you don't want to rely on each one to remember to enable Access. You want the default to be private.\n\nYou can set an Access policy once at the account level, and every Worker in your account, current and future, is private from the moment it's created.\n\nYou choose what the policy covers: only preview URL traffic, all production traffic, or both. Preview-only is useful if your production Workers are intentionally public, but you never want an in-progress deployment exposed.\n\nNeed a Worker to be public? Bypass the account-wide policy on that one Worker.\n\n### Protect a specific Worker\n\nIf you don't need an account-wide default and just want to lock down one specific Worker, you can apply Access to that Worker directly.\n\nThe new Access tab in the Worker view shows exactly which policies apply to that application. If you have multiple, the most specific one takes priority: hostname policies first, then Worker policies, then account policies.\n\n## See who is accessing your application\n\nWhen Access is protecting your Worker, you can get information about who is making each request — their email, name, and groups — so you can personalize what they see, enforce permissions, or log activity per user.\n\nThis works through your[ Worker's context object (ctx)](https://developers.cloudflare.com/workers/runtime-apis/context/). Every request to your Worker carries a ctx with metadata about that request. When Access is enabled, we attach the authenticated user's identity to it as ctx.access. From there, call\n\n`ctx.access.getIdentity()`\n\nto get back the user's email, name, and [.](https://developers.cloudflare.com/cloudflare-one/access-controls/applications/http-apps/authorization-cookie/application-token/)\n\n__more__Before, this meant validating a JWT yourself — parsing the token, verifying the signature, and extracting the claims. Now, when Access is enabled on your Worker, every authenticated request includes ctx.access.\n\nHere's all you need to get the user's identity:\n\n```\nexport default {\n  async fetch(request, env, ctx) {\n    if (!ctx.access) {\n      return new Response(\"Access required\", { status: 403 });\n    }\n\n    const identity = await ctx.access.getIdentity();\n    const email = identity?.email ?? \"unknown\";\n\n    return new Response(`Hello, ${email}`);\n  }\n};\n```\n\n## Test locally before you deploy\n\nWe showed how you can use `ctx.access.getIdentity()`\n\nto give your Worker information about who is making a request — their email, name, and groups.\n\nYou can use this when developing locally with wrangler dev. Add an access block to your `wrangler.jsonc`\n\nto simulate an authenticated user:\n\n```\n{\n  \"access\": {\n    \"dev\": {\n      \"aud\": \"my-app\",\n      \"identity\": { \"email\": \"admin@company.com\" }\n    }\n  }\n}\n```\n\nYour Worker picks it up through `ctx.access.getIdentity()`\n\n— returning an identity object shaped like what you'd get in production. Swap the email in your config to test as a different user.\n\nThis means you can verify that the right content shows up for the right user without having to deploy and sign in through Access every time you make a change.\n\n## Deploy an internal platform where every application is private by default\n\nIf you manage an internal platform where employees can prototype and deploy applications, you need every application to be private without configuring access controls on each one.\n\n[ Workers for Platforms](https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/) lets you deploy Workers at scale. Every Worker lives inside a namespace, and all traffic to that namespace goes through a single entry point: the dispatch Worker.\n\nSet an Access policy on your dispatch Worker, and every Worker deployed through it is private by default.\n\nWe also have an [ open-source example](https://github.com/cloudflare/templates/tree/main/internal-sites-template) where you can deploy your own internal drag-and-drop deployment platform — configure access on the dispatcher worker once and every site deployed through it is private by default.\n\nClick the button below to deploy it yourself!\n\nFor the full architecture, see our __Workers for Platforms reference architecture.__\n\n## Built on solid foundations\n\nThis feature was made possible by FL2, the new [ Rust-based modular proxy](https://blog.cloudflare.com/20-percent-internet-upgrade/) that powers Cloudflare's edge. Access is the front gate to your applications, and as such, it traditionally ran before all Workers logic in the request pipeline. But in order for Access applications to target individual Workers themselves instead of their hostnames, Access needs to know which Worker a given request is destined to reach. Therefore, we needed to split Workers\n\n*routing*from Workers\n\n*execution*, and move the routing logic, so it could run before Access.\n\nIn our old FL1 system based on NGINX and modules written in Lua, this change would have been complex and risky. Interactions between products can be subtle, and moving logic to an earlier phase of the request pipeline can be unsafe if it depends on shared state that is modified by another product.\n\nFL2 made it easy. Its strict module system separates logic into well-defined, consistently ordered phases that statically declare their inputs and outputs. We were able to lean on the compiler to surface any broken interactions between phases, and gradually roll out this refactor with confidence.\n\n## Try it today\n\nThis is now available to everyone. Try it out in the [ dashboard](https://dash.cloudflare.com/account/workers-and-pages) or read the\n\n[to get started.](http://developers.cloudflare.com/workers/configuration/cloudflare-access/)\n\n__Cloudflare Access for Workers documentation__## Acknowledgments\n\nThank you to Jesse Li, Brandon Strittmatter, Kyle Hiller, Kenny Johnson, Matt \"TK\" Taylor, Brendan Irvine-Broque, Yomna Shousha, and Mike Aizatsky for the engineering and design work that made this possible!", "url": "https://wpnews.pro/news/secure-all-your-internal-vibe-coded-applications-in-one-click", "canonical_source": "https://blog.cloudflare.com/workers-protected-by-access/", "published_at": "2026-08-14 13:00:00+00:00", "updated_at": "2026-08-14 13:16:08.465448+00:00", "lang": "en", "topics": ["ai-policy", "developer-tools"], "entities": ["Cloudflare", "Cloudflare Access", "Workers"], "alternates": {"html": "https://wpnews.pro/news/secure-all-your-internal-vibe-coded-applications-in-one-click", "markdown": "https://wpnews.pro/news/secure-all-your-internal-vibe-coded-applications-in-one-click.md", "text": "https://wpnews.pro/news/secure-all-your-internal-vibe-coded-applications-in-one-click.txt", "jsonld": "https://wpnews.pro/news/secure-all-your-internal-vibe-coded-applications-in-one-click.jsonld"}}