Zum Hauptinhalt springen
LIVE
CVSS 6.9CVE-2026-137684 | A security flaw has been discovered in eosphoros-ai DB-GPT up to 0.8.3. This affects the function editor_sql_run of the file packages/dbgpt-app/src/dbgpt_app/openapi/api_v1/editor/api_editor_v1.py of the component Editor SQL Run API. Performing a manipulation of the argument db_name results in authorization bypass. It is possible to initiate the attack remotely. The exploit has been released to the public and may be used for attacks. The pull request to fixCVSS 8.7CVE-2026-137992 | libexpat through 2.11.0 contains a denial of service vulnerability in defineAttribute() of lib/xmlparse.c that fails to detect duplicate non-ID #IMPLIED or #REQUIRED attribute declarations. Attackers can supply a crafted XML document with repeated ATTLIST declarations in an internal DTD subset to cause quadratic CPU consumption in storeAtts() during parsing.CVSS 8.5CVE-2026-137994 | Leo through 6.8.10 contains an insecure deserialization vulnerability that allows attackers to execute code by embedding pickled data in unknown XML attributes of .leo outlines. Attackers can place a pickle __reduce__ gadget in a or element attribute that resolveUa passes to pickle.loads, executing code with user privileges when the outline is opened.CVSS 7.0CVE-2026-137995 | FOG Project before 1.6.0.119 contains an information disclosure vulnerability that allows unauthenticated attackers to obtain host tokens from status/hostgetkey.php by supplying a host MAC address. Attackers can present the token to service/hostinfo.php to retrieve decrypted Active Directory join credentials and Windows product keys during deployment windows.CVSS 6.8CVE-2026-137996 | Zettlr before 4.11.0 fails to validate URI schemes in Markdown link targets, allowing attackers to launch arbitrary registered protocol handlers via Electron shell.openExternal without confirmation. Attackers can craft documents whose Ctrl/Cmd-clicked links use smb:// to leak NTLM credential hashes on Windows or invoke custom protocol handlers with attacker-controlled parameters.CVSS 8.5CVE-2026-137997 | HCIPy through 0.7.1 contains an insecure deserialization vulnerability that allows attackers to execute code by supplying crafted .pkl files to read_field, read_grid or read_mode_basis. Because hcipy/util/io.py selects pickle by file extension and calls pickle.load, a __reduce__ gadget in a pupil, apodizer, PSF or mode-basis file runs code with the user's privileges.CVSS 8.5CVE-2026-137998 | Detoxify 0.5.3 through 0.5.4 contains an insecure deserialization vulnerability in load_checkpoint that allows attackers to execute code by supplying a crafted checkpoint file. Attackers can embed a pickle __reduce__ gadget in a .ckpt file loaded via torch.load with weights_only=False to run code with the user's privileges.CVSS 8.5CVE-2026-137999 | JSONSchema2PoPo2 through 3.0.3 contains a code injection vulnerability that allows attackers to inject Python code by supplying JSON Schema default or format values that are written unescaped. Attackers can place a single quote in a string property default to break out of the literal in the generated __init__ signature, executing injected code when the generated module is imported.
Alle im Drawer
Intelligence View
⚡ tsecurity.de Intelligence

Why Snap CD: Modular Deployments

Terraform manages dependencies between resources within a single state. The moment your infrastructure outgrows one state file — slow plans, wide blast radius, …

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Quelle & Fakten · 8 Min. Lesezeit
Quelle: dev.to
Rubrik: Sichere Programmierung

Terraform manages dependencies between resources within a single state. The moment your infrastructure outgrows one state file — slow plans, wide blast radius, team contention — you need to split. But the pieces still depend on each other: compute needs the VPC ID from networking, application infrastructure needs the cluster endpoint from compute.



The usual approaches — terraform_remote_state, parameter stores, wrapper scripts, Terragrunt — each solve part of the problem but leave gaps in change detection, ordering enforcement, and visibility. For a walkthrough of these approaches and how to perform the split itself, see Splitting a Terraform Monolith.



Snap CD's module system was built specifically for what comes after the split: declaring the dependency graph as code, enforcing apply ordering, and cascading changes automatically.






Managing Snap CD with Terraform



The HCL examples throughout this guide use the Snap CD Terraform provider. This is the canonical way to configure Snap CD — you use Terraform to manage the system that manages your Terraform modules. Everything you see in the examples below — the hierarchy, the dependency wiring, the secret bindings — is declared as standard Terraform resources via this provider.



This means your Snap CD configuration is version-controlled, reviewable, and reproducible — the same properties you expect from the infrastructure it orchestrates. For more on the provider and the broader toolset, see An Extensive Supporting Toolset. For how runners provide credential isolation between modules, see Self-Hosted Terraform Runners with Credential Isolation.






