<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: nwon19</title>
    <description>The latest articles on DEV Community by nwon19 (@nwon19).</description>
    <link>https://dev.to/nwon19</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4262174%2Fae92c74e-2294-41c3-95f3-ac28c8d32f24.jpg</url>
      <title>DEV Community: nwon19</title>
      <link>https://dev.to/nwon19</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nwon19"/>
    <language>en</language>
    <item>
      <title>When an app outgrows your AI tool</title>
      <dc:creator>nwon19</dc:creator>
      <pubDate>Tue, 24 Nov 2026 08:58:48 +0000</pubDate>
      <link>https://dev.to/nwon19/when-an-app-outgrows-your-ai-tool-11k5</link>
      <guid>https://dev.to/nwon19/when-an-app-outgrows-your-ai-tool-11k5</guid>
      <description>&lt;p&gt;Claude, Claude Code, Codex and Cursor can each share what you build, inside their own environment, usually as a page. For many small tools that is the right home. This is a way to tell when an app needs to become a real application that the whole organization can open, on data that stays current.&lt;/p&gt;

&lt;h2&gt;
  
  
  What each tool gives you
&lt;/h2&gt;

&lt;p&gt;Everything in this section comes from each vendor's own documentation, read between 16 and 24 Nov 2026.&lt;/p&gt;

&lt;h3&gt;
  
  
  Claude: Artifacts
&lt;/h3&gt;

&lt;p&gt;On Team and Enterprise plans, a person can publish what they built in Claude to a page and share it inside the company. Anthropic's &lt;a href="https://support.claude.com/en/articles/16994751-artifacts-admin-guide-for-team-and-enterprise-plans" rel="noopener noreferrer"&gt;admin guide&lt;/a&gt; describes it as "a shareable Anthropic-hosted page".&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Sharing stays inside the organization&lt;/strong&gt; unless an admin allows external links, and access follows the organization's membership.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Admins have one switch&lt;/strong&gt; to turn Artifacts off for everyone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pages can read connected apps,&lt;/strong&gt; with each viewer's own connection. A live-shared dashboard "shows results from its owner's connection."&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;There is nothing to deploy.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; a self-contained page, calculator or chart, built in a conversation, for colleagues who use Claude.&lt;/p&gt;

&lt;h3&gt;
  
  
  Claude Code: Artifacts
&lt;/h3&gt;

&lt;p&gt;Claude Code can publish what a session produces as a page on claude.ai (&lt;a href="https://code.claude.com/docs/en/artifacts" rel="noopener noreferrer"&gt;Claude Code docs&lt;/a&gt;).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Private until shared.&lt;/strong&gt; On Team and Enterprise plans, the author shares it with named people or the whole organization, and viewers sign in to claude.ai. Public links stay off until an Owner enables them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One page, no backend.&lt;/strong&gt; It cannot serve several routes or sign viewers in itself. For a tool with a backend, the docs say to "deploy it on your own infrastructure instead."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Live data comes through each viewer's connectors,&lt;/strong&gt; so two people can see different numbers. With live sharing, the calls run through the publisher's account.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; a dashboard, review or status page from a coding session, for colleagues in the same Claude organization.&lt;/p&gt;

&lt;h3&gt;
  
  
  Codex: Sites
&lt;/h3&gt;

