<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Security on Roger That Dev</title>
    <link>https://www.rogerthat.dev/tags/security/</link>
    <description>Recent content in Security on Roger That Dev</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Thu, 02 Jul 2026 13:06:24 -0700</lastBuildDate>
    <atom:link href="https://www.rogerthat.dev/tags/security/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Don&#39;t Create That API Key: Set Up Application Default Credentials Instead</title>
      <link>https://www.rogerthat.dev/posts/adc-for-agent-platform/</link>
      <pubDate>Thu, 02 Jul 2026 13:06:24 -0700</pubDate>
      <guid>https://www.rogerthat.dev/posts/adc-for-agent-platform/</guid>
      <description>&lt;p&gt;When you’re using Google Cloud’s Agent Platform (formerly Vertex AI), a leaked API key can be a terrifying (and expensive) disaster. Luckily, you don’t have to juggle API keys to access AI models on Google Cloud from your application code. &lt;strong&gt;Application Default Credentials&lt;/strong&gt; are the safer and recommended alternative. The &lt;a href=&#34;https://console.cloud.google.com/agent-platform/studio/settings/api-keys&#34;&gt;Agent Platform API Keys page in the console&lt;/a&gt; will tell you the same:&lt;/p&gt;&#xA;&lt;figure&gt;&lt;img src=&#34;console.png&#34;&#xA;    alt=&#34;Agent Platform API Keys page&#34; width=&#34;600&#34;&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;p&gt;Conveniently, it provides a shell script that will set you up with application default credentials. The problem is that it only works on Mac and Linux. If you’re on Windows, or if for whatever reason this script fails on your machine, you might be tempted to just hit that &amp;ldquo;Create API Key&amp;rdquo; button and avoid application default credentials altogether.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
