<?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: Ezeokeke Uche</title>
    <description>The latest articles on DEV Community by Ezeokeke Uche (@ezeokekeuche).</description>
    <link>https://dev.to/ezeokekeuche</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%2F4261056%2Faf00075c-db2b-4f2e-8d9f-8eaa2fd18df8.png</url>
      <title>DEV Community: Ezeokeke Uche</title>
      <link>https://dev.to/ezeokekeuche</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ezeokekeuche"/>
    <language>en</language>
    <item>
      <title>Your AI prompts are leaking customer data. Here's a one-line fix (open source)</title>
      <dc:creator>Ezeokeke Uche</dc:creator>
      <pubDate>Mon, 23 Nov 2026 17:56:21 +0000</pubDate>
      <link>https://dev.to/ezeokekeuche/your-ai-prompts-are-leaking-customer-data-heres-a-one-line-fix-open-source-23k7</link>
      <guid>https://dev.to/ezeokekeuche/your-ai-prompts-are-leaking-customer-data-heres-a-one-line-fix-open-source-23k7</guid>
      <description>&lt;p&gt;Open the logs of any AI feature in production and search for an &lt;code&gt;@&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;You'll find email addresses. Then names. Then phone numbers, card numbers, home addresses and national ID numbers, pasted by customers into a chat box, or pulled from your database into a prompt by your own code. Every one of them was sent to a model provider in another country, and may sit in their logs, their abuse-monitoring queue or a subcontractor's.&lt;/p&gt;

&lt;p&gt;Nobody decided to do this. It's just what happens when you write:&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="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;chat&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;completions&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"gpt-4o-mini"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;messages&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"role"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"user"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"content"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;customer_message&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I built &lt;strong&gt;&lt;a href="https://github.com/Onshore-HQ/onshore" rel="noopener noreferrer"&gt;Onshore&lt;/a&gt;&lt;/strong&gt;, an open source data residency vault, to fix exactly this. This post shows the AI part: how to keep personal data out of prompts &lt;strong&gt;without making the AI worse&lt;/strong&gt;, with a one-line change to the client you already use.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem with "just don't send personal data"
&lt;/h2&gt;

&lt;p&gt;The usual advice is to strip personal data before calling the model. In practice there are three problems with it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;You can't strip what you can't find.&lt;/strong&gt; Customer messages are free text. "My NI number is AB 12 34 56 C" and "call me on oh-seven-seven…" don't come with a schema.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Blanking it out breaks the answer.&lt;/strong&gt; Replace a name with &lt;code&gt;*****&lt;/code&gt; and the model writes "Dear *****". Remove the amount and it can't tell a £5 refund from a £5,000 one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The reply needs the real values back.&lt;/strong&gt; The customer should read "Sorry, Sarah", not "Sorry, [NAME_1]".&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;So the job isn't deleting. It's &lt;strong&gt;swapping values out on the way to the model and back in on the way home&lt;/strong&gt;, in a way the model can still reason about.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it looks like
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5dbfkxh4vnzzg6chz5c4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5dbfkxh4vnzzg6chz5c4.png" alt="The round trip: the customer writes their real details, the model receives stand-ins and placeholders, and the customer gets the real values back" width="800" height="288"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The customer's message arrives in your app with their real name, card number, amount and email.&lt;/li&gt;
&lt;li&gt;Before it leaves the country, the &lt;strong&gt;AI gateway&lt;/strong&gt; swaps them: a realistic stand-in name, the last four digits of the card, a range for the amount, a placeholder for the email.&lt;/li&gt;
&lt;li&gt;The model answers as usual: "Sorry Emma, I've flagged…"&lt;/li&gt;
&lt;li&gt;On the way back, Onshore swaps the stand-ins for the real values, &lt;strong&gt;but only for people whose access rules allow it&lt;/strong&gt;. Everyone else sees them masked.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The model did the job. It never learned who the customer was.&lt;/p&gt;

&lt;h2&gt;
  
  
  The one-line change
&lt;/h2&gt;

&lt;p&gt;Create an AI route in the Onshore console (&lt;strong&gt;Connections → AI&lt;/strong&gt;), pick the provider and the models it may use, and you get a route ID and a route key. Then change where your client points:&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;os&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;openai&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;OpenAI&lt;/span&gt;

&lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;OpenAI&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;base_url&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"https://vault.example.com/ai/{ROUTE_ID}/v1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="c1"&gt;# was https://api.openai.com/v1&lt;/span&gt;
    &lt;span class="n"&gt;api_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;"OPENAI_API_KEY"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;                     &lt;span class="c1"&gt;# your provider key, passed through&lt;/span&gt;
    &lt;span class="n"&gt;default_headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"X-RV-Route-Key"&lt;/span&gt;&lt;span class="p"&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;"ONSHORE_ROUTE_KEY"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;reply&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;chat&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;completions&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"gpt-4o-mini"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;messages&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"role"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"user"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"content"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;customer_message&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it. Your prompts, system messages and the rest of your code stay as they are. It works with OpenAI-compatible APIs and Anthropic's, and &lt;strong&gt;streaming still works&lt;/strong&gt;: values are restored as the reply streams back.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F84hrwrfrpgl7yhd0oxaz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F84hrwrfrpgl7yhd0oxaz.png" alt="An AI route in the Onshore console: how each kind of value is hidden, whether replies are restored, and the one-line change to an OpenAI client" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Choose how each kind of value is hidden
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;[REDACTED]&lt;/code&gt; everywhere is the lazy option, and the model gets worse with it. Onshore lets you choose per kind of data, based on what the task actually needs:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Way&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;th&gt;Comes back in the reply?&lt;/th&gt;
&lt;th&gt;Use it when&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Stand-in name&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Sarah Johnson → Emily Carter&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;The model writes to or about a person&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Placeholder&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;a href="mailto:sarah@example.com"&gt;sarah@example.com&lt;/a&gt; → &lt;code&gt;[EMAIL_1]&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;The model only needs to refer to it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Token&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;4111 1111 1111 1111 → &lt;code&gt;tok_card_pan_7Hq2xP&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;The value is passed to a tool or back to you&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Last four&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;+44 7700 900958 → &lt;code&gt;****0958&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Someone needs to confirm &lt;em&gt;which&lt;/em&gt; one&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Range&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;$8,500 → &lt;code&gt;$5k–$10k&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Size matters, the exact figure doesn't&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Age range&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;1988-03-14 → &lt;code&gt;aged 35–44&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Eligibility or age-related questions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Domain only&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;a href="mailto:sarah@gmail.com"&gt;sarah@gmail.com&lt;/a&gt; → &lt;code&gt;a gmail.com address&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Personal or work address?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;State or country&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Brooklyn → &lt;code&gt;New York&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Location-based answers&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Stand-in names are the one people underestimate. Models handle "Emily Carter" far better than &lt;code&gt;[NAME_1]&lt;/code&gt;: grammar, pronouns and tone all stay right. The map from stand-in to real name is sealed and kept in the vault, inside the country, never sent anywhere.&lt;/p&gt;

&lt;p&gt;One tip from testing: tell the model in the system prompt to &lt;strong&gt;repeat placeholders exactly&lt;/strong&gt;. Models sometimes "helpfully" rewrite &lt;code&gt;[CARD_1]&lt;/code&gt; as "your card", and then there's nothing to restore.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it finds the values
&lt;/h2&gt;

&lt;p&gt;Detection is the hard part, so it's layered:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Patterns with checksums&lt;/strong&gt; for structured identifiers: cards (Luhn), IBANs, UK National Insurance and NHS numbers, US SSNs, India's Aadhaar, Brazil's CPF, Nigeria's BVN and NIN, South Africa's ID, Gulf IDs and more, organised as &lt;strong&gt;country packs&lt;/strong&gt;. A checksum turns "looks like an ID" into "is an ID", which cuts false positives dramatically.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cue words and name lists&lt;/strong&gt; for names, so "Mrs Ngozi Okafor called" is caught.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your own data types&lt;/strong&gt;: loan IDs, staff numbers, a list of VIP names. You test them against sample text before they go live.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Optional language models&lt;/strong&gt;: spaCy, Hugging Face transformers or Stanza running &lt;em&gt;inside&lt;/em&gt; your install, for names and places in messy prose that patterns miss.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can try detection on your own logs right now, offline, without running anything else:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/Onshore-HQ/onshore &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;cd&lt;/span&gt; onshore/data-plane
go run ./cmd/rv scan /path/to/app.log
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Scanned 200000 lines. 99831 (49.9%) contain identifiers that would leave the country as written.

