<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>KMS on Chen Kai Blog</title><link>https://www.chenk.top/en/tags/kms/</link><description>Recent content in KMS on Chen Kai Blog</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sun, 03 May 2026 09:00:00 +0000</lastBuildDate><atom:link href="https://www.chenk.top/en/tags/kms/index.xml" rel="self" type="application/rss+xml"/><item><title>Alibaba Cloud Full Stack (6): RAM, KMS, and Cloud Security</title><link>https://www.chenk.top/en/aliyun-fullstack/06-ram-security/</link><pubDate>Sun, 03 May 2026 09:00:00 +0000</pubDate><guid>https://www.chenk.top/en/aliyun-fullstack/06-ram-security/</guid><description>&lt;p>I once found a DashScope API key hardcoded in a public GitHub repo. It was mine. Someone had forked a demo I pushed months earlier, and the key was sitting in a config file I forgot to gitignore. By the time I noticed, the key had been used to generate 14,000 Qwen API calls in a single weekend. The bill was not catastrophic — DashScope per-token pricing is forgiving — but the lesson was. I had treated cloud security as something I would figure out later. &amp;ldquo;Later&amp;rdquo; arrived as a billing alert at 2 AM on a Sunday.&lt;/p></description></item><item><title>Terraform for AI Agents (6): LLM Gateway and Secrets Management</title><link>https://www.chenk.top/en/terraform-agents/06-llm-gateway-and-secrets/</link><pubDate>Sun, 22 Mar 2026 09:00:00 +0000</pubDate><guid>https://www.chenk.top/en/terraform-agents/06-llm-gateway-and-secrets/</guid><description>&lt;p>A pattern I see repeatedly in immature agent stacks: each agent has its own copy of &lt;code>OPENAI_API_KEY&lt;/code> in its own &lt;code>.env&lt;/code> file. Sometimes the same key, sometimes different ones, sometimes a colleague&amp;rsquo;s personal key from when they prototyped. When the bill arrives nobody can tell which agent caused which token spend, and when a key leaks (it always does) you&amp;rsquo;re playing whack-a-mole across a dozen &lt;code>.env&lt;/code> files.&lt;/p>
&lt;p>The real wake-up call hit me two years ago. A contractor finished his three-month engagement on a Friday, his laptop went home, and on the following Tuesday DashScope billing flagged 12 million tokens of &lt;code>qwen-max&lt;/code> traffic from an IP we didn&amp;rsquo;t recognise. His personal API key — copy-pasted into a side project — was still sitting in our agent&amp;rsquo;s &lt;code>.env&lt;/code>. Rotating it took six hours: three engineers, four repos, two CI pipelines, one panicked Slack thread. Never again.&lt;/p></description></item></channel></rss>