Stacks, Namespaces, and Modules



Snap CD organises infrastructure in a three-level hierarchy:





  • Stack — a top-level grouping, typically an environment or a product. Examples: production, staging, platform-services.


  • Namespace — a logical grouping within a Stack, typically a team or an infrastructure layer. Examples: networking, data-platform, frontend.


  • Module — a single Terraform root within a Namespace. This is the unit of deployment — each Module has its own state, its own Runner, and its own lifecycle.



Permissions, secrets, and default inputs can be set at any level and inherited downward. A secret defined at the namespace level is available to all modules in that namespace. A permission granted at the stack level applies to all namespaces and modules within it.




resource "snapcd_stack" "production" {
name = "production"
organization_id = snapcd_organization.main.id
}

resource "snapcd_namespace" "platform" {
name = "platform"
stack_id = snapcd_stack.production.id
}









Modules



A module is an independent Terraform root — its own source repository, its own state, its own runner, its own credentials. Modules are defined within a namespace:




resource "snapcd_module" "networking" {
name = "networking"
namespace_id = snapcd_namespace.platform.id
source_url = "https://github.com/myorg/infra-networking.git"
runner_id = snapcd_runner.platform.id
}

resource "snapcd_module" "compute" {
name = "compute"
namespace_id = snapcd_namespace.platform.id
source_url = "https://github.com/myorg/infra-compute.git"
runner_id = snapcd_runner.platform.id
}

resource "snapcd_module" "database" {
name = "database"
namespace_id = snapcd_namespace.platform.id
source_url = "https://github.com/myorg/infra-database.git"
runner_id = snapcd_runner.platform.id
}






Each module is fully independent — its own state, its own credentials (scoped via the runner), its own lifecycle.






Inputs



Modules receive values through inputs. Snap CD supports several input types, each suited to a different use case.






Outputs from other modules



The most common input type. A module consumes an output from another module, and Snap CD builds the dependency graph from these declarations:




resource "snapcd_module_input_from_output" "vpc_id" {
module_id = snapcd_module.compute.id
input_kind = "Param"
name = "vpc_id"
output_module_id = snapcd_module.networking.id
output_name = "vpc_id"
}

resource "snapcd_module_input_from_output" "private_subnet_ids" {
module_id = snapcd_module.compute.id
input_kind = "Param"
name = "private_subnet_ids"
output_module_id = snapcd_module.networking.id
output_name = "private_subnet_ids"
}






The input_kind controls how the value is delivered to Terraform:





  • Param — injected as a Terraform variable (written to a .tfvars file). Use this when your Terraform code declares a matching variable block.


  • EnvVar — injected as an environment variable. Use this for values that configure provider authentication or backend settings (e.g., ARM_SUBSCRIPTION_ID).



This replaces terraform_remote_state entirely. Modules don't need to know each other's backend configuration. They declare what they produce and what they consume — Snap CD handles the wiring.



When two modules share many outputs, snapcd_module_input_from_output_set wires all outputs from the producer in a single resource — no need to declare each one individually.






Literal values



Static configuration values that don't come from another module or a secret:




resource "snapcd_module_input_from_literal" "environment" {
module_id = snapcd_module.compute.id
input_kind = "Param"
name = "environment"
literal_value = "production"
}

resource "snapcd_module_input_from_literal" "instance_count" {
module_id = snapcd_module.compute.id
input_kind = "Param"
name = "instance_count"
literal_value = "3"
type = "NotString"
}






The type attribute defaults to "String". Set it to "NotString" for numbers, booleans, lists, or maps — this tells Snap CD to pass the value unquoted so Terraform interprets it as the correct type.






Secrets



Secrets are stored encrypted in Snap CD's secret store and injected at runtime. See Managing Secrets in Terraform for the full picture. The binding looks like:




resource "snapcd_module_input_from_secret" "db_password" {
module_id = snapcd_module.database.id
name = "db_password"
secret_id = data.snapcd_module_secret.db_password.id
input_kind = "Param"
}






Secrets are scoped — a secret bound to the database module is never visible to the networking or compute modules.






Namespace-level inputs



When multiple modules in a namespace share common inputs — a subscription ID, a region, a shared tag set — you can define inputs at the namespace level:




resource "snapcd_namespace_input_from_secret" "arm_subscription_id" {
namespace_id = snapcd_namespace.platform.id
name = "ARM_SUBSCRIPTION_ID"
secret_id = data.snapcd_namespace_secret.subscription_id.id
input_kind = "EnvVar"
usage_mode = "UseByDefault"
}






The usage_mode controls inheritance:





  • UseByDefault — every module in the namespace receives this input automatically unless it declares its own override.


  • UseIfSelected — the input is available but only applied to modules that explicitly opt in.



