惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

人人都是产品经理
人人都是产品经理
Stack Overflow Blog
Stack Overflow Blog
S
SegmentFault 最新的问题
博客园 - 司徒正美
aimingoo的专栏
aimingoo的专栏
U
Unit 42
GbyAI
GbyAI
B
Blog RSS Feed
博客园 - Franky
L
LangChain Blog
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
云风的 BLOG
云风的 BLOG
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 三生石上(FineUI控件)
Microsoft Azure Blog
Microsoft Azure Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
G
Google Developers Blog
Last Week in AI
Last Week in AI
阮一峰的网络日志
阮一峰的网络日志
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Apple Machine Learning Research
Apple Machine Learning Research

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Trying to connect cloud architecture (CAF / Zero Trust) w...
Illya Kryush · 2026-04-26 · via DEV Community

Illya Kryushenko

Trying to connect cloud architecture (CAF / Zero Trust) with IaC validation

We often say that architecture defines intent, while Infrastructure as Code (IaC) defines implementation.

But in practice, they drift apart very quickly.

  • Architecture lives in documents (CAF, Zero Trust, internal HLDs)
  • IaC reflects what is actually deployed
  • There is no reliable way to verify that one matches the other

The problem

IaC gives us precision, but not meaning.

Architecture gives us meaning, but not verification.

So we end up in a situation where:

  • a system is “correctly deployed”
  • but architecturally wrong

And we only discover that during reviews, audits, or incidents.


A small experiment

I built a small PoC to explore whether architecture can be represented as a structured model and validated against Terraform state.

The idea is simple:

Risk → Control → Constraint → Implementation → Validation

Instead of validating individual resources, the model allows you to evaluate architecture at multiple levels:

Mapping level

  • PASS – resource matches expected configuration
  • FAIL – resource exists but is misconfigured
  • MISSING – resource is not present

Control level

  • FAILED – at least one mapping fails
  • INCOMPLETE – partially implemented
  • MISSING – not implemented at all

Risk level

  • EXPOSED – controls are not fully implemented

Example

In the demo scenario:

  • one control fails because of parameter mismatch
  • another is only partially implemented
  • another fails due to tag mismatch
  • another is completely missing

The validator aggregates this into:

FAILED control → EXPOSED risk

So instead of asking:

"Is this resource compliant?"

you can ask:

"Is this architectural risk exposed?"


What this tries to explore

This is not about replacing IaC or policy engines.

It’s about introducing an additional layer:

  • linking architectural intent (risk / control)
  • to implementation (Terraform)
  • and verifying that link continuously

Open questions

I’m still exploring whether this makes sense outside my own use case.

Some questions I’m interested in:

  • Does this model actually help in real environments?
  • Is “control-level” validation useful, or is it overengineering?
  • How would this scale in large architectures?
  • Where would this break?

Repo

I’ve put together a small working PoC with:

  • a simple architecture model (YAML)
  • a validator against Terraform state
  • a demo showing different failure modes

👉 https://github.com/Illya-Kryushenko/architecture-as-code


Happy to hear thoughts, especially from people working with Terraform, Azure, or security architecture.