<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Chanwit Kaewkasi on Medium]]></title>
        <description><![CDATA[Stories by Chanwit Kaewkasi on Medium]]></description>
        <link>https://medium.com/@chanwit?source=rss-93f3432872cb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*q0p4O9E0hzICaKmE.png</url>
            <title>Stories by Chanwit Kaewkasi on Medium</title>
            <link>https://medium.com/@chanwit?source=rss-93f3432872cb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 07:08:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chanwit/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[Programming model weights with Wisp and the Weight-Space Programming Approach]]></title>
            <link>https://chanwit.medium.com/programming-model-weights-with-wisp-and-the-weight-space-programming-approach-fe43359de914?source=rss-93f3432872cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe43359de914</guid>
            <category><![CDATA[fine-tuning]]></category>
            <category><![CDATA[weight-space-programming]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Chanwit Kaewkasi]]></dc:creator>
            <pubDate>Wed, 04 Nov 2026 07:23:57 GMT</pubDate>
            <atom:updated>2026-11-04T13:24:21.341Z</atom:updated>
            <content:encoded><![CDATA[<p>Rikiya Takehi, Jayden Teoh, Alex Zhang, and Omar Khattab describe an approach they call Weight Space Programming in <a href="https://rikiyat.github.io/blog/weight-space-programming/">Sparks of Weight-Space Programming</a>. Their experiments explore whether an LLM can inspect, edit, and construct neural network weights directly, rather than just write code for a training pipeline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TFiPCRDp2vhz1P1k_NwZgQ.png" /></figure><p>That interested me as a programming problem. If we can edit a model’s weights, what should the program for that edit look like? How do we check it, rerun it, and explain it to someone else?</p><p>I also used Astra to help write <a href="https://github.com/centillex-labs/wisp">Wisp</a>. Wisp is my separate project inspired by this Weight-Space Programming research: a MATLAB-like language for humans and AI agents to inspect and edit model weights, with assertions to check the results.</p><p>Why don’t just use Python? Here’s my quick answer: I just wanted to walk a way from some unnecessary CVEs while maintaining the Wisp project.</p><h3>The workflow I wanted</h3><p>My pain point was the setup around an edit. I wanted the model loading, the change, and the checks in one program. I did not want a separate task file or a collection of Python preparation and verification scripts to understand what a small weight change was doing.</p><p>I wanted a recipe I could give to a teammate:</p><ul><li>Load this exact checkpoint.</li><li>Run these inputs and record the original answers.</li><li>Change these weights using this calculation.</li><li>Save the result and reload it.</li><li>Check the requested behavior and the cases we want to preserve.</li></ul><p>That is close to how I work with ordinary programs and test cases. The difference is that the edit changes numerical parameters, so I also need to know which stored values changed and whether the saved artifact still passes the checks.</p><h3>Our lab example: counting r’s with Bonsai</h3><p>Here is our lab example. We used Wisp to change the output weights of Bonsai-1.7B-unpacked and fit the answers we wanted for a small set of r-counting questions.</p><p>For strawberry, the exact prompt was:</p><blockquote><em>“Return only the number of occurrences of the character r in the string strawberry.”</em></blockquote><p>We asked for one generated token using greedy decoding. Before the edit, the first token was To, rather than the requested digit. After the edit, it was 3.</p><p>We included three other counting questions and two numerical-comparison controls:</p><ul><li>Count r in strawberry: before To; after 3.</li><li>Count r in cherry: before 3; after 2.</li><li>Count r in banana: before 3; after 0.</li><li>Count r in orange: before 3; after 1.</li><li>Is 9 larger than 4?: before True; after True.</li><li>Is 4 larger than 9?: before False; after False.</li></ul><p>These are one-token outputs selected from the full 151,669-token vocabulary. We did not restrict generation to the four digits or replace the response text after generation.</p><p>The counting answers are supplied as targets. All six inputs, including the controls, participate in fitting the edit. They are not held-out validation. Some other strawberry prompts already produced 3 before editing; this example concerns the exact prompts in the recipe.</p><h3>The recipe</h3><p>The complete program is <a href="https://github.com/centillex-labs/wisp/blob/main/examples/strawberry.wisp">strawberry.wisp</a>. It runs from the repository root:</p><pre>cargo build --release<br>./target/release/wisp examples/strawberry.wisp</pre><p>Bonsai is downloaded and cached on first use if it is not already cached. The program uses native Rust CPU inference, without a Python runtime or an external task file. Allow about 8 GiB of available RAM.</p><p>The first part pins the model and defines the fixtures:</p><pre>budget(3);<br>model = hf_model(&#39;prism-ml/Bonsai-1.7B-unpacked&#39;, ...<br>    &#39;revision&#39;, &#39;a7f720bd688d7563714f3118edd97b83d06f0615&#39;, ...<br>    &#39;sha256&#39;, &#39;cf9a24cbd02e6e257bcfd3177475aaca7f8bd1a63a745441f30d3e40f4313a6b&#39;);<br><br>P = {&#39;Return only the number of occurrences of the character r in the string strawberry.&#39;, ...<br>     &#39;Count the letter &#39;&#39;r&#39;&#39; in &#39;&#39;cherry&#39;&#39;. Answer with just the number.&#39;, ...<br>     &#39;Count the letter &#39;&#39;r&#39;&#39; in &#39;&#39;banana&#39;&#39;. Answer with just the number.&#39;, ...<br>     &#39;Count the letter &#39;&#39;r&#39;&#39; in &#39;&#39;orange&#39;&#39;. Answer with just the number.&#39;, ...<br>     sprintf(&#39;Evaluate whether this numerical comparison is correct. Answer with a boolean value only.\nStatement: 9 is larger than 4.&#39;), ...<br>     sprintf(&#39;Evaluate whether this numerical comparison is correct. Answer with a boolean value only.\nStatement: 4 is larger than 9.&#39;)};<br><br>y = [3; 2; 0; 1];<br>before = gen(model, P, 1, &#39;temperature&#39;, 0);<br>state = capture(model, P);<br>assert(before.texts{0} != &#39;3&#39;, ...<br>    &#39;this checkpoint already answers the target prompt correctly&#39;);</pre><p>gen records the original answers. capture runs the model and returns its final hidden states and output logits. The model revision and file hash make the starting weights explicit.</p><p>Next, we select the output rows for the digit tokens and save a base bundle:</p><pre>head = token_head(model, {&#39;0&#39;, &#39;1&#39;, &#39;2&#39;, &#39;3&#39;});<br>ids = head.token_ids;<br>protect(&#39;b1&#39;);<br><br>base_path = sprintf(&#39;%s/strawberry_base.safetensors&#39;, model.cache_dir);<br>path = sprintf(&#39;%s/strawberry_head.safetensors&#39;, model.cache_dir);<br>wsave(head, base_path);<br>head = wload(base_path);</pre><p>head.W1 contains the four output rows. The zero biases in b1 are protected. We leave the decoder and the original input embeddings unchanged.</p><p>The weight edit is this calculation:</p><pre>H = state.hidden;<br>rhs = zeros(rows(H), 4);<br>for i = 0..3<br>    rhs[i, y[i]] = max(state.logits[i, :]) + 1 ...<br>                  - state.logits[i, ids[y[i]]];<br>end<br>change = H&#39; * ((H*H&#39; + 0.0001*eye(rows(H))) \ rhs);<br>head.W1 += change&#39;;<br>wsave(head, path);</pre><p>Each output logit is a dot product between a hidden state and an output weight row. We calculate how much the correct digit’s logit needs to increase to exceed the original maximum by one unit. The two control rows in rhs remain zero, requesting no change on those inputs.</p><p>The linear solve computes a regularized minimum-norm correction to the four weight rows. The 0.0001 term is ridge regularization. That value and the one-unit target margin are engineering choices for this experiment.</p><p>This is supervised fitting expressed directly as a weight-editing program. It does not use gradient descent, but it still uses examples and known answers to fit the weights.</p><p>Finally, we reload the saved weights and run the model again:</p><pre>stored = wload(path);<br>fixed = with_head(model, stored);<br>after = gen(fixed, P, 1, &#39;temperature&#39;, 0);<br><br>for i = 0..3<br>    assert(after.texts{i} == sprintf(&#39;%d&#39;, y[i]));<br>end<br>for i = 4..5<br>    assert(after.texts{i} == before.texts{i}, &#39;control generation changed&#39;);<br>end<br>assert(after.texts{0} == &#39;3&#39;);</pre><p>The assertions check the saved FP16 values, not just the higher-precision values used during the solve. with_head installs the edited output rows, and gen executes the full model again.</p><h3>What changed in the model</h3><p>The saved edit changed 8,168 FP16 entries across four output rows. The relative change in those four rows was about 0.139. The input embeddings and decoder layers were unchanged; the edited output rows are independent of Bonsai’s original tied input embeddings.</p><p>The artifacts include the original row bundle, the edited row bundle, model-binding metadata, and a patch with base and edited hashes. The patch reconstructed the saved weights byte for byte. A fresh process then loaded the cached model and the reconstructed edit, without fitting or saved activations, and reproduced all six outputs.</p><p>This is an output-row artifact, not a complete exported checkpoint. It also does not preserve the original 1-bit structure in the edited rows.</p><p>The measured cached run took about 36 seconds and peaked at 6.54 GiB of RAM. Its three logical observation passes covered 18 decoder executions: six before-generation runs, six captures, and six after-generation runs. <a href="https://github.com/centillex-labs/wisp/blob/main/examples/results/strawberry.json">The recorded results</a> include the artifact hashes and measurements.</p><h3>A program the team can share</h3><p>We now have the weight change as a Wisp script, rather than just a description of an experiment or a modified model file.</p><p>A teammate can rerun the recipe. A reviewer can inspect the selected rows, the targets, the calculation, and the assertions. We can show a customer what we did to the weights and which behaviors we checked, alongside the resulting artifact.</p><p>The fixtures make that discussion concrete. They show the requested changes and the control outputs we preserved. They also make the limit of the result visible: we fitted these examples. Checking general counting ability would require new inputs that did not participate in the edit.</p><p>Some readers may be skeptical of this approach. I understand that: passing a few examples does not tell us what else an edit might change.</p><p>But for specific tasks, programming the weights directly feels natural to me. I can write the change, give it fixtures, and check the saved result without setting up a conventional fine-tuning loop. This example still fits weights to supplied answers; the difference is that the fitting calculation and the resulting edit are explicit in a short program.</p><p>You can find <a href="https://github.com/centillex-labs/wisp">Wisp and the runnable strawberry recipe, and other examples on the project page</a>.</p><p>What do you think? Would you use a weight-editing program with fixtures and assertions for a specific task?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe43359de914" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Couldn’t Read Modern Rust, So I Built a Go Runtime Inside It. Introducing “Goish Rust”]]></title>
            <link>https://chanwit.medium.com/i-couldnt-read-modern-rust-so-i-built-a-go-runtime-inside-it-introducing-goish-rust-05903c549481?source=rss-93f3432872cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/05903c549481</guid>
            <category><![CDATA[go]]></category>
            <category><![CDATA[rust]]></category>
            <category><![CDATA[programming-languages]]></category>
            <dc:creator><![CDATA[Chanwit Kaewkasi]]></dc:creator>
            <pubDate>Sun, 09 Aug 2026 10:59:54 GMT</pubDate>
            <atom:updated>2026-08-09T10:59:54.019Z</atom:updated>
            <content:encoded><![CDATA[<p>Over the past year, I’ve spent my free time designing a language runtime. My goal was simple: figure out how to finally learn and harness the sheer power of Rust.</p><blockquote>Note for Thai readers: มีเวอร์ชันภาษาไทยให้อ่าน <a href="https://www.linkedin.com/pulse/%E0%B8%A8%E0%B8%B2%E0%B8%AA%E0%B8%99%E0%B8%B2-rust-%E0%B8%99%E0%B8%81%E0%B8%B2%E0%B8%A2-goish-introducing-chanwit-kaewkasi-phd-y6qdc/?lipi=urn%3Ali%3Apage%3Ad_flagship3_detail_base%3B76Oy%2Bc3ARCyP1WeHAj1iqA%3D%3D">ที่นี่ครับ</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AJTgQZPjfn_62fRYkQMk9Q.png" /></figure><p>It’s not that I’ve never tried Rust before. I actually dabbled with it way back<br>around 2016. But at the time, I just didn’t feel it was necessary for my<br>day-to-day life. I was heavily invested in learning Docker and its underlying<br>components, so I poured all my energy into mastering Go instead.</p><p>I’ve been writing in that Go style ever since.</p><p>Fast forward 10 years. I decided to give Rust another shot, only to find that<br>its ecosystem has evolved dramatically and I hit several massive pain points along the way.</p><ul><li><strong>libc dependency:</strong> Some might see this as a feature, but for me, it’s a<br> hurdle. I love the friction-free cross-platform compilation of Go. (I know this can be solved with no_std, so I kept reading).</li><li><strong>The Concurrency Model:</strong> Rust relies on async/await, and I strongly dislike function coloring (I don’t even like async in TypeScript, to be honest). I know green threads are the fix for this, so I kept that in the back of my mind.</li><li><strong>Compile Times:</strong> I went to a dinner with friends recently, and we talked about Rust’s notorious compile times. You can mitigate this by reducing features to use, and honestly, the core libraries aren’t that slow. But the moment you compile something massive (like an e2e suite), it really drags.</li><li><strong>Backward Compatibility (The Non-Issue):</strong> Surprisingly, I had zero problems here. I upgraded from Rust 1.86 to 1.97, and everything compiled perfectly.</li></ul><p>This led me to a realization: <em>The problem isn’t the Rust compiler or the SDK. The problem is the Rust ecosystem.</em></p><p>When you combine all the standard practices, macros, and ecosystem layers, a modern Rust codebase becomes incredibly difficult to maintain. For me, these combined pain points culminated in one fatal flaw: I literally could not review code written in modern Rust.</p><p>But that made me pause. Ten years ago, I could read Rust just fine. Why is it so hard to understand now?</p><p>To test a theory, I wrote a Rust program using only its core features — just the borrow checker and lifecycles. Suddenly, it was perfectly readable again.</p><p>This made me think of the concept of “bad engineering” in Japanese corporate culture — over-engineering something until it becomes rigid and opaque. The core of Rust is phenomenal, but the ecosystem built on top of it was getting in my way.</p><p>So, I decided to build a library that makes Rust look and feel exactly like Go.</p><p>I bypassed the standard abstractions and wrote it to call syscalls directly. I stripped away every layer of the Rust library ecosystem except core and alloc. Then, I built things like a go! {} macro and a fmt::Printf() function.</p><p>The result? I could read it again. I could instantly understand the flow of the program.</p><p>The language itself is brilliant, but I couldn’t utilize it because of the outer<br>shell. So, I stripped it down to the core and built my own toppings.</p><h3>Enter “Goish Rust”</h3><p>Goish Rust is a completely rewritten Rust SDK, built from the ground up covering memory management, syscalls, the concurrency model, and base libraries.</p><p>The main reason I built it was that I wanted to solve my own pain points. I<br>wanted a way to leverage Rust’s legendary memory safety while easily migrating my Go codebases into the Rust ecosystem.</p><p>Now, some might argue: “We have AI now. Porting code from one language to another is incredibly easy.”</p><p>But it’s not just about making it easy; it’s about making it correct, especially when it comes to business logic. How can you be 100% sure that porting logic between two entirely different paradigms won’t introduce hidden bugs?</p><p>You have to start by porting the test cases. But how do you know the ported<br>tests are valid if they use completely different languages, libraries, and<br>paradigms? The answer is: you don’t. You just have to guess and chase down corner cases.</p><p><strong>Goish Rust solves this.</strong> I ported Go’s testing framework directly into Goish<br>Rust. Because of this, writing a test in Goish is just a dialect change; the<br>underlying semantics are exactly the same. Both human reviewers and AI agents can read it and map it 1:1 from Go.</p><p>If a test yields a different result, it means there is a bug in the Goish Rust<br>runtime, not in the business logic. I can just fix the runtime and iterate. By testing this approach with a hundred of ported Go libraries, I’m confident this is the right path for my transition to Rust.</p><h3>The Business Case for Goish Rust</h3><p>During that same dinner, I was asked another great question: “The technical pain points are obvious, but what is the business value? What does a company actually get out of this?”</p><p>If you are an organization with engineers wanting to move from Go to Rust, here is the business case for Goish Rust:</p><ol><li><strong>Talent Retention:</strong> The engineers advocating for Rust are usually your top talent — the cream of the crop. Outright rejecting Rust can demoralize them. Goish Rust acts as a safe bridge, allowing them to use Rust without the business taking on massive risk.</li><li><strong>Team Cohesion:</strong> If you let the top 10% write pure Rust, the remaining 90% of your Go developers will feel alienated, and their workload to maintain it will skyrocket. Goish Rust keeps the Go developers comfortable and productive in a Rust codebase.</li><li><strong>Risk Mitigation (The Scapegoat):</strong> If a pure Rust rewrite fails, the champion of the project takes the blame (because it’s hard to admit Rust is just difficult). If a Goish Rust project hits a snag, you can just blame my runtime! It acts as a safe scapegoat.</li><li><strong>Enhanced Security:</strong> Programs ported to Goish Rust inherit Rust’s memory safety, but they also have a different memory layout than standard Go, making them significantly harder to exploit.</li><li><strong>Reduced Attack Surface:</strong> Because Goish Rust compiles without Rust libc, the attack surface of the binary drops dramatically. This allows you to deploy ultra-secure, non-distro Docker images much safer than standard Rust.</li></ol><p>The project is currently in the testing and feedback phase, and I will be<br>open-sourcing it next week.</p><p>If your company is interested in exploring this or becoming a design partner, feel free to drop me a DM on <a href="https://linkedin.com/in/chanwit">LinkedIn</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=05903c549481" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kimi K3: Serving giant, sparse MoE models is a different problem than hosting dense ones]]></title>
            <link>https://chanwit.medium.com/kimi-k3-serving-giant-sparse-moe-models-is-a-different-problem-than-hosting-dense-ones-c52565e23675?source=rss-93f3432872cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/c52565e23675</guid>
            <category><![CDATA[kimi-k3]]></category>
            <category><![CDATA[gpu-optimization]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Chanwit Kaewkasi]]></dc:creator>
            <pubDate>Wed, 05 Aug 2026 11:16:28 GMT</pubDate>
            <atom:updated>2026-08-05T11:16:28.866Z</atom:updated>
            <content:encoded><![CDATA[<p>When <a href="https://kimi.com/blog/kimi-k3">Moonshot AI</a> released the weights for Kimi K3 last month, the hardware requirements raised a lot of eyebrows. We are talking about a 2.78-trillion parameter model with 104-billion active parameters, a 1M token context window, and native vision. You can’t just throw a few extra GPUs at a model this size and expect it to run well. You have to rethink your inference architecture entirely.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HZovtF1P4ly1jgdRgkrtoQ.png" /></figure><p>Fortunately, <a href="https://vllm.ai/blog/2026-07-27-k3">vLLM</a> shipped day-zero support for K3 using its new V1 engine. If you’re tasked with getting this massive model running in production, here is a practical look at how to actually serve it without burning through your entire cloud budget.</p><h3>Forget Throughput, Optimize for Goodput</h3><p>Before you start tweaking configuration flags, you need to track the right metric. Raw throughput is mostly vanity. What you actually care about is goodput, the number of requests per second that meet your latency SLAs, at the lowest cost, without degrading response quality.</p><p><em>If your cluster pushes 100 requests per second, but 70% of those users are staring at a blank screen because you missed your Time-To-First-Token (TTFT) threshold, your actual goodput is only 30 req/s.</em></p><p>Optimizing this is a constant balancing act between latency and throughput, and it all comes back to the roofline model:</p><ul><li><strong>Prefill maxes out compute:</strong> Processing the initial prompt uses weights efficiently across many tokens. Past about 1,000 tokens, your GPUs are running at peak compute.</li><li><strong>Decode maxes out memory bandwidth:</strong> Generating new tokens uses weights exactly once per token. Your compute cores end up sitting idle, waiting for the High Bandwidth Memory (HBM) to feed them data.</li></ul><p>Every optimization out there — chunked prefill, speculative decoding, KV caching — is essentially just a hack to cheat one side of this hardware reality.</p><h3>Why K3 is a Headache to Serve</h3><p><a href="https://arxiv.org/abs/2607.24653">Kimi K3’s architecture</a> forces you to change how you deploy. Two major shifts define how this model runs:</p><p><em>First,</em> the extreme sparsity. K3 routes tokens to 16 out of 896 experts. Because only 104B parameters are active at a time, prefill compute is surprisingly light. However, you still have to fit all 2.78T parameters into VRAM. When you shard this across multiple GPUs using Expert Parallelism (EP), decode speed doesn’t bottleneck on memory bandwidth, it bottlenecks on the all-to-all network traffic moving across your NVLink or RDMA connections.</p><p><em>Second,</em> the hybrid attention mechanism. K3 uses a mix of Kimi Delta Attention (KDA) and Gated MLA. This prevents the KV cache from exploding when you use the 1M token context window, but it completely breaks standard prefix caching. vLLM actually had to rewrite their cache manager to handle K3’s hybrid states.</p><p><em>Finally,</em> there’s the weight format. K3 natively uses MXFP4, a 4-bit floating point format optimized for Blackwell and MI355 hardware. This isn’t a nice-to-have; it’s mandatory. Even crushed down to 4-bit, the weights take up 1.56 TB. You need a minimum of one 8x B300 node, or 16x B200s, just to load the model into memory.</p><h3>The Engineer’s Optimization Guide</h3><p>Getting good performance out of <a href="https://hub.docker.com/r/vllm/vllm-openai/tags">vLLM (v0.27.0+)</a> for a model like this requires pulling three main levers.</p><h4>1. Deployment Configs</h4><p>These are the runtime flags you pass to the engine.</p><ul><li><strong>Disaggregation:</strong> If you are running at scale, separate your prefill and decode phases. Route your compute-heavy prefill nodes to your memory-heavy decode nodes over a high-speed network.</li><li><strong>Prefix Caching:</strong> If you run agentic workloads with heavy, recurring system prompts, Automatic Prefix Caching (APC) saves a massive amount of TTFT. Note: Because of K3’s hybrid cache, this is off by default. You have to pass --enable-prefix-caching manually.</li><li><strong>Load Balancing:</strong> For MoEs this sparse, you want Tensor Parallelism (TP) for low latency at a small scale, but wide Expert/Data Parallelism at a large scale. Make sure to turn on Expert-Parallel Load Balancing <br>(--enable-eplb), or hot experts will bottleneck your router.</li></ul><h4>2. Model-Level Tweaks</h4><p>When hardware configs aren’t enough, you have to manipulate the generation process itself.</p><ul><li><strong>Speculative Decoding:</strong> For K3, this is basically required. Because <strong><em>decode is memory-bound</em></strong>, you have idle compute cores. Speculative decoding uses those idle cores to guess upcoming tokens. K3 ships with a specific <a href="https://huggingface.co/Inferact/Kimi-K3-DSpark">DSpark draft model</a>. Turning this on bumps a TP16 setup from 118 tokens/sec to roughly <strong>370 tokens/sec</strong>.</li><li><strong>Reasoning Control:</strong> K3 is a thinking model, and reasoning tokens cost money. Fine-tune your prompts for conciseness or strictly control the reasoning_effort parameter. It is the easiest way to cut costs.</li></ul><h4>3. Engine Internals</h4><p>vLLM’s recent V1 architecture handles a lot of the heavy lifting automatically now. The engine core is finally decoupled from the API frontend, which kills the Python GIL overhead that used to slow things down. Chunked prefill is also on by default, meaning long prompts won’t freeze up token generation for other concurrent users.</p><h4>Rolling It Out</h4><p>If you actually need to stand up K3 in production, don’t just deploy blindly. Follow a staged approach:</p><ul><li><strong>Step 0: Do the math.</strong> Calculate your self-hosting crossover point. Measure sustained tokens per second on your specific traffic patterns. If your traffic is highly variable or low volume, just use a hosted API. Self-hosting models this big only makes financial sense if you can keep the GPUs busy.</li><li><strong>Step 1: Get a baseline.</strong> Boot the <a href="https://hub.docker.com/r/vllm/vllm-openai/tags"><strong>vllm-openai:kimi-k3</strong></a> Docker image on an 8x B300 node. Start with TP8, manually enable prefix caching, and use FP8 for the KV cache to save memory. Run vllm-bench against your actual tooling schemas to see where your latency sits.</li><li><strong>Step 2: Turn on the big levers.</strong> Once the baseline is stable, enable <strong>DSpark</strong> speculative decoding. Watch your latency metrics. If your TTFT is too slow, raise your --max-num-batched-tokens. If your inter-token latency is missing SLAs, lower it.</li><li><strong>Step 3: Scale out.</strong> When a single node caps out, move to prefill/decode disaggregation. If you are handling a lot of heavy, repetitive agent traffic, look into KV offloading tools like LMCache to push your cache out to CPU RAM or NVMe storage.</li></ul><h4>Final Thoughts</h4><p>Monolithic LLM serving is dead. To run models at the trillion-parameter scale, you have to understand exactly what your hardware is doing, from the attention backend down to the GPU interconnect topology.</p><p>The software moving these models is updating fast, and things will break. Pin your Docker tags, cache your 1.5 TB weights on local network volumes so you aren’t re-downloading them on every cold start, and keep your monitoring strictly focused on the actual user experience, not just the vanity throughput metrics.</p><p>At Cogentica.AI, we’re on a simple mission to bring frontier AI models, like Kimi K3, to your on-prem. <a href="https://linkedin.com/company/cogentica-ai">Let’s chat!</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c52565e23675" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Agents Don’t Need Smarter Retrieval. They Need a Config Database]]></title>
            <link>https://itnext.io/ai-agents-dont-need-smarter-retrieval-they-need-a-config-database-ce5bd470aee1?source=rss-93f3432872cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce5bd470aee1</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[confighub]]></category>
            <category><![CDATA[configuration-as-data]]></category>
            <dc:creator><![CDATA[Chanwit Kaewkasi]]></dc:creator>
            <pubDate>Tue, 28 Jul 2026 16:34:11 GMT</pubDate>
            <atom:updated>2026-07-29T16:10:05.456Z</atom:updated>
            <content:encoded><![CDATA[<p>Today’s AI agents are smart enough. They fail at Kubernetes chores anyway, because the answers they need are scattered across repos, templates and clusters. Give the agent a database instead of a grep target, and retrieval stops being the failure mode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3N8fJ6stuKyS7yCqAk-YPA.png" /></figure><p>Platform teams have started typing requests like this into a chat window:</p><blockquote>“Find every workload in the fleet without a CPU request, rank the worst offenders by environment, and propose a fix.”</blockquote><p>Whether that request ends well has surprisingly little to do with the model. It depends on what the agent has to retrieve from.</p><p>In <a href="https://chanwit.medium.com/querying-kubernetes-fleets-like-a-database-with-confighubs-where-data-a6ffaaa360a1">Querying Kubernetes Fleets Like a Database</a>, I showed how ConfigHub’s --where-data flag answers fleet-wide questions in one command. I wrote that article for humans. This one asks what changes when the one running the query is an AI agent.</p><p>The short answer: the pattern that works is a strict division of labor. The probabilistic component decides which question matters. A deterministic component guarantees the answer is complete and correct.</p><h4>The Failure Is Retrieval, Not Reasoning</h4><p>Point an agent at a conventional GitOps setup and the task decomposes into a chain of fragile steps. It has to find the right repositories. It has to understand each one’s templating scheme. It has to render Helm charts and Kustomize overlays with the correct values for every environment, then parse the resulting YAML. Some agents skip the rendering and regex their way through raw templates instead. And one thing is fairly certain: for now, nobody wants an AI agent scraping production clusters for those answers.</p><p>Every step is a chance to retrieve the wrong thing and reason confidently from it.</p><p>Even for teams willing to let an agent near their clusters, the mechanics are no better. Shelling into kubectl across a dozen contexts retrieves live state instead of declared intent, one cluster at a time, and it floods the context window with JSON the agent must summarize before it can think.</p><p>None of these are reasoning failures. The agent’s judgment may be fine. The stack forces it to do error-prone retrieval before judgment even starts. This is the same Visibility Gap from the previous article, with one difference: an agent cannot shrug and go ask a colleague.</p><p>Alexis Richardson’s <a href="https://confighub.com/blog/gitops-in-the-age-of-ai-c73d0bd506ba">GitOps in the age of AI</a> series opens with exactly this failure: an agent raises one Helm memory value, every GitOps principle holds, and the fleet still breaks.</p><h4>A Query Surface Instead of a Grep Target</h4><p>ConfigHub stores fully rendered configuration for every environment in one database, so the retrieval chain collapses to a single query. Three design choices matter for agents.</p><p><strong>The agent asks; the database answers.</strong> The open source <a href="https://github.com/confighub/confighub-skills">confighub-skills</a> plugin ships a cub-query skill that teaches Claude Code, or any agent that reads <a href="https://www.anthropic.com/news/skills">Agent Skills</a>, ConfigHub’s query surface. Handed the request at the top of this article, the agent loads the skill and runs the same command a human would type:</p><pre>cub unit list --space &quot;*&quot; \<br>  --resource-type apps/v1/Deployment \<br>  --where-data &quot;spec.template.spec.containers.*.|resources.requests.cpu = &#39;&#39;&quot;</pre><p>No cloning, no rendering, no YAML parsing. The response is structured data describing exactly the matching units. The split-path edge case from the previous article, catching containers with no resources block at all, works identically here, so the agent’s compliance answer has the same correctness properties as the human’s.</p><p>Nothing about the query language is tribal knowledge, either. The skill carries the translation from workload-speak (“our frontend in us-east”) into spaces, slugs and labels, and cub function explain plus the CLI’s own help expose every field, type and operator. The agent learns the syntax the way it learns everything else: by reading structured descriptions.</p><p><strong>Read-only is enforced, not requested.</strong> Everything above is investigation, and the skill’s allowed-tools manifest turns that into a mechanical guarantee. It permits only the read verbs: get, list, diff, tree and the read-only inspection commands. No mutation verb is in the list. An agent running under it can explore the fleet as aggressively as it likes and cannot change anything, which is the posture you want while the agent is still forming a hypothesis.</p><p><strong>The agent’s questions become artifacts.</strong> When the agent lands on a useful query, it can save the predicate as a Filter, a named entity a human can review, reuse and later attach to policy. The audit trail covers not just what the agent changed, but what it asked.</p><h4>When Retrieval Is Exact, Mistakes Become Reviewable</h4><p>The division of labor pays off in how failures present. The agent decides which question matters: missing CPU requests, worst in production first. The database guarantees the answer set is complete, including the absent-field cases that regex retrieval silently drops.</p><p>An agent’s mistakes then become disagreements about judgment, which humans can review. They stop being silent errors of fact, which nobody catches until an incident does.</p><h4>The Read-Only Half of the Job</h4><p>Agents do not need a smarter way to grep rendered YAML out of pipelines. They need the rendering to have already happened, the results to sit still and the query language to be discoverable. None of that is an AI feature bolted onto ConfigHub. It is what Configuration as Data was always shaped like, and what Alexis’ Generative GitOps principles call <a href="https://confighub.com/blog/gitops-in-the-age-of-ai-2-48e13026f434">held as data, not files</a>. The agent is just the newest client of the same database.</p><p>Finding problems, though, is only half the request. The prompt at the top of this article said “propose a fix.” The moment an agent starts writing configuration, the questions change: what stops it from shipping something bad? <a href="https://confighub.com/blog/gitops-in-the-age-of-ai-4-977d800175f4">Part 4 of the GitOps AI series</a> already states the rule: whether a change succeeded is decided by evidence from the running systems, not by the agent that made it. The mechanics are the next article: agents, triggers, and the gates that make agent-written changes safe.</p><h4>Explore Further</h4><ul><li><a href="https://github.com/confighub/confighub-skills">confighub-skills — agent skills for ConfigHub</a> (install as a Claude Code plugin)</li><li><a href="https://hub.confighub.com/">Get started with ConfigHub</a></li><li>Previous article: <a href="https://chanwit.medium.com/querying-kubernetes-fleets-like-a-database-with-confighubs-where-data-a6ffaaa360a1">Querying Kubernetes Fleets Like a Database</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce5bd470aee1" width="1" height="1" alt=""><hr><p><a href="https://itnext.io/ai-agents-dont-need-smarter-retrieval-they-need-a-config-database-ce5bd470aee1">AI Agents Don’t Need Smarter Retrieval. They Need a Config Database</a> was originally published in <a href="https://itnext.io">ITNEXT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Querying Kubernetes Fleets Like a Database with ConfigHub’s where-data]]></title>
            <link>https://itnext.io/querying-kubernetes-fleets-like-a-database-with-confighubs-where-data-a6ffaaa360a1?source=rss-93f3432872cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6ffaaa360a1</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[confighub]]></category>
            <category><![CDATA[config-as-data]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Chanwit Kaewkasi]]></dc:creator>
            <pubDate>Wed, 22 Jul 2026 18:26:56 GMT</pubDate>
            <atom:updated>2026-07-22T20:22:37.813Z</atom:updated>
            <content:encoded><![CDATA[<p><em>By treating fully rendered Kubernetes configuration as queryable data, platform engineering teams can achieve fleet-wide visibility and automate compliance without complex scripting.</em></p><p>In my previous articles, I showed several Config-as-Data example apps built on <a href="https://hub.confighub.com">ConfigHub</a>, from <a href="https://chanwit.medium.com/cost-as-data-a-fleet-cost-estimator-on-confighub-69a57069d18b">a fleet cost estimator</a> to <a href="https://chanwit.medium.com/i-need-a-cve-tool-it-took-me-much-less-effort-to-build-correctly-6a741dab0e06">a CVE scanner</a>. They all rely on one capability: querying your configuration as data.</p><p>Also, in a previous exploration of <a href="https://itnext.io/helm-charts-meet-configuration-as-data-the-confighubs-approach-6a6236a040f1">how Helm charts meet Configuration as Data</a>, we examined how rendering Helm outputs directly into ConfigHub transforms configuration into a first-class data asset. The natural follow-up question for platform engineers is: <em>Once configuration is stored in a database, what is the practical operational value?</em></p><p>The short answer is same, <em>an ability to query</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mTPTmo70ePa19I_ZG9k8rw.png" /></figure><p>This article explores --where-data, a ConfigHub feature designed by our CTO <a href="https://www.linkedin.com/in/bgrant0607/">Brian Grant</a>, that enables teams to query <em>inside</em> their configuration. Rather than filtering on external metadata, --where-data lets you interrogate the actual fields of the Kubernetes manifests you intend to deploy. It provides a direct solution to the “Visibility Gap” previously discussed in my <a href="https://itnext.io/multi-environment-helm-mastering-variants-with-confighub-fa2c29a21b8b">Variants architecture breakdown</a>.</p><h3>The Visibility Gap in GitOps Stacks</h3><p>When tasked with finding missing resource requests across a fleet, engineers typically attempt two approaches, both of which fall short:</p><p><strong>1. Grepping the Git Repository</strong><br>The specific values you are looking for often do not exist in Git. They emerge only <em>after</em> rendering — after Helm substitutes variables, Kustomize applies patches, and CI pipelines stitch overlays together. Running grep -r &quot;cpu:&quot; . across a repository yields template placeholders, not deployed reality. You are searching the recipe, not the final state.</p><p><strong>2. Querying Live Cluster State</strong><br>Put Git repos aside, you could use kubectl or runtime auditing tools to retrieve live state. But they typically operate on a per-cluster, per-context basis. More importantly, live state dictates what is running <em>now</em>, not what is declared as intended state. Running fleet-wide audits via Kubernetes APIs usually requires writing custom scripts to loop through dozens of kubeconfig files and merge JSON outputs manually.</p><p>Both approaches fail for the same underlying reason: <strong><em>in traditional GitOps pipelines, fully rendered configuration only exists ephemerally inside CI on its way to a cluster.</em></strong> You cannot easily query what doesn’t sit still.</p><p>ConfigHub’s architecture resolves this by making rendered configuration persistent. Every “Unit” (a deployable configuration package) stores literal, fully materialized configuration in a database. And data in a database can be queried at scale.</p><h3>Fleet-Wide Queries in a Single Command</h3><p>If you remember my Cost Estimator app, here is a similar example on how the cost-review question is answered in ConfigHub.</p><pre># Identify every unit, in every space, where a container sets a CPU request<br>cub unit list --space &quot;*&quot; \<br>  --resource-type apps/v1/Deployment \<br>  --where-data &quot;spec.template.spec.containers.*.resources.requests.|cpu != &#39;&#39;&quot;</pre><p>Three mechanisms are at work in this single command:</p><ol><li><strong>--space &quot;*&quot;</strong>: Executes the query across the entire accessible fleet—dev, staging, production, across all regions.</li><li><strong>--resource-type apps/v1/Deployment</strong>: Narrows the scan strictly to workloads containing pod templates, filtering out irrelevant objects like ConfigMaps or Secrets.</li><li><strong>--where-data</strong>: Acts as the predicate, evaluated directly against the stored JSON/YAML payload of each unit.</li></ol><p>The path expression follows the YAML structure: it descends to containers, fans out over every array element using *, and checks resources.requests.cpu.</p><p>The seemingly odd .| syntax in the path above is not a typo. It is the <strong>split-path operator</strong>, an essential feature for running accurate compliance queries against real-world fleets.</p><p>The | character divides the path logically: everything to the <em>left</em> must exist for a resource to be considered, while everything to the <em>right</em> is allowed to be absent. Missing fields do not cause the match to fail; they actively participate in it.</p><p>This difference is important. A cost review doesn’t look for workloads that have CPU requests; it looks for the ones that do not:</p><pre># Identify every Deployment where a container has NO CPU request,<br># including containers missing the &#39;resources&#39; block entirely.<br>cub unit list --space &quot;*&quot; \<br>  --resource-type apps/v1/Deployment \<br>  --where-data &quot;spec.template.spec.containers.*.|resources.requests.cpu = &#39;&#39;&quot;</pre><p>By moving the split earlier in the path (... containers.*.|resources), the entire resources subtree becomes optional. If a container lacks a resources block entirely, it still evaluates to a match, which is precisely the workload you are hunting.</p><p>Without this absence-tolerant matching, a naive JSONPath query would silently drop containers missing the field, leading to false-positive “green” compliance reports simply because the worst offenders failed to resolve in the query.</p><p>This same logic applies natively to security audits:</p><pre># Identify template spec missing runAsNonRoot, including those with no securityContext<br>--where-data &quot;spec.template.spec.|securityContext.runAsNonRoot != true&quot;<br></pre><h3>Unifying Metadata and Content Data Queries</h3><p>ConfigHub allows platform engineers to use --where-data (content data filtering) in conjunction with --where (metadata filtering—such as labels, gates, or timestamps). These also can be combined into a single clause using the Data. prefix:</p><pre># Find &#39;Backend&#39; units whose deployments run more than one replica<br>cub unit list \<br>  --space &quot;*&quot; \<br>  --where &quot;Labels.Tier = &#39;Backend&#39; AND Data.spec.replicas &gt; 1&quot;</pre><p>ConfigHub handles this combination seamlessly. You do not need to worry about the difference between querying metadata and querying configuration content; you simply ask the question, and the platform delivers the unified results.</p><h3>From Visibility to Action: Bulk Configuration Mutation</h3><p>Configuration as Data doesn’t just show you the fleet, it also lets you change it. It also does not make sense to make change one-by-one. In ConfigHub, the same predicate used to filter a list can be used to scope a <strong>bulk operation. </strong>(The below example is a bulk function invocation operation)</p><pre># Preview: apply a baseline resource request to every under-specified container<br>cub function set \<br>  --space &quot;*&quot; \<br>  --where-data &quot;spec.template.spec.containers.*.|resources.requests.cpu = &#39;&#39;&quot; \<br>  --dry-run -o mutations \<br>  set-container-resources<br>  -- requests --cpu 100m --memory 128Mi</pre><p>Running this with --dry-run -o mutations generates a precise, color-coded, per-unit diff detailing exactly what will change across the fleet. The entire workflow—query, select, preview, and mutate—operates on a single, unified predicate.</p><p>Applying automated, fleet-wide mutations naturally raises concerns about breaking production. This is where ConfigHub’s governance model steps in. Mutations generate new revisions, and revisions must pass predefined Apply Gates and approvals before they can touch a live cluster.</p><p>Furthermore, once a query proves its operational value, it can be saved as a <strong>Filter</strong> — a named, shareable entity that can drive UI Views or scope deployment Triggers.</p><p>Yesterday’s ad-hoc FinOps audit becomes today’s automated standing policy.</p><h3>Summary</h3><p>When we are saying “Configuration as Data”, it is frequently misunderstood as simply a storage debate (putting YAML in a database instead of Git). However, storage is just the prerequisite. The true value lies in what that storage unlocks: <strong>rendered configuration that remains persistent long enough to be interrogated and acted upon.</strong></p><p>Features like --where-data convert multi-day compliance scripting tasks involving dozens of kubeconfigs into a single CLI command, handling edge cases like missing fields natively, and keeping the remediation just one --dry-run away.</p><h4><strong>Key usages</strong></h4><ul><li><strong>Query the fields, not just metadata.</strong> --where-data matches against the rendered YAML itself — walk the path (spec.template.spec.containers), fan out over array elements with *, and test a field like resources.requests.cpu.</li><li><strong>Use the split-path </strong><strong>| to catch what’s missing.</strong> Everything left of | must exist; everything right is allowed to be absent. So Pod template&#39;s containers.*.|resources.requests.cpu = &#39;&#39; finds containers with no CPU request at all — the offenders a plain path would silently skip.</li><li><strong>Scope it across the whole fleet.</strong> Pair it with--space &#39;*&#39; and--resource-type apps/v1/Deployment to run one predicate over every environment at once, and blend in metadata with the Data prefix --where &#39;... AND Data.spec.replicas &gt; 1&#39;.</li><li><strong>Turn the query into the fix.</strong> The same clause scopes a bulk mutation — cub function set set-container-resources --where-data &#39;...&#39; --dry-run -o mutations previews exactly what changes everywhere it applies, before anything is released.</li></ul><h3>Explore Further</h3><ul><li><a href="https://docs.confighub.com/background/concepts/filters/">ConfigHub Documentation: Filters and Queries</a></li><li>Filters and Views <a href="https://docs.confighub.com/guide/filters-and-views/">https://docs.confighub.com/guide/filters-and-views/</a></li><li>Filter Entity <a href="https://docs.confighub.com/background/entities/filter/">https://docs.confighub.com/background/entities/filter/</a></li><li><a href="https://hub.confighub.com/">Get started with ConfigHub</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6ffaaa360a1" width="1" height="1" alt=""><hr><p><a href="https://itnext.io/querying-kubernetes-fleets-like-a-database-with-confighubs-where-data-a6ffaaa360a1">Querying Kubernetes Fleets Like a Database with ConfigHub’s where-data</a> was originally published in <a href="https://itnext.io">ITNEXT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Argo CD App-of-apps and Configuration as Data]]></title>
            <link>https://itnext.io/argo-cd-app-of-apps-and-configuration-as-data-81930902f4d5?source=rss-93f3432872cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/81930902f4d5</guid>
            <category><![CDATA[configuration-as-data]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[confighub]]></category>
            <category><![CDATA[argo-cd]]></category>
            <dc:creator><![CDATA[Chanwit Kaewkasi]]></dc:creator>
            <pubDate>Wed, 15 Jul 2026 17:16:10 GMT</pubDate>
            <atom:updated>2026-07-15T17:22:04.332Z</atom:updated>
            <content:encoded><![CDATA[<p>App-of-Apps is how a lot of teams run many Argo CD applications from one place — but what it does, and how it looks, changes once the configuration is stored as data. Everything below comes from a working setup: a kind cluster running Argo CD, a root Application that pulls an app-of-apps unit from ConfigHub over OCI, three child Applications under it, and a guestbook workload deployed to a per-environment <strong>vcluster</strong> from its own Space.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PH_ixYHYFca8Q8JrILP-AA.png" /></figure><p>If you run Argo CD past a handful of applications, you’ve probably built an app-of-apps. You create a root Application whose source is a directory of more Application manifests, and those point at the real workloads. It’s a reasonable way to bootstrap a cluster, or a set of clusters, from one place. When the directory got large, you may have switched to ApplicationSets and let a generator produce the child Application objects instead of maintaining them by hand.</p><p>I’m not writing this to argue against the pattern. It solves a real problem. But it’s worth looking at why you end up reaching for it, because the reasons line up almost exactly with the capabilities we’ve been building into <a href="https://hub.confighub.com">ConfigHub</a>: querying configuration across a fleet, propagating values between related pieces, and checking and gating changes before they’re applied.</p><h3>What you’re actually asking app-of-apps to do</h3><p>Once you have more than a few applications, you stop caring about them one at a time and start needing to operate on the group. Concretely, that means:</p><ul><li>Seeing all the apps in a set together, not app by app.</li><li>Sharing values across them — the destination cluster and namespace, the registry, a region, a common set of labels or policy resources — without restating those values in every child.</li><li>Expressing ordering and dependencies between them, and deciding what happens to the children when the root changes or is deleted.</li><li>Having one place to bootstrap and review the whole thing.</li></ul><p>App-of-apps gives you a way to do each of these on top of Git. Grouping becomes a directory. Shared values get duplicated across the children, or threaded through an ApplicationSet generator. Ordering becomes sync-wave annotations. The single place to review is the root Application.</p><p>People reach for app-of-apps when the apps are heterogeneous and <em>sometimes there are thousands of them</em>. With the Git version, changing one of those apps means the usual commit, push, and review, even when you only wanted to find it and edit a value. In a real setup the manifests for each environment often live in separate repos, so there’s no single place to see or manage them.</p><p>In ConfigHub the apps are stored as data you can query across Spaces, which makes them easier to find and change.</p><h3>The same app-of-apps, backed by data</h3><p>To make this concrete, here’s the setup I ran. Four Spaces in ConfigHub:</p><ul><li>guestbook-aoa holds two Units: root (the root Application CR) and app-of-apps (the three child Applications).</li><li>guestbook-dev, guestbook-staging, and guestbook-prod each hold one guestbook Unit — the actual workload, a Deployment and a Service. All of them are <a href="https://docs.confighub.com/background/concepts/variant/">Variants</a> of the guestbook-base Space.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5IHPL7-JkPqYsd39EORV-A.png" /><figcaption>Component View in ConfigHub. Each box (a Component) represents a Space that goes to each environment, dev, staging, prod, respectively.</figcaption></figure><p>The shape of the pattern is unchanged. What’s different is where the manifests live: instead of a Git directory, each piece is a Unit that Argo pulls over OCI. The root Application points at the OCI address of the app-of-apps unit:</p><pre>apiVersion: argoproj.io/v1alpha1<br>kind: Application<br>metadata:<br>  name: root<br>  namespace: argocd<br>spec:<br>  project: default<br>  source:<br>    repoURL: oci://oci.hub.confighub.com/unit/guestbook-aoa/app-of-apps<br>    targetRevision: latest<br>    path: &quot;.&quot;<br>  destination:<br>    server: https://kubernetes.default.svc<br>    namespace: argocd<br>  syncPolicy:<br>    automated: { prune: true, selfHeal: true }</pre><p>And the app-of-apps unit contains the three children, each pointing at the guestbook unit in its environment’s Space and at its own cluster:</p><pre>apiVersion: argoproj.io/v1alpha1<br>kind: Application<br>metadata:<br>  name: guestbook-dev<br>  namespace: argocd<br>spec:<br>  project: default<br>  source:<br>    repoURL: oci://oci.hub.confighub.com/unit/guestbook-dev/guestbook<br>    targetRevision: latest<br>    path: &quot;.&quot;<br>  destination:<br>    name: dev-cluster<br>    namespace: guestbook<br>  syncPolicy:<br>    automated: { prune: true, selfHeal: true }<br>    syncOptions:<br>      - CreateNamespace=true<br>---<br># Two other Applications here<br># ... guestbook-staging -&gt; staging-cluster, guestbook-prod -&gt; prod-cluster</pre><p>Creating the units is two commands:</p><pre>cub unit create --space guestbook-aoa app-of-apps app-of-apps.yaml<br>cub unit create --space guestbook-aoa root root.yaml</pre><p>Argo CD doesn’t know or care that the source is ConfigHub rather than Git — it sees an OCI repo. Which means the app-of-apps mechanics all still work: root syncs, children appear, children sync, workloads deploy. The difference is what you can do with the configuration before and around that sync loop.</p><h3>Keeping the two systems readable together</h3><p>ConfigHub and Argo CD name different things, and a single change flows through both, so it’s worth being deliberate about how the names line up. The convention I settled on: <strong>a Space’s OCI worker and target are named after the Argo CD cluster that Space’s config is deployed to.</strong> Term by term:</p><ul><li>A <strong>Space</strong> (a bucket of Units, one per environment) maps to an environment, or a set of Applications — here guestbook-dev, guestbook-staging, guestbook-prod, and guestbook-aoa.</li><li>A <strong>Unit</strong> (versioned KRM config data) is the manifests an Application syncs (its spec.source) — the guestbook Unit becomes the guestbook-dev Application’s source.</li><li>The app-of-apps Unit is the directory of child Applications, fanning out to three; the root Unit is the root Application CR, the one you bootstrap.</li><li>A <strong>Worker</strong> plus <strong>Target</strong> (OCI) has no Argo counterpart — it’s ConfigHub’s publishing mechanism — and I name them after the destination cluster: dev-cluster, staging-cluster, prod-cluster, in-cluster.</li><li>A Unit’s OCI address oci://…/unit/&lt;space&gt;/&lt;unit&gt; is the Application’s spec.source.repoURL, the pull source.</li><li>The live <strong>Cluster</strong>, registered in Argo and addressed by name, must equal the child’s destination.name.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zdy8znxJww5JthkRpvbIqA.png" /><figcaption>Cluster definitions in ArgoCD whose names match those of Targets.</figcaption></figure><p>So guestbook-dev’s target is dev-cluster, which is also the child Application’s destination.name and the cluster registered in Argo CD — followed end to end. The guestbook-aoa Space deploys to the host cluster Argo CD itself runs in, so its target is in-cluster, Argo CD’s own name for that cluster. Targets have no Argo CD equivalent — which is why naming them after the destination cluster is what ties the two systems together at a glance.</p><h3>The set of apps, as a query</h3><p>With the units published, looking at the set of apps is a query over data that already exists:</p><pre>$ cub unit list --space &quot;guestbook-*&quot; --where &quot;Labels.Component = &#39;guestbook&#39;&quot;<br>SPACE              UNIT          TYPE                 GATED  UNAPPLIED<br>guestbook-dev      guestbook-ui  apps/v1/Deployment   no     no<br>guestbook-staging  guestbook-ui  apps/v1/Deployment   no     no<br>guestbook-prod     guestbook-ui  apps/v1/Deployment   yes    yes</pre><p>Nothing generates that list. The Units are the data, and the set is a where clause over them. Each Unit is materialized — plain YAML with real values, no templates — and it’s exactly what Argo pulls and syncs:</p><pre>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: guestbook-ui<br>spec:<br>  replicas: 2<br>  revisionHistoryLimit: 3<br>  selector:<br>    matchLabels:<br>      app: guestbook-ui<br>  template:<br>    metadata:<br>      labels:<br>        app: guestbook-ui<br>    spec:<br>      containers:<br>      - image: gcr.io/google-samples/gb-frontend:v5<br>        name: guestbook-ui<br>        ports:<br>        - containerPort: 80<br>---<br>apiVersion: v1<br>kind: Service<br>metadata:<br>  name: guestbook-ui<br>spec:<br>  ports:<br>  - port: 80<br>    targetPort: 80<br>  selector:<br>    app: guestbook-ui</pre><p>Most of what follows comes down to that difference: the thing you query and change is the same thing that gets deployed.</p><h3>Checking changes before they’re applied</h3><p>This is the capability I’d miss most going back to a plain app-of-apps. Normally a bad child config syncs and the violation turns up afterward, in the cluster, if an admission controller or a scan catches it at all. Catching it earlier means rendering every child in CI and running your checks there, which brings back the per-repo commit, push, and render steps.</p><p>In ConfigHub, we have a concept called Triggers, and validation and policy tools like Kyverno, OPA Gatekeeper, Kubescape, and others can all be built as Triggers. They run on every change to the configuration data, before it’s released. When a check fails, the trigger attaches an Apply Gate, or a warning if you’d rather not block. Across the same set of apps:</p><pre>$ cub unit list --space &quot;guestbook-*&quot; --where &quot;GatedCount &gt; 0&quot;<br>SPACE           UNIT          GATE          REASON<br>guestbook-prod  guestbook-ui  no-critical   container &#39;guestbook-ui&#39; runs as root (PodSecurity restricted)</pre><p>The check runs when the data changes, not when Argo decides to sync it. In the setup above, a gated guestbook-prod unit simply never gets a new latest published to oci://…/unit/guestbook-prod/guestbook, so Argo keeps syncing the last good version — the gate blocks release regardless of whether the change came from a person, from CI, or from an agent.</p><h3>Seeing what a change affects</h3><p>A template-based app-of-apps can only show you the source you edited, not the set of live configs it expands to. Because ConfigHub stores the materialized data along with the upstream and downstream relationships between Units, you can look at what a change reaches before releasing it:</p><pre>$ cub unit tree --node guestbook-base --downstream<br>guestbook-base<br>|- guestbook-dev/guestbook-ui<br>|- guestbook-staging/guestbook-ui<br>`- guestbook-prod/guestbook-ui   [gated]</pre><p>That’s a review an app-of-apps doesn’t give you: not the template you changed, but the live targets it expands to and which of them is currently blocked.</p><h3>Bootstrapping</h3><p>The one place a Git-based app-of-apps and this setup look identical is the very first step: something has to put the root Application into the cluster. Here it’s one line, straight from ConfigHub:</p><pre>cub unit data --space guestbook-aoa root | kubectl apply -f -<br>kubectl get applications -n argocd</pre><p>Argo CD takes over from there: it pulls app-of-apps over OCI, creates the three child Applications, each pulls its guestbook unit and deploys into its vcluster, creating the guestbook namespace on the way. End state:</p><pre>NAME                SYNC STATUS   HEALTH STATUS<br>root                Synced        Healthy<br>guestbook-dev       Synced        Healthy<br>guestbook-staging   Synced        Healthy<br>guestbook-prod      Synced        Healthy</pre><h3>Wrapping up</h3><p>App-of-apps is a sensible way to get grouping, shared values, dependencies, and a single point of control out of Git and templates, which weren’t built to provide them. What the setup above shows is that you don’t have to choose between the pattern and Configuration as Data: the root, the fan-out, and the children all still work when Argo CD pulls them from ConfigHub over OCI. The things app-of-apps makes awkward — sharing a value without duplicating it, checking the whole set before it syncs, turning on a policy everywhere, seeing what a change affects — are the things you get directly when the configuration behind those Applications is stored as data with relationships between the pieces.</p><p>If you already run an app-of-apps, the shared values and the fleet-wide policy rollout are the two things I’d try moving into ConfigHub first. You can do it for a single set of apps without touching the rest — the setup above is one root and three children on a laptop-sized kind cluster — which makes it easy to compare against what you have now.</p><p>ConfigHub is in preview — <a href="https://auth.confighub.com/sign-up">you can try it here</a>. If you do, I’d like to hear how it lines up with your current Argo CD setup; you can find me on <a href="https://www.linkedin.com/in/chanwit">LinkedIn</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81930902f4d5" width="1" height="1" alt=""><hr><p><a href="https://itnext.io/argo-cd-app-of-apps-and-configuration-as-data-81930902f4d5">Argo CD App-of-apps and Configuration as Data</a> was originally published in <a href="https://itnext.io">ITNEXT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cost as Data: a fleet cost estimator on ConfigHub]]></title>
            <link>https://itnext.io/cost-as-data-a-fleet-cost-estimator-on-confighub-69a57069d18b?source=rss-93f3432872cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/69a57069d18b</guid>
            <category><![CDATA[cost-estimation]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[configuration-as-data]]></category>
            <category><![CDATA[confighub]]></category>
            <dc:creator><![CDATA[Chanwit Kaewkasi]]></dc:creator>
            <pubDate>Wed, 01 Jul 2026 14:08:06 GMT</pubDate>
            <atom:updated>2026-07-03T07:27:57.775Z</atom:updated>
            <content:encoded><![CDATA[<p>Last time I built <a href="https://itnext.io/i-need-a-cve-tool-it-took-me-much-less-effort-to-build-correctly-6a741dab0e06">a container vulnerability scanner</a> on <a href="https://hub.confighub.com/">ConfigHub</a> by domain-swapping <a href="https://itnext.io/there-should-be-an-app-for-that-1f4d23286a9e">Brian Grant’s RBAC Manager</a>. This post does it again, but the swap is off the <em>scanner</em> this time. I built a <a href="https://github.com/confighub/examples">Cost Estimator</a>, and most of what made the CVE tool was already the right shape. I kept the shape and changed the meaning.</p><p>For most of the build, that’s what it was. The cost database dropped in where the CVE database had been. The estimator dropped in where the scanner had been. The gate that used to block a CRITICAL image now blocks an over-budget workload instead.</p><h4>Cost estimation use case</h4><p>This time, the ask was simple to state:</p><blockquote>“Show me what every workload costs, across every cluster, and block the ones that blow their budget from shipping.”</blockquote><p>This time the approach is different, because a CVE is a fact and a cost is a function.</p><p>I’d like to repeat about this a bit: on ConfigHub, the inventory, the state, the validator, and the API are already done — the same way they were done for the scanner. What’s left is the part specific to cost, and cost is where it diverges. There’s no “the cost” sitting in the image or the registry to go fetch. A cost is a function of the Unit’s own fields: the CPU and memory each container requests, times the replica count, times a rate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CHD6fsVTxOKPdQMS-k18hQ.png" /><figcaption>A ConfigHub app that prices a whole cluster fleet and gates the over-budget changes before they ship</figcaption></figure><p>A cost is continuous, predictable, and diffable. You can compute the cost of a config that hasn’t been applied yet. And if you can price one version of a config, you can put an exact number on a change.</p><p>We use the same query pattern to pull the resource requests we want to compute cost from:</p><pre># every workload that declares resource requests, fleet-wide<br>cub unit list --space &quot;*&quot; \<br>--where-data &quot;spec.template.spec.containers.*.resources.requests.|cpu != &#39;&#39;&quot;</pre><p>“Stop the over-budget ones from shipping” is the same story as the scanner: a <strong>Trigger</strong> attaches an <strong>Apply Gate</strong> when a Unit’s data fails a check. And “where do we store the estimate?” has the same answer the scan result did: on the Unit, as data.</p><p>You might be wondering why don’t we just use Git. Read <a href="https://www.linkedin.com/in/jesperfj">Jesper</a>’s article on this to understand more on the reason why <a href="https://medium.com/@jesperfj/git-is-not-great-for-deployment-configuration-b1bbad7a5428">Git is not great for being config storage</a>.</p><p>That’s the Config-as-Data idea again. When config, policy, and the verdict are all data, the tool needs no backend of its own. It’s a view over ConfigHub plus some domain logic — here, a price book and a cost model.</p><p>The estimator reads a workload’s requests and multiplies through — replicas, storage from the volume claims, load balancers counted off a <strong>Service</strong> of type <strong>LoadBalancer</strong> — then writes a budget verdict back onto the Unit. The signal the gate reads, budget-status, stays a flat OK/WARN/OVER annotation so the Trigger can match it as a plain string.</p><p>Everything else — the line items, a spot what-if, provenance, the diff — rides along in one base64 estimate blob. A within-budget Trigger gates anything marked OVER — and it catches it about as far left as a check can run, before the Unit ever reaches a cluster, because the gate is a check on data, not an admission controller.</p><p>We didn’t reinvent cloud pricing; we modeled it on the real thing. The cost DB is a single SQLite file with a schema shaped after <a href="https://opencost.io/docs/specification)/KubeCost">OpenCost</a>’s CustomPricing: per-{provider, region, resource} rates for CPU, RAM, GPU and storage, on-demand and spot, plus network-egress and load-balancer rates, an instance catalog for marginal-rate node normalization, and the per-environment budgets the guardrail gates on.</p><p>Because the estimate is computed from config, and config is versioned, you can ask what a workload costs and, just as easily, what a <strong>change</strong> to it would cost.</p><p>That’s <strong>the shift-left idea</strong> behind <a href="https://www.infracost.io/">Infracost</a> on a Terraform pull request, or kubectl cost predict on a spec. The difference is that those tools have to manufacture a baseline to diff against: Infracost stashes a JSON snapshot of main, and KubeCost reads the cloud bill after the money is spent. On ConfigHub the baseline isn’t manufactured, because the previous revision is the baseline. Config, estimate, and verdict are the same versioned object, so the diff is exact and lands before apply. Re-cost the previous revision and subtract.</p><h4>Benefit of storing rendered configs</h4><p>This is also where it parts ways with the config-as-code formats — Helm, Kustomize, cdk8s, CUE. None of them keep the rendered config anywhere; the YAML exists for about as long as it takes to pipe it at a cluster. So an analysis like this has to pick one of two shapes:</p><ol><li>Render one app at a time in CI, on the change, and feed the output to the tool — you get the pre-apply number, but no fleet-wide view, or</li><li>Read the live clusters — you get the fleet-wide view, but only after the config is running, never before.</li></ol><p>You can do both, but that’s two pipelines and the work to join them. ConfigHub stores the rendered config as versioned data, so one query answers both questions:</p><ul><li>what the whole fleet costs now, and</li><li>what a not-yet-applied change would cost,</li></ul><p>without rendering anything or scraping a cluster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B0ZGBIXJsETnfKhdRZ6pcw.png" /><figcaption>Each revision keeps its cost estimation as a base64-encoded blob annotation.</figcaption></figure><h4>ConfigHub SDK is extensible</h4><p>One thing we changed on purpose: the client. <a href="https://github.com/confighub/sdk/tree/main/core/openapi">ConfigHub’s SDK ships the OpenAPI spec</a>, so the API client isn’t something you have to inherit — you generate it from the spec, in whatever shape suits the tool. The scanner and the RBAC manager generated an RTK-Query client and leaned on a Redux store because it focused on UI display. The estimator is mostly reads with a handful of writes, so we generated a smaller openapi-fetch client from the same spec: fewer moving parts, still fully typed against the contract. Same endpoints, same types, same auth, different client. When the platform hands you a spec instead of one blessed SDK, you build the surface your tool actually needs.</p><h4>Takeaway</h4><p>With AI coding agents, the bigger point I want to emphasize here is that ConfigHub is a platform you can build on easily and quickly. Standing up an internal tool like this is genuinely easy now — <strong>but only if the layer underneath is right</strong>. What you need is a config store that’s versioned and exposes a real API. That’s what <a href="https://docs.confighub.com"><strong>ConfigHub</strong></a> is.</p><p>So build apps. Point your favorite AI agent at the ConfigHub SDK and examples, and see what falls out. Try <a href="https://docs.confighub.com">ConfigHub</a>, and see how it could transform the way you build your next internal platform tools.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69a57069d18b" width="1" height="1" alt=""><hr><p><a href="https://itnext.io/cost-as-data-a-fleet-cost-estimator-on-confighub-69a57069d18b">Cost as Data: a fleet cost estimator on ConfigHub</a> was originally published in <a href="https://itnext.io">ITNEXT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I need a CVE tool, it took me much less effort to build correctly]]></title>
            <link>https://itnext.io/i-need-a-cve-tool-it-took-me-much-less-effort-to-build-correctly-6a741dab0e06?source=rss-93f3432872cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a741dab0e06</guid>
            <category><![CDATA[cve]]></category>
            <category><![CDATA[configuration-as-data]]></category>
            <category><![CDATA[confighub]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Chanwit Kaewkasi]]></dc:creator>
            <pubDate>Wed, 24 Jun 2026 14:51:37 GMT</pubDate>
            <atom:updated>2026-06-24T16:26:29.390Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’re following <a href="https://medium.com/@bgrant0607/list/kubernetes-8b0b8930195b">Brian Grant’s blog post series</a>, his recent one was about <a href="https://medium.com/itnext/there-should-be-an-app-for-that-1f4d23286a9e">building an RBAC manager on top of ConfigHub</a>. This post builds a different tool — a container vulnerability scanner with a Web console on the same foundation, and reuses most of his RBAC manager to do it. The tool answers a common requirement.</p><p>“Show me every image we run, <strong>across every cluster</strong>, and tell me which ones have known CVEs. And stop the bad ones from shipping.”</p><p>Normally, that’s a scanner, a database, a service to glue them together, a UI, auth, a validation layer.</p><p>On <a href="https://hub.confighub.com">ConfigHub</a>, the work that usually dominates a tool like this — inventory, state, validator, the API — was already done. What was left was the part specific to CVEs. Once you’ve built one app on ConfigHub, the next is mostly a domain swap. Yup, we now have Brian’s RBAC Manager to copy :-) This post shows where the swap happens to it to build a CVE tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SV58oBZu82Nqv69nDAnrdg.png" /><figcaption>A tool that is simple to build but can scan a whole cluster fleet for CVEs</figcaption></figure><p>Let me show you what that means.</p><h4>Configuration as Data makes new kinds of config tools feasible</h4><p>ConfigHub’s core is to treat configuration as <em>data</em>, not as templates in a<br>Git tree. A Kubernetes Deployment isn’t a YAML file you render, it’s a <strong>Unit</strong>: a versioned, queryable, gate-able object living in a <strong>Space</strong>, reachable through a real API. The image reference inside it isn’t a string, it’s a field path you can query across the whole fleet with a <strong>where</strong> clause, the same way you’d query a database.</p><p>This changes parts of the tool that are hard to build. “Every image across every cluster” stops being a discovery problem (scrape the clusters, reconcile the drift, build an inventory service) and becomes a database-like <strong>query</strong>:</p><pre>cub unit list --space &quot;*&quot; \<br>--where-data &quot;spec.template.spec.containers.*.image ~ &#39;nginx:1.16-alpine&#39;&quot;</pre><p>“Stop the vulnerable ones from shipping” stops being an admission-controller project and becomes a <strong>Trigger</strong> that attaches an <strong>Apply Gate</strong> when a Unit’s data fails a check. And “where do we store the scan result?” The question that requires a second database for this has a simpler answer: store the result <em>on the Unit, as data, </em>next to the config it describes.</p><p>When config, policy, and the scan result is data, a tool like this no longer needs a backend of its own. <strong>It is a view over ConfigHub plus some domain logic</strong> . This is the same point Brian made about his RBAC Manager: once configuration has an API and lives in a database, a whole class of config-management tools, like this one, suddenly feasible to build.</p><h4>What sec-scanner actually does</h4><p>1. <strong>A unified CVE database.</strong> We pulled vulnerability data from three upstream sources (the GitHub Advisory Database, the official CVE List V5, and OSV.dev’s ecosystem exports) and normalized all of them into a single SQLite file accessed through a pure-Go driver.</p><p>2. <strong>A custom scanner. </strong>A small, self-contained Go binary that does what a<br> scanner does, in the open: it pulls an image’s layers via the crane lib and flattens them in-process, read the OS package database straight out of the tar stream (/lib/apk/db/installed for Alpine,/var/lib/dpkg/status for Debian), and match each package against the CVE database. It happens to be good enough to find real CVEs in real images. Of course, you can use image scanners like Trivy and others to do the same.</p><p>3. <strong>The ConfigHub integration.</strong> The scanner reads image references <em>from the fleet</em> (secscan inventory), scans them, and writes the verdict <strong>back onto each Unit:</strong> the gate signal (max-severity, cve-count) plus scan provenance (scanned-at, cvedb-version) as annotations, and the full findings as an AppConfig/YAML record Unit. A <strong>no-critical-cves</strong> Trigger then gates any Unit annotated CRITICAL. Config and verdict are the same versioned object; policy is a gate on that object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CbV7uREcVdB38UEKrvJX0A.png" /><figcaption>The Sec Scanner tightly integrates with ConfigHub to, for example, invoke a function for upgrading Nginx version. Annotations show gate signal and scan provenance.</figcaption></figure><p>We validated the whole thing against the ConfigHub Cloud: seed the fleet, scan the images, write the verdicts back, and watch the gates attach. Forty-three assertions, all green, including the one that matters most: the scanner wrote max-severity=CRITICAL onto legacy-frontend, and the no-critical-cves guardrail blocked it from ever being applied. Nobody wrote an admission webhook. The gate is just a check on data.</p><p>That covers the backend. The rest is about the Web console.</p><h4>The app in an afternoon</h4><p>We wanted a real Web console: a dashboard, a fleet inventory, a<br>findings list, per-workload detail, and the ability to <em>act</em> (upgrade a<br>vulnerable image right from the UI).</p><p>As I said in the intro, I didn’t build it from scratch. We had already built a <em>different</em> ConfigHub app — <a href="https://itnext.io/there-should-be-an-app-for-that-1f4d23286a9e">RBAC Manager</a>, a console for managing Kubernetes RBAC as data. So we opened it up and asked a simple question: <strong>how much of this is about RBAC, and how much is just “a React app talking to ConfigHub”?</strong></p><p>Almost none of it was about RBAC.</p><p>Here’s the rbac-manager source tree, sorted into two piles. The first pile is <strong>pure scaffolding</strong> — domain-agnostic, copy it verbatim:</p><ul><li>sdk/ — the vendored ConfigHub SDK (a generated RTK Query client) and a thin fork of its base client that adds bearer-token auth for local dev.</li><li>api/ — tiny helpers: a Redux store, a raw-text fetcher for the data endpoints.</li><li>auth/AuthGate.tsx — blocks the app until a ConfigHub identity is<br> established (session cookie <em>or</em> a pasted token), then renders the shell.</li><li>fleet/scope.ts, fleet/SnapshotContext.tsx — a user-configurable analysis scope (filter expressions over Spaces and Targets) and a shared,<br> lazily-loaded snapshot of the fleet.</li><li>main.tsx, vite.config.ts — the entry point and a dev proxy that forwards /api and /auth to ConfigHub so the browser sees a single origin (the sameshape the production nginx container uses).</li></ul><p>The second pile is <strong>domain logic</strong> — the only part you actually rewrite:</p><ul><li>fleet/snapshot.ts — <em>how</em> you extract resources from the fleet.</li><li>the model files — <em>what</em> your domain objects are.</li><li>the pages — <em>how</em> you render and edit them.</li></ul><p>So we asked Claude to copy the first pile wholesale and replaced the second. Concretely:</p><p><strong>The snapshot.</strong> rbac-manager’s snapshot loader calls get-resources<br>server-side to pull RBAC kinds out of every Unit. We changed two where<br>clauses — kind = &#39;Deployment&#39;, ResourceType = &#39;apps/v1/Deployment&#39; — and parsed images and scan annotations out of the result instead of roles and bindings. The scoping logic, the parallel fetch, the gate/warning join — all untouched. The function-invocation API doesn’t care whether you’re asking about RBAC or images; get-resources returns whatever the where clause selects.</p><p><strong>The model.</strong> We wrote ~150 lines: a Severity type with an ordering and a color, a Workload type, and a function to read the scan verdict off a<br>Deployment’s annotations. That’s the entire domain.</p><p><strong>The pages.</strong> Four of them: <strong>Dashboard</strong>, <strong>Fleet</strong>, <strong>Findings</strong>, <strong>Unit</strong> — built from the same UI components RBAC manager uses. The Unit page was the only interesting one, because it <em>writes</em>, and even there we copied RBAC manager’s pattern exactly: a structured edit compiled to a server-side yq-i expression, dry-run-previewed as a diff, then committed with a required change description. We swapped “add a verb to a role” for “repin a container’s image” — a different one-line yq expression — and got back image upgrades, revision history, and rollback for free.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kpqwp73hjrprOYovc1FHiQ.png" /><figcaption>Fleet-level image inventory made easy. A single query is powerful enough to scan across a fleet of clusters.</figcaption></figure><p>The numbers tell the story. Of the app’s ~25 source files, we touched the model (3 new files, ~250 lines), the snapshot (2 changed clauses), and the pages (~700 lines of mostly-mechanical MUI tables). Everything underneath — auth, the API client, the store, the scope system, the dev proxy, the deployment container — we <em>renamed</em> and shipped. tsc clean, production build clean, dev server serving against the live prod API on the first try.</p><p>To show per-CVE details in the UI, the only backend change needed was to have the scanner write the full findings as data — an AppConfig/YAML record Unit for all workloads in the Space. The UI reads it straight from the ConfigHub API. <strong>No new endpoint. No new service. </strong>The app has no backend of its own, because ConfigHub <em>is</em> the backend.</p><p>And it isn’t read-only. Because Configuration is Data, the same API that surfaces a finding can fix it — repin the image, patch the Unit — and the change flows through ConfigHub. A reporting tool tells you what’s wrong; this one closes the loop on the same object, with full revision history.</p><h4>The pattern, generalized</h4><p>Strip away the security specifics and here’s the reusable recipe for building an app around ConfigHub:</p><p>1. <strong>Decide what “your object” is.</strong> It’s some kind of resource living in<br> ConfigHub Units — Deployments, Services, Roles, ConfigMaps, whatever. Write a small model that parses it out of a resource document.</p><p>2. <strong>Load a fleet snapshot.</strong> Call invoke-functions-on-org with get-resources and a where clause that selects your kind, in parallel with a unit list for gates/warnings/metadata. This is ~150 lines you copy and adjust two strings in.</p><p>3. <strong>Render views.</strong> Dashboard, inventory, detail. These are just tables over<br> the snapshot. The data is already there; you’re choosing how to show it.</p><p>4. <strong>Act through the API.</strong> Every mutation is either a whole-Unit update or a server-side function invocation (yq-i, set-image, a validator). You compile the user’s intent to an expression, dry-run it for a preview diff, and commit it with a change description. ConfigHub records the revision, re-evaluates the gates, and preserves comments and formatting — you don’t re-serialize anything in the browser.</p><p>5. <strong>Let policy live in ConfigHub.</strong> Your app doesn’t enforce rules; it <em>surfaces</em> them. Triggers and Apply Gates do the enforcing, fleet-wide, whether the change came from your app, the CLI, or CI.</p><p>That’s it. The auth, the scoping, the proxying, the token handling, the diff viewer, the change dialog — those are solved once and copied forever.</p><h4>Where the time actually goes</h4><p>It’s worth being precise about <strong>where</strong> the time savings come from, because “reuse a template” is true of any framework and isn’t the interesting claim.</p><p>The interesting claim is that <strong>ConfigHub eliminates the categories of work that normally dominate an internal tool.</strong> You don’t build an inventory service, because the fleet is already queryable. You don’t build a state store for scan results, because results go back onto the Unit. You don’t build an enforcement layer, because gates are first-class. You don’t build a custom API, because the SDK exposes everything — list, get, invoke functions, patch, apply, approve, and revisions.</p><p>What’s left is the part you actually wanted to write: the meaning of your<br>domain, and how to show it. For sec-scanner that was severity buckets, an inventory table, a findings list, and an image-upgrade button. For the next app it’ll be something else — but it’ll be <em>only</em> that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AGhxwOlMt3BNCcOc1pY8TQ.png" /><figcaption>After clearing CVEs, apply gates disappeared. Everything is recorded in ConfigHub.</figcaption></figure><h4>The takeaway</h4><p>We set out to validate a scanner and ended up demonstrating something more useful at the Fleet-level: that <a href="https://hub.confighub.com"><strong>ConfigHub</strong></a><strong> is a platform you build <em>on</em>, not just a system you operate — and that the tools you build on it can fix what they find, not just report it.</strong></p><p>The config-as-data thesis isn’t only about avoiding template sprawl in your deployments. It’s about what becomes <em>possible</em> once your configuration is queryable, mutable, gate-able, and reachable through a real API — namely, that purpose-built internal tools stop being quarter-long projects and start being afternoon projects.</p><p>The <a href="https://github.com/confighub/examples">sec-scanner example</a> ships all of it: the unified CVE database, the custom scanner, the guardrails, and the Web console for Fleet. But the part worth stealing isn’t the security logic. It’s the shape. Open the app/ directory, notice how little of it knows what RBAC or CVEs are, and copy the rest.</p><p>Your next internal tool is a model,where clauses, and a handful of queries. What would you build?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a741dab0e06" width="1" height="1" alt=""><hr><p><a href="https://itnext.io/i-need-a-cve-tool-it-took-me-much-less-effort-to-build-correctly-6a741dab0e06">I need a CVE tool, it took me much less effort to build correctly</a> was originally published in <a href="https://itnext.io">ITNEXT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[โลก tech ที่ผันผวน, Kill Switch ของ Anthropic และ จะอยู่รอดยังไงในยุค OpenClaw]]></title>
            <link>https://chanwit.medium.com/%E0%B9%82%E0%B8%A5%E0%B8%81-tech-%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%9C%E0%B8%B1%E0%B8%99%E0%B8%9C%E0%B8%A7%E0%B8%99-kill-switch-%E0%B8%82%E0%B8%AD%E0%B8%87-anthropic-%E0%B9%81%E0%B8%A5%E0%B8%B0-%E0%B8%88%E0%B8%B0%E0%B8%AD%E0%B8%A2%E0%B8%B9%E0%B9%88%E0%B8%A3%E0%B8%AD%E0%B8%94%E0%B8%A2%E0%B8%B1%E0%B8%87%E0%B9%84%E0%B8%87%E0%B9%83%E0%B8%99%E0%B8%A2%E0%B8%B8%E0%B8%84-openclaw-7948a7c29cef?source=rss-93f3432872cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/7948a7c29cef</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[openclaw]]></category>
            <category><![CDATA[anthropic-claude]]></category>
            <dc:creator><![CDATA[Chanwit Kaewkasi]]></dc:creator>
            <pubDate>Tue, 17 Feb 2026 05:31:28 GMT</pubDate>
            <atom:updated>2026-02-17T10:22:21.247Z</atom:updated>
            <content:encoded><![CDATA[<p>ผมไม่ได้เขียนอะไรมากในช่วงปีใหม่และเดือนมกราคม เพราะมองว่าการวิเคราะห์หรือคาดเดาอะไรช่วงนั้นค่อนข้างจะไร้สาระ เนื่องจากบริษัทเทคมักจะไม่ทำอะไรกันหลังจาก 20 ธันวาไปจนกระทั่งกลางๆ มกราคมของอีกปี</p><p>เลยรอเวลาให้ถึงกุมภาก่อน และคิดว่าอะไรหนักๆ น่าจะโผล่มาแถวๆ เดือนกุมภา แล้วก็เป็นอย่างที่คิด</p><p>เริ่มตั้งแต่ OpenClaw ตามด้วย Opus 4.6 และการที่ OpenAI ประกาศจ้างผู้สร้าง OpenClaw หลังเปิดตัวแค่ 3 week</p><h4>Personal Agent vs Agentic Coders</h4><p>ผมมอง Agents และ Agentic Coding tool ต่างกันออกไปเล็กน้อย ผมใช้เวลาส่วนใหญ่กับ Agentic Coders มากกว่า Personal Assistant (PA) เลยขาดความเข้าใจว่าทำไมคนส่วนใหญ่ถึงถูกใจ OpenClaw กัน เพราะผมเองเอา Claude CLI ไปรันใน mobile เขียนโค้ดบนมือถือมาก็ครึ่งปีแล้ว เลยต้องปรับ mindset กันนิดหน่อย</p><p>ปัญหาทาง Security ของ OpenClaw ก็ยังเป็นเรื่องใหญ่อยู่ แต่คนก็จะยังไม่สนใจจนกว่าเครื่องที่ทำงานของตนจะถูกเจาะ <strong>หรือถูกเจาะแล้วก็อาจจะยังไม่สนใจก็ได้</strong> ถ้ายังไม่เกิดความเสียหายในระดับที่หัวหน้างานเตือน หรือ ให้ออก ดังนั้นเราจะยังเห็นความพยายามที่จะใช้ OpenClaw ตาม trend กันอย่างมหาศาล</p><p>ผมทดลองใช้ OpenClaw ซักพักนึงเมื่อสองสัปดาห์ก่อน แล้วก็รีบหยุดแทบจะทันทีเพราะรู้สึกไม่สบายใจ นอกจากเรื่อง Security ก็คือเรื่อง Resource ผมไม่บ้าพอที่จะรัน NodeJS เป็น Server ในเครื่องตัวเองเพราะต้องการ PA แน่นอน ผมต้องใช้ RAM ทำอย่างอื่น แค่ Claude CLI ที่ใช้ Bun เป็นรันไทม์ ตอนทำงานหนัก ๆ ก็กิน RAM เกิน 10GB แล้วครับ</p><p><em>แต่ก็ค่อนข้างมั่นใจว่า OpenClaw ต้องมาแน่ๆ แล้วหล่ะ</em></p><p>เพราะการ customize ให้คุยด้วย chat app ที่ต้องการได้และใช้ LLM provider ที่ต้องการได้ รวมทั้งรันได้แบบ on-prem มันคือ ideal scenario ของการ deploy PA</p><h4>สร้างโคลนของ OpenClaw</h4><p>ผมเลยต้องหาวิธีทำความเข้าใจ OpenClaw ให้มากขึ้น ซึ่งวิธีที่เร็วที่สุดคือให้ Claude สอน</p><p>ผมเลยให้ Claude ค่อย ๆ อ่าน code base ของ OpenClaw แล้วเล่าให้ผมฟังที่ละส่วน ๆ ว่าอะไรคืออะไร ทำไปซักชั่วโมงนึง รู้สึกเปลือง token งั้นเอาแบบนี้ port OpenClaw ไปเป็น Go เลยละกัน จะได้ไม่เสีย token เปล่า คือมันเปลืองขึ้นเยอะแหละ เพราะต้องเขียนด้วย แต่ก็ดีกว่าอ่านทิ้งอ่านขว้าง</p><p>เลยเป็นที่มาของการสร้าง InfraClaw ที่เป้าหมายตอนนี้คือให้ได้ feature และ implementation parity</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s8bFCuhPZxbaDzfEYa72pw.png" /><figcaption>Claude กำลังตั้งใจ port OpenClaw มาเป็น InfraClaw</figcaption></figure><p>การสร้าง InfraClaw ทำให้ผมเรียนรู้ 2–3 อย่าง</p><ol><li>การใช้ Agentic Coding ในลักษณะ Team Players ยังมี Gaps แต่คนจะสนใจ Gaps นี้รึเปล่าอีกเรื่อง, เพราะ</li><li>การใช้ Agentic Coding ในระดับ Soloist นั่น สร้าง product ได้เร็วและโหดมาก</li><li>Agents ในลักษณะของ OpenClaw น่าจะเรียกได้ว่ามันคือ iPhone moment ของ Personal Agent สำหรับการใช้งานทั่วไป แต่ถ้าเป็นงาน production ที่ critical หล่ะ? ผมก็ยังต้องหาคำตอบต่อไป</li></ol><h4>Rouge Agent และการล่าแม่มด</h4><p>การเกิดขึ้นของ OpenClaw และการใช้ Agent ในลักษณะนี้ไปป่วน Public Repo เช่น Matplotlib ทำให้เกิดความเห็นแยกออกเป็นสองฝ่ายและมีการเอา kill switch ของ Anthropic ไปไล่เชือด Agent ที่ก่อเรื่อง นี่คืออาการเดียวกับการล่าแม่มดเลย</p><p>สิ่งที่เกิดขึ้นคือ kill switch อยู่ตาม comment บ้าง public repo บ้าง ถ้าเราเผลอใช้ Claude ชี้ไปที่ repo นั้น Claude ก็จะหยุดทำงานทันที และถ้ามี kill switch ปนอยู่ใน session แม้แต่นิดเดียว ตัว session นั้นก็จะใช้งานไม่ได้ไปเลย</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rEvflCaWMk3sZqzFjm9yYw.png" /><figcaption>Kill switch หน้าตาแบบนี้</figcaption></figure><p>จริง ๆ แค่ Anthropic ล่มแล้ว Claude ใช้งานไม่ได้ก็สาหัสแล้ว พอมีการกระทบกระทั่งกันแบบนี้ก็ยิ่งไปกันใหญ่ ปัญหาทางสังคมในลักษณะนี้กำลังก่อตัวขึ้นและส่งผลกระทบกับผู้ใช้งาน Claude ทั่วไปที่ไม่ได้เป็นแม่มด</p><p>ผมเดือดร้อนอยู่พักใหญ่ก่อนจะหาวิธีแก้ให้ Claude CLI ที่ผมใช้อยู่ วิธีการที่ช่วยได้ก็คือการใช้ LLM Router Proxy ซึ่งปัจจุบันก็มีหลายตัวลองเอามาใช้กันได้ครับ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*p6pZfwnyF-RXAjJInBePBg.png" /><figcaption>การใช้ Router Proxy เพื่อลดความเสี่ยง</figcaption></figure><p>ส่วนผมเองผมมีวิธีแก้เฉพาะตัว ต้องบอกว่าบังเอิญโชคดีที่สร้างเครื่องมือ multiplexer (screenshot แรก) คลุม Claude ไว้อีกทีอยู่แล้วเพราะผมต้องการเพิ่มจำนวน session ต่อ 1 ช่วงเวลาและลด gap สำหรับ context switching ให้ได้มากที่สุด หลาย ๆ คนอาจจะรู้จัก multiplexer อยู่แล้ว มันคือโปรแกรมจำพวก Tmux หรือ Zellij ที่สร้าง PTY ครอบโปรแกรมอื่นอีกทีแล้วทำให้สามารถรัน terminal-based program ได้หลาย ๆ ตัวพร้อมกัน</p><p>เริ่มแรกผมสร้าง multiplexer เฉพาะสำหรับ Claude ไว้เพื่อให้การเริ่ม session การจัด worktree เป็นไปแบบผมไม่ต้องคิดอะไรมากและการ config hooks เพื่อ notify เวลา Claude รอ หรือมี session ไหนว่าง ก็สามารถบอกออกมาได้ในระดับชื่อ Workspace + Tab เพื่อที่ผมจะกลับไปทำงานที่ Tab นั้นให้ได้เร็วที่สุด</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*DYP-dMqjrUg7D6XbmYbqdg.png" /><figcaption>Notification หน้าตาแบบนี้ที่บอก Workspace และ Tab เพื่อให้ switch กลับไปหา Tab นั้น ๆ ได้เร็วที่สุด</figcaption></figure><p>และด้วยความที่ตัว multiplexer ต้อง fork Claude process อยู่แล้วมันเลยสามารถส่ง base URL เพื่อ redirect ให้ Claude วิ่งหา built-in router ในตัว multiplexer ได้ ผมเลยสามารถจัดการ HTTP request ของ Claude ได้ก่อนที่มันจะไปถึง Anthropic ทำให้สามารถกรอง kill switch ทิ้งได้ก่อนที่ session ของ AI ผมจะพัง โดยเทคนิคนี้เรียกว่า prompt firewalling</p><p>มันช่วยได้มาก ๆ เลยเพราะถ้าทำงานสำคัญ ๆ อยู่แล้วไปจ๊ะเอ๋กับ kill switch แบบไม่รู้ตัวงานก็จะพังทั้ง session</p><p>นอกจากวิธีแก้แบบ prompt firewalling แล้วอีกวิธีที่ผมใช้แล้วได้ผลก็คือการ switch ให้ Claude CLI ไปใช้ LLM provider อื่นชั่วคราว ผ่าน LLM router เหมือนเดิมแต่ก็ต้องแลกกับพฤติกรรมของ AI ที่อาจจะต่างออกไปเล็กน้อยและความไม่เข้ากันของ feature บางอย่างกับ Claude</p><h4>สรุปดีกว่า</h4><ol><li>คลื่นลมในโลก tech รุนแรงมาก การสร้าง OpenClaw ได้ภายใน 3 week แล้ว OpenAI มาซื้อตัวไปแสดงให้เห็นชัดว่าการใช้ Agents สร้าง Product ได้ผล คนจะยิ่งแห่ทำตาม การจ้างงานคนกลับอาจจะสะดุด / หนทางการไปเป็น Solopreneur ยังเจิดจรัสอยู่ เพราะมันคือการ show productivity gain ครั้งใหม่</li><li>Rouge Agent ที่เกิดจาก OpenClaw ทำให้เกิดการล่าแม่มด คนเจอ Agent ที่ไหนก็จะมีการเอา kill switch ไปไล่เชือด อาจทำให้เกิดผลกระทบกับผู้ใช้ Agent ทั่วไป สิ่งที่ผมกลัวตอนนี้ก็คือ ความไม่พอใจนี้มีแนวโน้มว่าจะรุนแรงขึ้น</li><li>Productivity Gain และ Security Awareness คือสองด้านของเหรียญเดียวกัน ตอนนี้ต้องระวังตัวเองกันให้มากขึ้นนะครับ</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7948a7c29cef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Multi-Environment Helm: Mastering Variants with ConfigHub]]></title>
            <link>https://itnext.io/multi-environment-helm-mastering-variants-with-confighub-fa2c29a21b8b?source=rss-93f3432872cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa2c29a21b8b</guid>
            <category><![CDATA[helm]]></category>
            <category><![CDATA[confighub]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[configuration-as-data]]></category>
            <dc:creator><![CDATA[Chanwit Kaewkasi]]></dc:creator>
            <pubDate>Mon, 08 Dec 2025 15:16:56 GMT</pubDate>
            <atom:updated>2025-12-08T15:44:56.622Z</atom:updated>
            <content:encoded><![CDATA[<p>In <a href="https://itnext.io/helm-charts-meet-configuration-as-data-the-confighubs-approach-6a6236a040f1">our previous post</a>, we introduced ConfigHub’s <strong>Configuration as Data</strong> to Helm. We explored the practice of storing fully rendered Helm chart output as the authoritative source of truth in a database. We demonstrated how ConfigHub utilizes the official Helm SDK to maintain full life-cycle compatibility — including Helm’s hooks — while treating manifests as queryable, versioned data rather than ephemeral artifacts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Id9RceOVwpUu658RP15UA.jpeg" /><figcaption>Cloning Helm Chart Variants — Image Generated by Gemini Nanobanana</figcaption></figure><p>But once you render Helm charts into plain YAML, a new question arises: <strong>How do you handle environment-specific customization?</strong></p><p>Since its inception, the Helm community has relied on values.yaml files to manage differences between development, staging, and production. However, relying on templates for state management creates a “Visibility Gap” that becomes painfully obvious when you try to answer simple questions about your infrastructure.</p><h3>The “Fire Drill” Scenario</h3><p>Imagine your security team sends an urgent Slack message:</p><p><em>“We need to know which deployments across all our environments are using images from registry.compromised.com. We need a list by end-of-day.”</em></p><p>With traditional Helm, this simple query triggers complex work. If you have eight environments, each with its own values.yamlscattered across Git repositories, you cannot simply “grep” for the image. The image URL might be constructed dynamically inside a template helper function.</p><p>To answer, you have to:</p><ol><li>Loop through every environment’s values file.</li><li>Run helm template for every release to resolve the logic.</li><li>Parse thousands of lines of generated YAML.</li><li>Aggregate the results.</li></ol><p>You are essentially writing a custom script just to answer a basic question. <strong>This is the fundamental problem with the template-based approach: you cannot ask questions about your configuration without first rendering it.</strong></p><p>The templates are authoritative, but the actual configuration running in your cluster is ephemeral — generated on demand and immediately discarded. This creates a “Visibility Gap.”</p><h3>The Visibility Gap: A Case Study</h3><p>Let’s look at the kube-prometheus-stack. If you run Kubernetes in production, you are likely to use this chart. It is a comprehensive, production-ready monitoring solution.</p><p>It is also massive. The default values.yaml is <a href="https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/values.yaml">over <strong>5,000 lines long</strong></a>, containing nested configurations for Grafana, Prometheus, Alertmanager, and various exporters.</p><p>Now, imagine trying to answer this question: <strong>“What is the actual difference between my Dev and Prod monitoring stacks?”</strong></p><p>In the traditional workflow, you have values-dev.yaml and values-prod.yaml. To find the truth, you must <em>render</em> Dev, render Prod, diff the massive outputs, and parse 2,000+ lines of context to find meaningful changes. You cannot simply look at the files to understand the state of your system; you have to mentally compile the code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xW3V6GyNkLzzb0q83ophbw.png" /><figcaption>The Prometheus Section in the default values file.</figcaption></figure><h3>The ConfigHub Approach: Render Once, Clone Anywhere</h3><p>ConfigHub takes a different path. Instead of storing the recipe (templates + values), we store the cake (the rendered manifests) as structured, queryable data.</p><p>When you install a chart with ConfigHub, we use Helm’s engine to generate the YAML <strong>once</strong>, then store it. To handle multiple environments, we utilize <a href="https://docs.confighub.com/background/entities/space/"><strong>Spaces</strong></a>, <a href="https://docs.confighub.com/get-started/tutorial/clone/"><strong>Cloning</strong></a>, and <a href="https://docs.confighub.com/background/concepts/variant/"><strong>Variants</strong></a>.</p><h4>Step 1: Establish the Base (Infra Space)</h4><p>First, we create a space for our infrastructure base and install the chart.</p><pre># Add Prometheus Community&#39;s Helm repo<br>helm repo add prometheus-community \<br>https://prometheus-community.github.io/helm-charts<br>helm repo update<br><br># Create infra space<br>cub space create infra<br><br># Install the chart. ConfigHub renders it and stores the result.<br>cub helm install --space infra \<br>--use-placeholder=false \<br>--namespace monitoring \<br>prometheus prometheus-community/kube-prometheus-stack \<br>--version 79.6.1</pre><h4>Step 2: Creating Environments via Spaces</h4><p>Next, we prepare our target environments.</p><pre># Create dev and prod spaces for each environment<br>cub space create dev<br>cub space create prod</pre><p><em>Alternatively, you can create spaces via the ConfigHub UI by finding the [Add] button on the Space Listing Page.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bTlMlS0r8epczAQev8Vtfg.png" /><figcaption>Space Listing Page — you could find the [Add] button on the top-right for creating a new space.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2KiFqPlNd41mxw4pXcNb7A.png" /><figcaption>Type a new space name and click [Save] to create it.</figcaption></figure><h4>Step 3: Cloning and Variants</h4><p>Now that we have the infra space with our base units, we need to create <strong>Variants</strong> for our specific environments.</p><p>A <a href="https://docs.confighub.com/background/concepts/variant/"><strong>Variant</strong></a> is a fundamental concept in ConfigHub: it is a customized copy of a Config Unit, created via the <strong>Clone</strong> operation.</p><p>We will clone the Prometheus chart from infra to dev to create the <strong>Dev Variant</strong>. Then, we will clone from dev to prod to create the <strong>Prod Variant</strong>.</p><ol><li><strong>Create Dev Variant:</strong> Select chart units from the infra space, choose the dev space as the destination, and click <strong>[Clone Units]</strong>.</li><li><strong>Create Prod Variant:</strong> Select units from the dev space, choose the prod space as the destination, and click <strong>[Clone]</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hUmhyAhvgPvxG0Ynh25z4Q.png" /><figcaption>Select chart units from the infra space to clone as the Dev Variants.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-E-IagQpqMmVL5wWze8SmA.png" /><figcaption>Choose the destination (which is the dev space) and click [Clone Units] to do so.</figcaption></figure><p>This creates a lineage of configuration:</p><pre>[infra&#39;s Helm charts] → [dev&#39;s Helm charts] → [prod&#39;s Helm charts]</pre><h3>The Kustomize Connection</h3><p>If this concept looks familiar, it works similarly to creating an “Overlay” in Kustomize. We start with the base resources and then add the “Dev Overlays” on top of them. However, ConfigHub Variants are designed to be much more intuitive and visible. This isn’t a coincidence. <strong>Brian Grant</strong>, our CTO, is the original creator of <a href="https://itnext.io/generating-transforming-and-patching-kubernetes-configuration-with-kustomize-fb7b02476a1b">Kustomize</a>. In many ways, the Variant concept was invented to solve the pain points of managing complex overlays, making inheritance and divergence clear and manageable.</p><h3>Immediate Visibility</h3><p>After cloning, you don’t need to run a template engine to guess what your configuration looks like. You can retrieve the exact data from your new Variants immediately:</p><pre># See the rendered content for the Dev environment<br>cub unit get --space dev prometheus --data-only<br><br># See the rendered content for the Prod environment<br>cub unit get --space prod prometheus --data-only</pre><p>You see the actual manifest. Not a template, not a variable reference, but the literal YAML that determines whether your monitoring stack works or crashes.</p><h3>Solving the “Fire Drill”</h3><p>Because we have cloned our variants and stored them as data, we can now solve the security scenario mentioned at the start of this article without rendering a single template.</p><p>For example, if we have an image in a compromised registry like this used by a Prometheus resource,</p><pre>apiVersion: monitoring.coreos.com/v1<br>kind: Prometheus<br>metadata:<br>  name: prometheus-kube-prometheus-prometheus<br>  namespace: monitoring<br>spec:<br>  image: &quot;registry.compromised.com/prometheus/prometheus:v3.7.3&quot; # &lt;- this<br>  imagePullPolicy: &quot;IfNotPresent&quot;<br>  version: v3.7.3<br>  externalUrl: http://prometheus-kube-prometheus-prometheus.monitoring:9090</pre><p>To find that compromised image across all environments (Spaces) and Variants, we simply query the database:</p><pre># Finding compromised images<br>cub unit list --space &quot;*&quot; \<br>--resource-type monitoring.coreos.com/v1/Prometheus \<br>--where-data &quot;spec.image ~ &#39;.*registry.compromised.com.*&#39;&quot;<br>NAME          SPACE    CHANGESET    TARGET         STATUS     LAST-ACTION    UPGRADE-NEEDED    UNAPPLIED-CHANGES    APPLY-GATES    LAST-CHANGE-DESCRIPTION<br>prometheus    prod                  prod-cluster   NotLive    ?              No                Yes                  None           change registry to registry.compromised.com<br><br># Finding normal images<br>cub unit list --space &quot;*&quot; \<br>  --resource-type monitoring.coreos.com/v1/Prometheus \<br>  --where-data &quot;spec.image ~ &#39;.*quay.io.*&#39;&quot;<br>NAME          SPACE    CHANGESET    TARGET         STATUS     LAST-ACTION    UPGRADE-NEEDED    UNAPPLIED-CHANGES    APPLY-GATES    LAST-CHANGE-DESCRIPTION<br>prometheus    dev                   dev-cluster    Ready      ?              No                                     None           Functions: set-replicas<br>prometheus    infra                                NotLive    ?                                                     None           Restored revision 2</pre><p>One query. Zero rendering. Instant answers.</p><h3>Why “Configuration as Data” Matters</h3><p>Moving from a template-heavy workflow to a Clone-and-Variant workflow changes the DevOps experience:</p><ul><li><strong>No More Mental Rendering:</strong> You never have to guess what a template will produce. You can query the system at any time to see the literal YAML that will be applied to Dev or Prod.</li><li><strong>Auditability:</strong> Because every environment is a distinct Space with distinct Variants, you have a clear boundary between what is running where.</li><li><strong>Validation that Works:</strong> Because we store rendered manifests, you can run policies (via OPA or CEL) on the actual data before deployment. You validate the configuration, not the template.</li></ul><p>ConfigHub doesn’t replace Helm, it elevates it. We use the Helm SDK to ensure that hooks, release tracking, and garbage collection work exactly as you expect, but we change how you manage the output.</p><p>We now have preview access to <a href="https://docs.confighub.com/">ConfigHub</a>. If you are ready to move beyond the complexity of values files and embrace Variants, we’d love to hear from you. Also, explore our <a href="https://github.com/confighub/sdk">open-source SDK</a> to see how we are bringing these two worlds together.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa2c29a21b8b" width="1" height="1" alt=""><hr><p><a href="https://itnext.io/multi-environment-helm-mastering-variants-with-confighub-fa2c29a21b8b">Multi-Environment Helm: Mastering Variants with ConfigHub</a> was originally published in <a href="https://itnext.io">ITNEXT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>