&lt;p&gt;ChatGPT workspaces can publish what Codex builds as a hosted site (&lt;a href="https://learn.chatgpt.com/docs/sites" rel="noopener noreferrer"&gt;OpenAI's Sites docs&lt;/a&gt;).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Visitors sign in with ChatGPT.&lt;/strong&gt; A site can be shared with selected users or groups, the whole workspace, invited external visitors, or the public where an admin allows it (&lt;a href="https://learn.chatgpt.com/codex/sites/publishing-and-sharing" rel="noopener noreferrer"&gt;publishing and sharing&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Storage is built in:&lt;/strong&gt; a relational database and file storage for each site.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data access belongs to each visitor.&lt;/strong&gt; Connected apps are granted by each person who opens the site, and "sharing the site doesn't grant access to your connected accounts" (&lt;a href="https://learn.chatgpt.com/codex/sites/data-and-connections" rel="noopener noreferrer"&gt;data and connections&lt;/a&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; a small web app with its own data, shared with colleagues who all use ChatGPT.&lt;/p&gt;

&lt;h3&gt;
  
  
  Cursor: live apps
&lt;/h3&gt;

&lt;p&gt;Since November 2026, Cursor's cloud agent can build a web app, provision a Postgres database and publish it at a live link (&lt;a href="https://cursor.com/changelog/build-live-apps" rel="noopener noreferrer"&gt;Cursor changelog&lt;/a&gt;, &lt;a href="https://cursor.com/docs/cloud-agent/apps" rel="noopener noreferrer"&gt;docs&lt;/a&gt;).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Visitors sign in with Cursor.&lt;/strong&gt; Apps can be shared with invited people and groups or the whole Cursor team. Public links are off by default on Teams and Enterprise.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Team admins have controls:&lt;/strong&gt; turn apps on or off, review and approve publishes, manage shared secrets, and unpublish any app. Enterprise can unpublish apps left idle for 60 to 365 days.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Secrets are shared by the team.&lt;/strong&gt; A team admin creates a secret, such as a warehouse credential, and gives it to apps. Editors of an app can change its code, including the code that uses those secrets.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; a web app built by someone who already works in Cursor, shared with a team that also has Cursor accounts.&lt;/p&gt;

&lt;h3&gt;
  
  
  Apps with a server, built locally
&lt;/h3&gt;

&lt;p&gt;When Claude Code, Codex in the terminal or Cursor builds an app with its own server, it runs on the builder's machine. It is gone when the laptop closes, and getting it onto an internal address behind the company's sign-in is usually a ticket to whoever runs infrastructure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Best for:&lt;/strong&gt; building and trying an app. Not for anything other people rely on.&lt;/p&gt;

&lt;h2&gt;
  
  
  Five signs an app has outgrown the tool
&lt;/h2&gt;

&lt;p&gt;Each tool's sharing lives inside that tool's environment. That is a strength for small things and a limit for the rest.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. It needs to be an application, not a page
&lt;/h3&gt;

&lt;p&gt;A page shows what was true when it was made. An application has its own server and its own database: screens that call a service, a dashboard people filter and drill into, a form that saves what people enter, a job that runs every morning. AI tools mostly produce pages because that is what their sharing can hold. When the thing your team needs is an application, it needs a platform that runs one.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. It needs live company data
&lt;/h3&gt;

&lt;p&gt;An app is only as useful as its numbers. Inside an AI tool, data either comes from whoever made the page, frozen at that moment, or through each viewer's own connection, so two people can see different numbers. An internal app usually needs one read-only connection to the company's database that stays current, registered by whoever owns that data, or a spreadsheet the owner refreshes each week, so everyone sees the same figures and nobody holds a password.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. The whole organization needs to open it
&lt;/h3&gt;

&lt;p&gt;Each tool signs visitors in with its own accounts: Claude, ChatGPT or Cursor. That works when everyone who opens the app uses that tool. Apps for finance, the sales floor or the whole company need the sign-in people already use for everything else, such as Okta, Google or Entra ID, with access by group.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Apps come from more than one tool
&lt;/h3&gt;

&lt;p&gt;When some people build in Claude, some in Codex and some in Cursor, each tool keeps its own list of apps, its own sharing rules and its own logs. Your security team ends up with partial views and no single answer to "what apps do we run, who owns them, and what data do they touch".&lt;/p&gt;

&lt;h3&gt;
  
  
  5. It has to run in your cloud
&lt;/h3&gt;

&lt;p&gt;Built-in sharing runs in the vendor's cloud. If policy says an app that reads production data must run in an account you control, built-in sharing cannot meet it, however well it is governed.&lt;/p&gt;

&lt;h2&gt;
  
  
  A short test
&lt;/h2&gt;

&lt;p&gt;Ask these about the app. One "yes" is enough.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Does it need its own server or database, rather than being a page?&lt;/li&gt;
&lt;li&gt;Should it show live company data that everyone sees the same way?&lt;/li&gt;
&lt;li&gt;Will people without an account on the builder's tool need to open it?&lt;/li&gt;
&lt;li&gt;Does your security team need it in the same list as apps built in other tools?&lt;/li&gt;
&lt;li&gt;Does policy require it to run in your own cloud account?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Five "no" answers mean the tool's own sharing is the right home.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where an app that has outgrown it can go
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Option&lt;/th&gt;
&lt;th&gt;Good fit when&lt;/th&gt;
&lt;th&gt;What you take on&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Your own pipeline&lt;/td&gt;
&lt;td&gt;You have a platform team with time&lt;/td&gt;
&lt;td&gt;DNS, certificates, single sign-on and secrets for every app&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A general web host such as Vercel&lt;/td&gt;
&lt;td&gt;The builders are engineers and the apps are web front ends&lt;/td&gt;
&lt;td&gt;Sign-in through your identity provider is on Vercel's Enterprise plan. See &lt;a href="https://intrium.dev/compare/vercel-for-internal-apps/" rel="noopener noreferrer"&gt;Vercel for internal apps&lt;/a&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Your data platform's app hosting&lt;/td&gt;
&lt;td&gt;All the data is on that one platform&lt;/td&gt;
&lt;td&gt;Apps are tied to the platform. See &lt;a href="https://intrium.dev/compare/databricks-apps/" rel="noopener noreferrer"&gt;Databricks Apps&lt;/a&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A governed app platform&lt;/td&gt;
&lt;td&gt;You want to bring apps into a vendor's builder&lt;/td&gt;
&lt;td&gt;The app lives in that platform. See &lt;a href="https://intrium.dev/compare/superblocks/" rel="noopener noreferrer"&gt;Superblocks&lt;/a&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What to do before choosing
&lt;/h2&gt;

&lt;p&gt;Count first. Ask the people who own your rollouts of Claude, ChatGPT or Cursor how many apps staff have built, and put each one through the test above. If nearly all of them pass, the tools' own sharing may be all you need. If a handful do not, those are the ones that end up on a personal account or a public link unless there is an approved place for them. A written rule helps here, and there is &lt;a href="https://intrium.dev/guides/policy-template-for-ai-built-apps/" rel="noopener noreferrer"&gt;a policy template&lt;/a&gt; you can adapt.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;First published on &lt;a href="https://intrium.dev/guides/when-an-app-outgrows-your-ai-tool/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=outgrows" rel="noopener noreferrer"&gt;intrium.dev&lt;/a&gt;. intrium is governed hosting for the apps your team builds themselves. The test above works with or without it.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>claude</category>
      <category>cursor</category>
    </item>
    <item>
      <title>Put a Dash app behind Google sign-in</title>
      <dc:creator>nwon19</dc:creator>
      <pubDate>Tue, 24 Nov 2026 08:58:39 +0000</pubDate>
      <link>https://dev.to/nwon19/put-a-dash-app-behind-google-sign-in-5bmh</link>
      <guid>https://dev.to/nwon19/put-a-dash-app-behind-google-sign-in-5bmh</guid>
      <description>&lt;p&gt;Dash is Plotly's Python framework for interactive data dashboards, and AI coding tools write it well. This is how to make sure only people in your company can open what they write.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the app comes from
&lt;/h2&gt;

&lt;p&gt;The steps are the same whichever tool wrote the app.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Where the app is&lt;/th&gt;
&lt;th&gt;Before you start&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Claude on the web or desktop&lt;/td&gt;
&lt;td&gt;In the conversation&lt;/td&gt;
&lt;td&gt;Ask Claude for the full project as files, including &lt;code&gt;requirements.txt&lt;/code&gt;. A Dash app needs a Python server, so it cannot run as an Artifact.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Code&lt;/td&gt;
&lt;td&gt;In a folder on your machine&lt;/td&gt;
&lt;td&gt;Ask it to add the sign-in below and to read secrets from environment variables, never from the code.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Codex or Cursor&lt;/td&gt;
&lt;td&gt;In your repository or a cloud task&lt;/td&gt;
&lt;td&gt;The same. Their own app sharing signs visitors in with their own accounts, so this guide applies when viewers should use your Google sign-in.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The rule that matters
&lt;/h2&gt;

&lt;p&gt;Signing someone in with Google proves they have a Google account. It does not prove they work for you. Every option below needs a second check that limits sign-in to your organization, and that check is where most mistakes happen.&lt;/p&gt;

&lt;p&gt;Google's &lt;a href="https://developers.google.com/identity/openid-connect/openid-connect" rel="noopener noreferrer"&gt;OpenID Connect documentation&lt;/a&gt; is direct about two traps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;hd&lt;/code&gt; request parameter only shortcuts the sign-in screen for one domain. Google says not to rely on it to control access, "as client-side requests can be modified".&lt;/li&gt;
&lt;li&gt;The domain of the &lt;code&gt;email&lt;/code&gt; claim does not identify members of a Google Workspace organization. Check the &lt;code&gt;hd&lt;/code&gt; claim inside the ID token instead. Google says that claim "can be trusted", because it is part of a token Google signed.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Option 1: sign-in inside the app, with dash-auth
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/plotly/dash-auth" rel="noopener noreferrer"&gt;dash-auth&lt;/a&gt; is Plotly's authentication package for Dash. Version 2.3.0 (March 2024, per &lt;a href="https://pypi.org/project/dash-auth/" rel="noopener noreferrer"&gt;PyPI&lt;/a&gt;) includes &lt;code&gt;OIDCAuth&lt;/code&gt;, which works with any OpenID Connect provider, Google included. Plotly describes the package as feature-complete: it takes bug fixes but no new features.&lt;/p&gt;

&lt;h3&gt;
  
  
  In Google Cloud
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;In a Google Cloud project that belongs to your organization, set the app's audience to &lt;strong&gt;Internal&lt;/strong&gt;. Google's &lt;a href="https://support.google.com/cloud/answer/15549945" rel="noopener noreferrer"&gt;audience page&lt;/a&gt; says this limits sign-in "to members of the organization". People outside it get an &lt;code&gt;org_internal&lt;/code&gt; error.&lt;/li&gt;
&lt;li&gt;Create an OAuth client of type Web application.&lt;/li&gt;
&lt;li&gt;Add the redirect URI: your app's address followed by &lt;code&gt;/oidc/callback&lt;/code&gt; (for local testing, &lt;code&gt;http://localhost:8050/oidc/callback&lt;/code&gt;). Google requires an exact match.&lt;/li&gt;
&lt;li&gt;Keep the client ID and secret out of the code. Put them in environment variables.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Step 1 is the access rule, and it is the simplest one to get right. If the project cannot be Internal, the app has to check the &lt;code&gt;hd&lt;/code&gt; claim of every ID token itself. dash-auth's README does not show how to read claims, so confirm how your version exposes them before you rely on that check.&lt;/p&gt;

&lt;h3&gt;
  
  
  In the app
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install dash-auth
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;dash&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Dash&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;html&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;dash_auth&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;OIDCAuth&lt;/span&gt;

&lt;span class="n"&gt;app&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Dash&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;__name__&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;layout&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;html&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Div&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Revenue by region"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;auth&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;OIDCAuth&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;secret_key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"SESSION_SECRET"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;register_provider&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"google"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;token_endpoint_auth_method&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"client_secret_post"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;client_id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"GOOGLE_CLIENT_ID"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;client_secret&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"GOOGLE_CLIENT_SECRET"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;server_metadata_url&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"https://accounts.google.com/.well-known/openid-configuration"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;__name__&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"__main__"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;debug&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;False&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Anyone who opens the app is sent to Google first. &lt;code&gt;SESSION_SECRET&lt;/code&gt; signs the session cookie: a long random string, the same on every server, kept out of the repository.&lt;/p&gt;

&lt;h3&gt;
  
  
  Things to know
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Public pages are opt-in.&lt;/strong&gt; dash-auth has &lt;code&gt;public_routes&lt;/code&gt; and &lt;code&gt;add_public_routes&lt;/code&gt; for pages anyone may see. Leave them out unless you mean it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Groups need your own wiring.&lt;/strong&gt; dash-auth has group helpers (&lt;code&gt;check_groups&lt;/code&gt;, &lt;code&gt;protected_callback&lt;/code&gt;), but its README shows them only with fixed lists of users. Google's ID token claims list has no groups claim, so restricting to a Google group means calling Google's Admin SDK yourself.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Each app is its own client.&lt;/strong&gt; Ten apps means ten OAuth clients, ten secrets and ten redirect URIs to keep track of.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Option 2: sign-in in front of the app, with oauth2-proxy
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://oauth2-proxy.github.io/oauth2-proxy/configuration/overview" rel="noopener noreferrer"&gt;oauth2-proxy&lt;/a&gt; runs beside the app, sends people to Google, and passes only signed-in requests through. The app has no login code.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;--email-domain&lt;/code&gt; limits sign-in to addresses on your domain.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--google-group&lt;/code&gt; limits it to members of one or more Google groups. Per the &lt;a href="https://oauth2-proxy.github.io/oauth2-proxy/configuration/providers/google" rel="noopener noreferrer"&gt;Google provider page&lt;/a&gt;, this needs a service account with domain-wide delegation, the Admin SDK API turned on, and an admin account to impersonate. Membership is checked at sign-in and again each time the token refreshes, about once an hour.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The group check is worth the setup. It means removing someone from the group closes the app to them within the hour, without anyone editing the app.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 3: Identity-Aware Proxy, if the app runs on Google Cloud
&lt;/h2&gt;

&lt;p&gt;If the app runs on Cloud Run, App Engine or behind a Google Cloud load balancer, &lt;a href="https://cloud.google.com/iap/docs/concepts-overview" rel="noopener noreferrer"&gt;Identity-Aware Proxy&lt;/a&gt; can sit in front of it. Access is granted per person or group with the "IAP-secured Web App User" role. Google's own caveat: check that the app cannot also be reached directly, around the proxy.&lt;/p&gt;

&lt;h2&gt;
  
  
  What none of the options solves
&lt;/h2&gt;

&lt;p&gt;Sign-in answers who can open the app. A security team will ask more:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Where is the database password?&lt;/strong&gt; Usually in an environment variable the builder set, and knows. &lt;a href="https://intrium.dev/guides/database-credentials-out-of-ai-built-apps/" rel="noopener noreferrer"&gt;Keeping database credentials out of apps&lt;/a&gt; covers the alternatives.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Who owns this app,&lt;/strong&gt; and what happens to it when they leave?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What did it ship with?&lt;/strong&gt; Nobody scanned the code for leaked keys or vulnerable packages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;How many are there?&lt;/strong&gt; Each app is set up by hand, and nothing lists them.&lt;/li&gt;
&lt;/ol&gt;




&lt;p&gt;&lt;em&gt;First published on &lt;a href="https://intrium.dev/guides/dash-app-behind-google-sign-in/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=dash-google" rel="noopener noreferrer"&gt;intrium.dev&lt;/a&gt;. intrium is governed hosting for the apps your team builds themselves. The steps above work with or without it.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>security</category>
      <category>dash</category>
      <category>sso</category>
    </item>
    <item>
      <title>Put a Streamlit app behind Okta</title>
      <dc:creator>nwon19</dc:creator>
      <pubDate>Tue, 24 Nov 2026 08:58:24 +0000</pubDate>
      <link>https://dev.to/nwon19/put-a-streamlit-app-behind-okta-54n</link>
      <guid>https://dev.to/nwon19/put-a-streamlit-app-behind-okta-54n</guid>
      <description>&lt;p&gt;Claude, Claude Code, Codex and Cursor will each write a working Streamlit dashboard in an afternoon. This is how to make sure only the right people in your company can open it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the app comes from
&lt;/h2&gt;

&lt;p&gt;The steps below are the same whichever tool wrote the app. What differs is where the code is when you start.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Where the app is&lt;/th&gt;
&lt;th&gt;Before you start&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Claude on the web or desktop&lt;/td&gt;
&lt;td&gt;In the conversation&lt;/td&gt;
&lt;td&gt;Ask Claude for the full project as files, including &lt;code&gt;requirements.txt&lt;/code&gt;. An Artifact cannot run a Streamlit server, so the app needs a server of its own.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Code&lt;/td&gt;
&lt;td&gt;In a folder on your machine&lt;/td&gt;
&lt;td&gt;Ask it to add the sign-in check below and a &lt;code&gt;requirements.txt&lt;/code&gt;, and to keep secrets out of the folder it commits.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Codex&lt;/td&gt;
&lt;td&gt;In your repository or a Codex cloud task&lt;/td&gt;
&lt;td&gt;The same. Codex Sites signs visitors in with ChatGPT accounts, not Okta, so this guide applies when viewers should use your company sign-in.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cursor&lt;/td&gt;
&lt;td&gt;In your editor, or a Cursor cloud agent&lt;/td&gt;
&lt;td&gt;The same. Cursor's live apps sign visitors in with Cursor accounts, not Okta, so this guide applies when viewers should use your company sign-in.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The two ways to do it
&lt;/h2&gt;

&lt;p&gt;There are two places the sign-in can live.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Inside the app.&lt;/strong&gt; Streamlit has built-in OpenID Connect login. The app itself sends people to Okta.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;In front of the app.&lt;/strong&gt; A proxy or load balancer handles sign-in, and the app only ever sees requests from people who passed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The first is quicker for one app. The second is what most security and platform teams prefer once there are several.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 1: Streamlit's built-in login
&lt;/h2&gt;

&lt;p&gt;Streamlit documents this in its &lt;a href="https://docs.streamlit.io/develop/concepts/connections/authentication" rel="noopener noreferrer"&gt;authentication guide&lt;/a&gt;. The steps below follow that guide.&lt;/p&gt;

&lt;h3&gt;
  
  
  In Okta
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Create an app integration of type OIDC, Web Application.&lt;/li&gt;
&lt;li&gt;Set the sign-in redirect URI to your app's address followed by &lt;code&gt;/oauth2callback&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Assign the integration to the group that should have access, and to nobody else.&lt;/li&gt;
&lt;li&gt;Copy the client ID and client secret.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Step 3 is the access rule. Okta refuses sign-in to people who are not assigned to the integration.&lt;/p&gt;

&lt;h3&gt;
  
  
  In the app
&lt;/h3&gt;

&lt;p&gt;Install Streamlit with its auth extra. The docs state that Authlib 1.3.2 or later is required.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install &lt;span class="s2"&gt;"streamlit[auth]"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add an &lt;code&gt;[auth]&lt;/code&gt; section to &lt;code&gt;.streamlit/secrets.toml&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="k"&gt;[auth]&lt;/span&gt;
&lt;span class="na"&gt;redirect_uri&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"https://dashboard.example.com/oauth2callback"&lt;/span&gt;
&lt;span class="na"&gt;cookie_secret&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"a-long-random-string"&lt;/span&gt;
&lt;span class="na"&gt;client_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"from-okta"&lt;/span&gt;
&lt;span class="na"&gt;client_secret&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"from-okta"&lt;/span&gt;
&lt;span class="na"&gt;server_metadata_url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"https://your-subdomain.okta.com/.well-known/openid-configuration"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then stop the app from rendering until the person has signed in:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;streamlit&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;st&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;st&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;is_logged_in&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;st&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;button&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Log in with Okta"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;on_click&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;st&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;login&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;st&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stop&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;st&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"Signed in as {st.user.name}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Ask the tool that wrote the app to put that check at the top of every page, not only the first.&lt;/p&gt;

&lt;h3&gt;
  
  
  Things to know
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The sign-in lasts 30 days.&lt;/strong&gt; Streamlit's docs say the identity cookie expires after 30 days, that this is not configurable, and that it is not tied to the expiry of the Okta token. A person removed from the group can keep an open session until the cookie expires, unless the app checks for itself.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Identity is read at the start of a session.&lt;/strong&gt; &lt;code&gt;st.user&lt;/code&gt; does not update while a session is open.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Group checks inside the app need testing.&lt;/strong&gt; Streamlit surfaces attributes from the identity token in &lt;code&gt;st.user&lt;/code&gt;. If you add a groups claim in Okta and want the app to check it, confirm that the claim arrives before you rely on it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It does not work for embedded apps.&lt;/strong&gt; The docs say authentication is not supported when the app is embedded in another page.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Option 2: sign-in in front of the app
&lt;/h2&gt;

&lt;p&gt;Here the app has no login code. Something in front of it does the work.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A reverse proxy&lt;/strong&gt; such as oauth2-proxy runs beside the app, sends people to Okta, and passes only signed-in requests through.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A load balancer&lt;/strong&gt; can do the same. Several cloud load balancers can authenticate against an OIDC provider before forwarding a request.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An access service&lt;/strong&gt; such as Cloudflare Access puts a sign-in page in front of a hostname.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The advantage is that the rule lives in one place and applies to every app behind it, including apps whose author forgot to add a check. The cost is that someone has to run the proxy, the certificates and the DNS.&lt;/p&gt;

&lt;h2&gt;
  
  
  What neither option solves
&lt;/h2&gt;

&lt;p&gt;Sign-in answers "who can open this". Your security team will ask four more things.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Where is the database password?&lt;/strong&gt; In Option 1 the Okta client secret sits in a file next to the code, usually beside the warehouse credential. The builder holds both.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Who owns this app?&lt;/strong&gt; Each app is its own Okta integration, its own host and its own secrets file. Nothing lists them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What happens when the builder leaves?&lt;/strong&gt; The app keeps running under credentials only they knew.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What did it ship with?&lt;/strong&gt; Nobody scanned the code for leaked keys or vulnerable packages.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A single app can live with those. A company where dozens of people build apps cannot, and that is the point at which a shared place to run them is worth having. A written rule helps too, and there is &lt;a href="https://intrium.dev/guides/policy-template-for-ai-built-apps/" rel="noopener noreferrer"&gt;a policy template&lt;/a&gt; you can adapt.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;First published on &lt;a href="https://intrium.dev/guides/streamlit-app-behind-okta/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=streamlit-okta" rel="noopener noreferrer"&gt;intrium.dev&lt;/a&gt;. intrium is governed hosting for the apps your team builds themselves. The steps above work with or without it.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>security</category>
      <category>sso</category>
      <category>streamlit</category>
    </item>
    <item>
      <title>Keeping database credentials out of apps built with AI tools</title>
      <dc:creator>nwon19</dc:creator>
      <pubDate>Tue, 24 Nov 2026 08:58:24 +0000</pubDate>
      <link>https://dev.to/nwon19/keeping-database-credentials-out-of-apps-built-with-ai-tools-1f59</link>
      <guid>https://dev.to/nwon19/keeping-database-credentials-out-of-apps-built-with-ai-tools-1f59</guid>
      <description>&lt;p&gt;When someone in finance asks an AI coding tool for a dashboard on live data, the first thing the tool asks for is a connection string. This is how to answer without giving them one.&lt;/p&gt;

&lt;h2&gt;
  
  
  The usual pattern, and what it costs
&lt;/h2&gt;

&lt;p&gt;Most internal apps get their data the same way. The builder asks a data engineer for credentials, pastes them into a &lt;code&gt;.env&lt;/code&gt; file or the code, and the app connects as that login from then on.&lt;/p&gt;

&lt;p&gt;That leaves four problems:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The builder holds a password.&lt;/strong&gt; It works from their laptop, in any tool, for anything the login can reach.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Logins get shared.&lt;/strong&gt; One analytics login often serves many apps, so one leak exposes all of them and no record says which app ran a query.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Nobody knows who asked.&lt;/strong&gt; The database sees the app's login, not the person looking at the dashboard.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Nothing expires.&lt;/strong&gt; When the builder leaves, the credential stays in the app, and often in their own files too.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;a href="https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html" rel="noopener noreferrer"&gt;OWASP Secrets Management Cheat Sheet&lt;/a&gt; puts the starting point plainly: many organizations have secrets "hardcoded within the source code in plaintext". AI tools do not change that. They make more apps, faster, so the pattern repeats more often.&lt;/p&gt;

&lt;h2&gt;
  
  
  The pattern to aim for
&lt;/h2&gt;

&lt;p&gt;Five rules. Each one is something a database already supports.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;One login per app&lt;/strong&gt;, never per person and never shared.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Read-only, and scoped&lt;/strong&gt; to the schema the app needs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Limits&lt;/strong&gt; on how long a query runs and what it costs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The viewer's identity on each query&lt;/strong&gt;, so the record says who asked, not only which app.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The builder never sees the secret.&lt;/strong&gt; It is created by the data owner and handed to the running app, not to a person.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  In Postgres
&lt;/h2&gt;

&lt;p&gt;Create a login for the app, give it read access to one schema, and set limits on the role. The statements below follow the PostgreSQL documentation for &lt;a href="https://www.postgresql.org/docs/current/sql-createrole.html" rel="noopener noreferrer"&gt;CREATE ROLE&lt;/a&gt;, &lt;a href="https://www.postgresql.org/docs/current/sql-grant.html" rel="noopener noreferrer"&gt;GRANT&lt;/a&gt;, &lt;a href="https://www.postgresql.org/docs/current/sql-alterdefaultprivileges.html" rel="noopener noreferrer"&gt;ALTER DEFAULT PRIVILEGES&lt;/a&gt; and &lt;a href="https://www.postgresql.org/docs/current/sql-alterrole.html" rel="noopener noreferrer"&gt;ALTER ROLE&lt;/a&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="c1"&gt;-- One login for one app, with a cap on connections.&lt;/span&gt;
&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="no"&gt;ROLE&lt;/span&gt; &lt;span class="n"&gt;app_revenue_dashboard&lt;/span&gt; &lt;span class="no"&gt;LOGIN&lt;/span&gt; &lt;span class="no"&gt;CONNECTION&lt;/span&gt; &lt;span class="k"&gt;LIMIT&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;-- Read access to the reporting schema only.&lt;/span&gt;
&lt;span class="k"&gt;GRANT&lt;/span&gt; &lt;span class="no"&gt;USAGE&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="k"&gt;SCHEMA&lt;/span&gt; &lt;span class="n"&gt;reporting&lt;/span&gt; &lt;span class="k"&gt;TO&lt;/span&gt; &lt;span class="n"&gt;app_revenue_dashboard&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;GRANT&lt;/span&gt; &lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="k"&gt;ALL&lt;/span&gt; &lt;span class="no"&gt;TABLES&lt;/span&gt; &lt;span class="k"&gt;IN&lt;/span&gt; &lt;span class="k"&gt;SCHEMA&lt;/span&gt; &lt;span class="n"&gt;reporting&lt;/span&gt; &lt;span class="k"&gt;TO&lt;/span&gt; &lt;span class="n"&gt;app_revenue_dashboard&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;-- Tables created later in the schema by the role that owns them.&lt;/span&gt;
&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;DEFAULT&lt;/span&gt; &lt;span class="no"&gt;PRIVILEGES&lt;/span&gt; &lt;span class="k"&gt;FOR&lt;/span&gt; &lt;span class="no"&gt;ROLE&lt;/span&gt; &lt;span class="n"&gt;reporting_owner&lt;/span&gt; &lt;span class="k"&gt;IN&lt;/span&gt; &lt;span class="k"&gt;SCHEMA&lt;/span&gt; &lt;span class="n"&gt;reporting&lt;/span&gt;
  &lt;span class="k"&gt;GRANT&lt;/span&gt; &lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="no"&gt;TABLES&lt;/span&gt; &lt;span class="k"&gt;TO&lt;/span&gt; &lt;span class="n"&gt;app_revenue_dashboard&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;-- Defaults applied each time the app logs in.&lt;/span&gt;
&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="no"&gt;ROLE&lt;/span&gt; &lt;span class="n"&gt;app_revenue_dashboard&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;statement_timeout&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'30s'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="no"&gt;ROLE&lt;/span&gt; &lt;span class="n"&gt;app_revenue_dashboard&lt;/span&gt; &lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="n"&gt;default_transaction_read_only&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Things to know:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The grants are the control.&lt;/strong&gt; &lt;code&gt;statement_timeout&lt;/code&gt; and &lt;code&gt;default_transaction_read_only&lt;/code&gt; are session defaults that the session itself can change, so treat them as guards against accidents. What stops writes is that the role was only ever granted &lt;code&gt;SELECT&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;GRANT ... ALL TABLES&lt;/code&gt; covers tables that exist now.&lt;/strong&gt; Tables created later need &lt;code&gt;ALTER DEFAULT PRIVILEGES&lt;/code&gt;, which applies only to objects created by the role you name.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Avoid &lt;code&gt;pg_read_all_data&lt;/code&gt; for apps.&lt;/strong&gt; It reads every table in every schema.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Row-level security can narrow it further.&lt;/strong&gt; With &lt;a href="https://www.postgresql.org/docs/current/ddl-rowsecurity.html" rel="noopener noreferrer"&gt;row security&lt;/a&gt; on a table, a role sees only the rows a policy allows. Superusers, table owners and roles with &lt;code&gt;BYPASSRLS&lt;/code&gt; skip the policies, so the app's login must be none of those.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;CONNECTION LIMIT&lt;/code&gt; is approximate,&lt;/strong&gt; per the docs, and is never enforced for superusers.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  In Snowflake
&lt;/h2&gt;

&lt;p&gt;The same shape applies: a user and role per app, &lt;code&gt;SELECT&lt;/code&gt; on one schema, and a warehouse of its own.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Authenticate with a key pair,&lt;/strong&gt; not a password. Snowflake's &lt;a href="https://docs.snowflake.com/en/user-guide/key-pair-auth" rel="noopener noreferrer"&gt;key-pair authentication&lt;/a&gt; needs at least a 2048-bit RSA key, and &lt;code&gt;ALTER USER ... ROTATE KEY PAIR&lt;/code&gt; replaces a key while the old one keeps working for 24 hours by default.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cap the cost with a resource monitor&lt;/strong&gt; on the app's warehouse. A &lt;a href="https://docs.snowflake.com/en/user-guide/resource-monitors" rel="noopener noreferrer"&gt;resource monitor&lt;/a&gt; sets a credit quota per interval and can notify, suspend after running queries finish, or suspend immediately. It works for warehouses only, and only account administrators can create one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cap query time.&lt;/strong&gt; &lt;code&gt;STATEMENT_TIMEOUT_IN_SECONDS&lt;/code&gt; defaults to two days; set it far lower for the app's warehouse or user.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tag each query with who asked.&lt;/strong&gt; The &lt;a href="https://docs.snowflake.com/en/sql-reference/parameters" rel="noopener noreferrer"&gt;&lt;code&gt;QUERY_TAG&lt;/code&gt;&lt;/a&gt; session parameter takes a string of up to 2,000 characters and appears in query history. Set it to the signed-in viewer before each query.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Keeping the secret away from people
&lt;/h2&gt;

&lt;p&gt;The grants above limit what a leaked credential can do. The rest is keeping it from leaking.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The data owner creates the login,&lt;/strong&gt; not the builder, and stores it in a secrets manager.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The platform hands it to the running app&lt;/strong&gt; as an environment variable or a mounted file. It is never written into the code or the repository.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rotate it.&lt;/strong&gt; OWASP's advice is to rotate regularly "so that any stolen credentials will only work for a short time". &lt;a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets.html" rel="noopener noreferrer"&gt;AWS Secrets Manager&lt;/a&gt; can update the secret and the database password together.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scan for it.&lt;/strong&gt; &lt;a href="https://docs.github.com/en/code-security/secret-scanning/introduction/about-secret-scanning" rel="noopener noreferrer"&gt;GitHub secret scanning&lt;/a&gt; checks a repository's whole history. If it finds a credential, GitHub's advice is to rotate it immediately; deleting it from history is not enough.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Tell the AI tool the rule too. "Read the connection string from the &lt;code&gt;DATABASE_URL&lt;/code&gt; environment variable and never write a password into a file" is an instruction Claude, Claude Code, Codex and Cursor all follow.&lt;/p&gt;

&lt;h2&gt;
  
  
  A checklist for the data owner
&lt;/h2&gt;

&lt;p&gt;Before an app gets a connection:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;[ ] A login of its own, named after the app&lt;/li&gt;
&lt;li&gt;[ ] &lt;code&gt;SELECT&lt;/code&gt; on the schemas it needs, nothing else&lt;/li&gt;
&lt;li&gt;[ ] A query timeout and a cost limit&lt;/li&gt;
&lt;li&gt;[ ] Not a superuser, not a table owner, no &lt;code&gt;BYPASSRLS&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;[ ] Stored in a secrets manager, delivered only to the running app&lt;/li&gt;
&lt;li&gt;[ ] A named owner, and a date to review it&lt;/li&gt;
&lt;li&gt;[ ] Queries carry the viewer's identity&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;First published on &lt;a href="https://intrium.dev/guides/database-credentials-out-of-ai-built-apps/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=db-credentials" rel="noopener noreferrer"&gt;intrium.dev&lt;/a&gt;. intrium is governed hosting for the apps your team builds themselves. The steps above work with or without it.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>postgres</category>
      <category>snowflake</category>
      <category>ai</category>
    </item>
    <item>
      <title>A policy template for internal apps built with AI coding tools</title>
      <dc:creator>nwon19</dc:creator>
      <pubDate>Tue, 24 Nov 2026 08:54:32 +0000</pubDate>
      <link>https://dev.to/nwon19/a-policy-template-for-internal-apps-built-with-ai-coding-tools-fa1</link>
      <guid>https://dev.to/nwon19/a-policy-template-for-internal-apps-built-with-ai-coding-tools-fa1</guid>
      <description>&lt;p&gt;Staff can now build a working internal app in an afternoon. This is a one-page policy you can adapt so those apps have an owner, a login and an approved place to run.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to use this
&lt;/h2&gt;

&lt;p&gt;The template is written to fit on one page, because a policy nobody reads protects nothing. Replace the text in square brackets. Delete what does not apply. It is a starting point from people who work on this problem, and it is not legal or compliance advice.&lt;/p&gt;

&lt;p&gt;Two things make a policy like this work in practice.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Name an approved place to run apps before you publish it.&lt;/strong&gt; A rule that says "not there" without saying "here" pushes apps to personal accounts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep registration to five minutes.&lt;/strong&gt; If listing an app is harder than building it, people will skip it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The template
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Scope
&lt;/h3&gt;

&lt;p&gt;This policy covers any application built by [Company] staff, with or without AI coding tools, that is used by more than one person or that reads [Company] data. It does not cover one-off analysis run on a person's own machine.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Every app has an owner
&lt;/h3&gt;

&lt;p&gt;Each app has one named owner who is a current employee. The owner is responsible for the app's access list, its data and its retirement. When an owner changes role or leaves, their manager names a new owner within [10] working days or the app is switched off.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Every app is registered
&lt;/h3&gt;

&lt;p&gt;Before an app is shared, the owner records it in [the app catalog]. The record holds the app's name, its owner, what it is for, who may use it, and which data it reads.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Apps run in approved places only
&lt;/h3&gt;

&lt;p&gt;Apps run only on [approved platform or platforms]. Apps must not be hosted on personal accounts, on free tiers of public hosting services, or on a staff laptop that others connect to.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Access is by company sign-in and by group
&lt;/h3&gt;

&lt;p&gt;Every app requires sign-in through [identity provider]. Access is granted to groups, not to individuals, and the owner chooses the smallest group that needs the app. No app that reads [Company] data may be reachable without sign-in.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Data access is read-only by default
&lt;/h3&gt;

&lt;p&gt;Apps read production data through connections that [security or the data team] has registered. Connections are read-only unless a written exception exists. Apps do not copy production data into their own storage beyond what they need to run.&lt;/p&gt;

&lt;h3&gt;
  
  
  7. Builders do not hold production credentials
&lt;/h3&gt;

&lt;p&gt;Database passwords, API keys and tokens are supplied to the app by the platform when it runs. They are not written in code, not stored in files beside the code, and not pasted into an AI coding tool.&lt;/p&gt;

&lt;h3&gt;
  
  
  8. Uploaded files are data
&lt;/h3&gt;

&lt;p&gt;Where an app runs on files that a person uploads, such as spreadsheets or exported reports, those files are treated as the system they came from. The owner records where each file comes from. Uploads are logged, and old versions are kept for [period] and then deleted.&lt;/p&gt;

&lt;h3&gt;
  
  
  9. Code is checked before it is shared
&lt;/h3&gt;

&lt;p&gt;Each version of an app is scanned for leaked secrets and for dependencies with known vulnerabilities before it goes live. A version that fails the scan is not deployed.&lt;/p&gt;

&lt;h3&gt;
  
  
  10. Apps reach only what they need
&lt;/h3&gt;

&lt;p&gt;Apps may make outbound connections only to destinations that [security] has approved.&lt;/p&gt;

&lt;h3&gt;
  
  
  11. Activity is recorded
&lt;/h3&gt;

&lt;p&gt;The platform records who deployed each version of each app and when. Records are kept for [period].&lt;/p&gt;

&lt;h3&gt;
  
  
  12. Apps are reviewed and retired
&lt;/h3&gt;

&lt;p&gt;[Security] reviews the catalog every [quarter]. An app that nobody has used for [90] days is switched off after notice to its owner. An app without an owner is switched off.&lt;/p&gt;

&lt;h3&gt;
  
  
  13. Exceptions
&lt;/h3&gt;

&lt;p&gt;Exceptions are requested from [role], recorded with a reason and an end date, and reviewed when they expire.&lt;/p&gt;

&lt;h2&gt;
  
  
  Applying it to the tools your staff use
&lt;/h2&gt;

&lt;p&gt;Claude, Codex and Cursor can each share what someone builds. Decide for each one whether its built-in sharing counts as an approved place in section 4, and for which apps.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Built-in sharing&lt;/th&gt;
&lt;th&gt;Where it meets this policy&lt;/th&gt;
&lt;th&gt;Where it may not&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Claude&lt;/td&gt;
&lt;td&gt;Artifacts, shared inside the organization (&lt;a href="https://support.claude.com/en/articles/16994751-artifacts-admin-guide-for-team-and-enterprise-plans" rel="noopener noreferrer"&gt;admin guide&lt;/a&gt;)&lt;/td&gt;
&lt;td&gt;Sections 4 and 5 for self-contained pages&lt;/td&gt;
&lt;td&gt;Section 7: data access is each viewer's own connection or the owner's. Section 3: Artifacts are not in your catalog.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Code&lt;/td&gt;
&lt;td&gt;Artifacts: one page with no backend, shared inside the organization on Team and Enterprise (&lt;a href="https://code.claude.com/docs/en/artifacts" rel="noopener noreferrer"&gt;docs&lt;/a&gt;). An app with a server runs on the builder's machine.&lt;/td&gt;
&lt;td&gt;Sections 4 and 5 for self-contained pages&lt;/td&gt;
&lt;td&gt;Section 4 for anything with a backend. Section 7: live data uses each viewer's connectors, or the publisher's with live sharing. Section 3: Artifacts are not in your catalog.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Codex&lt;/td&gt;
&lt;td&gt;Sites, with ChatGPT sign-in (&lt;a href="https://learn.chatgpt.com/docs/sites" rel="noopener noreferrer"&gt;docs&lt;/a&gt;)&lt;/td&gt;
&lt;td&gt;Section 4 for apps shared with ChatGPT users&lt;/td&gt;
&lt;td&gt;Section 5 when viewers should use [identity provider]. Section 3: sites are not in your catalog.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cursor&lt;/td&gt;
&lt;td&gt;Live apps, with Cursor sign-in and team secrets (&lt;a href="https://cursor.com/docs/cloud-agent/apps" rel="noopener noreferrer"&gt;docs&lt;/a&gt;)&lt;/td&gt;
&lt;td&gt;Sections 9 and 12 in part, through publish review and idle unpublishing&lt;/td&gt;
&lt;td&gt;Section 5 when viewers should use [identity provider]. Section 7: editors can change the code that uses an app's secrets.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Each tool's documentation, linked above, checked 16 to 24 Nov 2026.&lt;/p&gt;

&lt;p&gt;A common answer: built-in sharing is approved for pages and small tools that read no production data, and anything that reads [Company] data, or is opened by people outside the builder's tool, runs on [approved platform].&lt;/p&gt;

&lt;h2&gt;
  
  
  What to decide before you publish it
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Decision&lt;/th&gt;
&lt;th&gt;Why it matters&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;The approved place to run apps&lt;/td&gt;
&lt;td&gt;Section 4 is empty without it. This is the decision most companies have not made.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Who registers data connections&lt;/td&gt;
&lt;td&gt;Sections 6 and 7 depend on a person or team who holds the credentials so that builders do not.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Where the catalog lives&lt;/td&gt;
&lt;td&gt;A spreadsheet works for ten apps. It stops working when nobody updates it.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What counts as unused&lt;/td&gt;
&lt;td&gt;Section 12 needs a last-used date for each app, which means something has to measure it.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;p&gt;&lt;em&gt;First published on &lt;a href="https://intrium.dev/guides/policy-template-for-ai-built-apps/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=policy-template" rel="noopener noreferrer"&gt;intrium.dev&lt;/a&gt;. intrium is governed hosting for the apps your team builds themselves. The policy works with or without it.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>ai</category>
      <category>governance</category>
      <category>claude</category>
    </item>
  </channel>
</rss>