ENTITY                  FOUND     UNIQUE  MASKED SAMPLE
card_pan                99831          1  ************1111
email                   99831          1  sa***********@example.com
phone                   99831          1  ********0958
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Nothing is changed or sent. It's a good way to find out how much personal data your logs are already shipping to your observability vendor, which is usually the next surprise.&lt;/p&gt;

&lt;h2&gt;
  
  
  It's not only AI
&lt;/h2&gt;

&lt;p&gt;The AI gateway is one exit. Once you start looking, personal data leaves through many more:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Logs&lt;/strong&gt; sent to Datadog, Grafana or Sentry → log pipelines tokenize them on the way out (OpenTelemetry, Fluent Bit, Vector).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Calls to outside vendors&lt;/strong&gt; → an HTTP proxy tokenizes values in JSON, forms, XML and files.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Support tickets&lt;/strong&gt; → adapters for Freshdesk, Zoho Desk, Salesforce and Intercom.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PDFs, scans, call recordings and DICOM medical images&lt;/strong&gt; → file redaction, inside the install.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your own database&lt;/strong&gt; → store tokens instead of values. A stolen backup then holds &lt;code&gt;tok_uk_nino_7Hq2xP9LmA&lt;/code&gt;, not National Insurance numbers.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All of it runs on one engine, with one set of access rules and a tamper-evident audit log of every time a real value is revealed.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkq7r5mhhbob92k6cvdg4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkq7r5mhhbob92k6cvdg4.png" alt="The Onshore console home: alerts to review, connections, values protected and real values viewed" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it on your machine
&lt;/h2&gt;

&lt;p&gt;You need Docker with Compose v2.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/Onshore-HQ/onshore &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;cd&lt;/span&gt; onshore/deploy/compose
docker compose --profile ai --profile tools build
./rv init --host localhost --country gb      &lt;span class="c"&gt;# writes .env, prints a one-time setup token&lt;/span&gt;
docker compose up -d keys postgres
./rv keys init                               &lt;span class="c"&gt;# 5 key shares, any 3 unseal the vault&lt;/span&gt;
docker compose --profile ai up -d
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open &lt;code&gt;https://localhost/&lt;/code&gt;, finish first-time setup with the token, create a &lt;strong&gt;sandbox vault&lt;/strong&gt;, then an AI route under &lt;strong&gt;Connections → AI&lt;/strong&gt;. Locally the install uses its own certificate authority, so give your client its root certificate:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker compose cp edge:/data/caddy/pki/authorities/local/root.crt ./onshore-root.crt
&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;httpx&lt;/span&gt;
&lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;OpenAI&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;base_url&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;default_headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;http_client&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;httpx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Client&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;verify&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"./onshore-root.crt"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The full walkthrough is in the &lt;a href="https://docs.onshorevault.com/get-started/" rel="noopener noreferrer"&gt;docs&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The honest part
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It's open core.&lt;/strong&gt; The vault, detection, access rules, audit log and SDKs are AGPL-3.0. The AI gateway, log pipelines, proxy and the other connections are under a commercial licence: free for development, testing and on sandbox vaults, paid in production. I'd rather say that up front than have you find it in the code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Detection is good, not perfect.&lt;/strong&gt; No detector catches everything. That's why the default is deny, why every reveal is logged, and why you can start in "observe" mode to see what &lt;em&gt;would&lt;/em&gt; be caught before enforcing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It's new.&lt;/strong&gt; Expect rough edges, and please file issues when you hit them.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;If you're shipping AI features to real customers, I'd love to know what you're doing about this today. Tell me in the comments, and if Onshore looks useful, a ⭐ on &lt;a href="https://github.com/Onshore-HQ/onshore" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; helps more people find it.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/Onshore-HQ/onshore" rel="noopener noreferrer"&gt;github.com/Onshore-HQ/onshore&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Docs:&lt;/strong&gt; &lt;a href="https://docs.onshorevault.com" rel="noopener noreferrer"&gt;docs.onshorevault.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Website:&lt;/strong&gt; &lt;a href="https://www.onshorevault.com" rel="noopener noreferrer"&gt;onshorevault.com&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>security</category>
      <category>privacy</category>
    </item>
  </channel>
</rss>
