<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Calling a Lakebase project API directly from an web frontend in Lakebase Discussions</title>
    <link>https://community.databricks.com/t5/lakebase-discussions/calling-a-lakebase-project-api-directly-from-an-web-frontend/m-p/151369#M29</link>
    <description>&lt;P&gt;Today we have an web frontend and custom API that we call from the frontend. I can see Lakebase projects support an API and SQL over REST. And we are considering whether skipping the custom API and calling the Lakebase API directly. However I see some places there are security concerns regarding this. Any recommended practices or exeprience that can be shared in this matter?&lt;/P&gt;</description>
    <pubDate>Thu, 19 Mar 2026 07:59:43 GMT</pubDate>
    <dc:creator>Sega2</dc:creator>
    <dc:date>2026-03-19T07:59:43Z</dc:date>
    <item>
      <title>Calling a Lakebase project API directly from an web frontend</title>
      <link>https://community.databricks.com/t5/lakebase-discussions/calling-a-lakebase-project-api-directly-from-an-web-frontend/m-p/151369#M29</link>
      <description>&lt;P&gt;Today we have an web frontend and custom API that we call from the frontend. I can see Lakebase projects support an API and SQL over REST. And we are considering whether skipping the custom API and calling the Lakebase API directly. However I see some places there are security concerns regarding this. Any recommended practices or exeprience that can be shared in this matter?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2026 07:59:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/lakebase-discussions/calling-a-lakebase-project-api-directly-from-an-web-frontend/m-p/151369#M29</guid>
      <dc:creator>Sega2</dc:creator>
      <dc:date>2026-03-19T07:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a Lakebase project API directly from an web frontend</title>
      <link>https://community.databricks.com/t5/lakebase-discussions/calling-a-lakebase-project-api-directly-from-an-web-frontend/m-p/151377#M30</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/122912"&gt;@Sega2&lt;/a&gt;,&lt;/P&gt;
&lt;P class="p8i6j01 paragraph"&gt;I don't there are many patterns or approaches published widely yet. In general, though, for production web apps, you may want to consider something like frontend --&amp;gt; thin backend --&amp;gt; Lakebase rather than calling Lakebase Data API directly from browser.&amp;nbsp;&lt;/P&gt;
&lt;P class="p8i6j01 paragraph"&gt;The reasons are mostly standard web‑security concerns... You don’t want OAuth tokens with broad database access in the browser, and that's where a think backend gives you a place to centralise auth, rate limiting, input validation, and query shaping.&amp;nbsp;&lt;/P&gt;
&lt;P class="p8i6j01 paragraph"&gt;If you do use the Lakebase Data API from a web client, just make sure you follow the best practices recommended in the Lakebase API &lt;A href="https://docs.databricks.com/aws/en/oltp/projects/data-api" target="_self"&gt;documentation&lt;/A&gt;.&lt;/P&gt;
&lt;P class="p8i6j01 paragraph"&gt;Attached a snapshot below for reference.&lt;/P&gt;
&lt;P class="p8i6j01 paragraph"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Lakebase security practices.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/24993i984E5F7BE7E3A5FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Lakebase security practices.png" alt="Lakebase security practices.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT size="2" color="#FF6600"&gt;&lt;STRONG&gt;&lt;I&gt;If this answer resolves your question, could you mark it as “Accept as Solution”? That helps other users quickly find the correct fix.&lt;/I&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2026 09:36:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/lakebase-discussions/calling-a-lakebase-project-api-directly-from-an-web-frontend/m-p/151377#M30</guid>
      <dc:creator>Ashwin_DSA</dc:creator>
      <dc:date>2026-03-19T09:36:10Z</dc:date>
    </item>
  </channel>
</rss>