This eliminates the need to repeat the same credential or configuration binding on every module in a namespace. Namespace inputs also support literals (snapcd_namespace_input_from_literal) and definition values (snapcd_namespace_input_from_definition).






Definition values



Snap CD can inject its own metadata — module IDs, namespace names, source revisions — as inputs to your Terraform code:




resource "snapcd_module_input_from_definition" "module_name" {
module_id = snapcd_module.compute.id
input_kind = "Param"
name = "snapcd_module_name"
definition_name = "ModuleName"
}






Available definition values include ModuleId, ModuleName, NamespaceId, NamespaceName, StackId, StackName, SourceUrl, SourceRevision, and SourceSubdirectory. This is useful for tagging resources with their Snap CD provenance or for conditional logic based on which module is being deployed.






Change propagation



Once modules and their inputs are defined, Snap CD handles the deployment lifecycle automatically:



Automatic ordering. Snap CD knows that compute and database depend on networking. It will never apply compute before networking has successfully completed.



Parallel execution. Compute and database both depend on networking but not on each other. Snap CD runs them in parallel once networking completes.



Cascading changes. When networking's outputs change — say you add a subnet — Snap CD automatically queues compute and database for re-planning. If the new plan has changes, it either auto-applies (if configured) or waits for approval. If compute's outputs are unchanged, downstream modules that depend on compute are skipped entirely.



Source-triggered plans. When a commit is pushed to a module's source repository, Snap CD detects the change and triggers a new plan. If the plan produces output changes, dependents cascade as above.




networking
├──► compute ──► application
└──► database






A commit to infra-networking that changes a subnet triggers this cascade:




  1. Networking re-plans and applies.

  2. Compute and database re-plan in parallel.

  3. If compute's outputs change, application re-plans after compute finishes.

  4. If compute's outputs are unchanged, application is skipped.



No scripts. No parameter stores. No terraform_remote_state.






Compared to the alternatives








































































terraform_remote_state Parameter store Wrapper scripts Terragrunt Snap CD
Backend coupling Yes No No Partial No
Change detection No No No No Automatic
Ordering enforcement No No Manual Automatic Automatic
Parallelism N/A N/A Manual Automatic Automatic
Approval gates No No DIY No Built-in
Scoped permissions No No No No Built-in
Persistent visibility No No CI logs No Dashboard





Getting started



If you have a monolithic Terraform state today, the path to modular deployments is:





  1. Identify boundaries — group resources by team, lifecycle, and credential scope.


  2. Split the state — use terraform state mv to migrate resources to new roots (see Splitting a Terraform Monolith).


  3. Define modules in Snap CD — one snapcd_module per root.


  4. Wire the dependencies — snapcd_module_input_from_output for cross-module values, snapcd_module_input_from_secret for credentials.


  5. Remove the glue — delete terraform_remote_state blocks, wrapper scripts, and CI pipeline steps.



From that point on, Snap CD manages the dependency graph, propagates changes, and keeps your infrastructure in sync.






See also



Information ergänzen Fachhinweis, Update, Korrektur oder Quelle zur Meldung beitragen
Gäste-Hinweise werden kurz redaktionell geprüft und danach hier angezeigt.

Community-Hinweise zur Meldung

0 freigegeben
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:

💬 Topluluk tartışması ve yorumlar

🌐 Ana sohbete katıl

Tartışmayı başlat: Social Chat yayın akışı veya yukarıdaki ekleme formuyla uzman katkısı gönder.

Community Rating & Social Proof
⭐ Okuyucu Puanı
–
Ø / 5.0
Hiçbir okuyucu henüz yorum yok
Bu makale yararlı mıydı?
0
Değerlendirmenizi gönderin
Detaylı değerlendirme (isteğe bağlı)
İçerik ve Kalite
Kaynak ve Güvenilirlik
Güncellik
Security Briefing Ücretsiz · Tek tıkla abonelikten çıkma

Zeka Digest - ücretsiz

Günlük en önemli güvenlik haberi · herhangi bir zamanda alınabilir

İlgili Story Cluster & Kaynaklar (vector AI)

2 Cluster
2 Kaynaklar
OpenAI counter-sues Apple over trade secret theft
AppleInsider News 1 saat önce
1 başka bir kaynak
Benzer katkılar
🔍 Verwandte News

Auch interessante Nachrichten Why Snap CD: Modular Deployments

Thematisch verwandte Begriffe: Snap, Modular, Deployments · 6 Treffer

Laden...

Contributions yüklenir ...

Laden...

Videolar yükleniyor...

Laden...

Contributions yüklenir ...

Laden...

Videolar yükleniyor...

Laden...

Contributions yüklenir ...

Laden...

Videolar yükleniyor...

Yorumlar yüklenir..
Update to Update
Widgets & Topics
Loading widgets…
Nächster Beitrag