# rego

Rego is Open Policy Agent's declarative policy language for expressing rules and evaluating structured data.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Policy as Code for the Network: Guardrails with Open Policy Agent

DevFeed: [Policy as Code for the Network: Guardrails with Open Policy Agent](<https://devfeed.tech/articles/policy-as-code-for-the-network-guardrails-with-open-policy-agent-100517.md>)

Original publisher: [Read original article](<https://blogs.cisco.com/cisco-devnet/network-guardrails-as-code-opa>)

Author: Lori Jakab

Published: 2026-10-26T14:00:03Z

Content type: article

Language: en

Sources: [Cisco Blogs](<https://devfeed.tech/sources/cisco-blogs.md>)

Topics: [Open Policy Agent](<https://devfeed.tech/topics/open-policy-agent.md>), [policy-as-code](<https://devfeed.tech/topics/policy-as-code.md>), [rego](<https://devfeed.tech/topics/rego.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [ssh](<https://devfeed.tech/topics/ssh.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [automated-remediation](<https://devfeed.tech/tags/automated-remediation.md>), [ci](<https://devfeed.tech/tags/ci.md>), [cisco-devnet](<https://devfeed.tech/tags/cisco-devnet.md>), [cisco-meraki](<https://devfeed.tech/tags/cisco-meraki.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [devnet](<https://devfeed.tech/tags/devnet.md>), [enterprise](<https://devfeed.tech/tags/enterprise.md>), [guardrails](<https://devfeed.tech/tags/guardrails.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [ios-xe](<https://devfeed.tech/tags/ios-xe.md>), [network](<https://devfeed.tech/tags/network.md>), [network-automation](<https://devfeed.tech/tags/network-automation.md>), [opa](<https://devfeed.tech/tags/opa.md>), [open-policy-agent](<https://devfeed.tech/tags/open-policy-agent.md>), [policy](<https://devfeed.tech/tags/policy.md>), [policy-as-code](<https://devfeed.tech/tags/policy-as-code.md>), [security](<https://devfeed.tech/tags/security.md>), [security-posture](<https://devfeed.tech/tags/security-posture.md>)

### AI overview

OPA evaluates network configurations provided as JSON against versioned, testable Rego rules and returns structured violations; it does not access or change systems itself. The examples use IOS XE configuration from RESTCONF to flag telnet access and an enabled plain HTTP server, and Meraki SSID data to flag enabled open networks. Per-domain packages handle different configuration models while a shared report combines findings, enabling consistent checks across domains. Teams can test policies with `opa test`, run reports locally, and feed results into CI, tickets, or dashboards. The article suggests starting in report-only mode, then considering automated remediation once confident. Examples use OPA 1.x syntax and do not demonstrate SD-WAN implementation or automated remediation.

### Source excerpt

Learn how to use Open Policy Agent (OPA) to enforce network guardrails as code. Catch insecure configurations before deployment and maintain a unified security posture across your entire enterprise network.

## RegoMender: A Multi-agent Framework for Automated Rego Policy Repair

DevFeed: [RegoMender: A Multi-agent Framework for Automated Rego Policy Repair](<https://devfeed.tech/articles/regomender-a-multi-agent-framework-for-automated-rego-policy-repair-94633.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.29456>)

Author: Ruijie Zhang, Huaxiao Yin, Li Hu, Fanqi Kong, Haozhe Liang, Shaoyin Cheng, Kun Zhang, Bibo Tu

Published: 2026-10-22T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [rego](<https://devfeed.tech/topics/rego.md>), [Multi Agent Systems](<https://devfeed.tech/topics/multi-agent-systems.md>), [policy-as-code](<https://devfeed.tech/topics/policy-as-code.md>)

Tags: [agent-framework](<https://devfeed.tech/tags/agent-framework.md>), [automated](<https://devfeed.tech/tags/automated.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [cloud-native](<https://devfeed.tech/tags/cloud-native.md>), [code](<https://devfeed.tech/tags/code.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-pl](<https://devfeed.tech/tags/cs-pl.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [cve](<https://devfeed.tech/tags/cve.md>), [defects](<https://devfeed.tech/tags/defects.md>), [feedback](<https://devfeed.tech/tags/feedback.md>), [first](<https://devfeed.tech/tags/first.md>), [hcl](<https://devfeed.tech/tags/hcl.md>), [multi-agent](<https://devfeed.tech/tags/multi-agent.md>), [patching](<https://devfeed.tech/tags/patching.md>), [policies](<https://devfeed.tech/tags/policies.md>), [policy](<https://devfeed.tech/tags/policy.md>), [policy-as-code](<https://devfeed.tech/tags/policy-as-code.md>), [real-world](<https://devfeed.tech/tags/real-world.md>), [rego](<https://devfeed.tech/tags/rego.md>), [repair](<https://devfeed.tech/tags/repair.md>), [robustness](<https://devfeed.tech/tags/robustness.md>)

### AI overview

RegoMender is a feedback-guided multi-agent framework for repairing Rego policies, evaluated on RegoBench, a benchmark of 1,159 real-world defects. Agents coordinate through a shared blackboard and atomic toolkit, dynamically patching, rewriting, or rolling back repairs. The abstract reports 82.9% syntactic and 77.9% test-based semantic success, 13.4% above the strongest baseline, and says it maintains effectiveness on single-step and chained tasks. It also reports generalization to HCL and SQL and an 86.4% repair rate on 132 real-world CVE vulnerabilities. These are abstract-reported results; no evaluation details are provided in the supplied text.

### Source excerpt

arXiv:2610.29456v1 Announce Type: new Abstract: Policy-as-Code (PaC) has emerged as a foundational paradigm in cloud-native systems. However, repairing Rego policies remains challenging due to their strict syntax, declarative semantics, and specific verification requirements. Existing automated program repair (APR) methods are mainly designed for mainstream languages and struggle to accommodate the unique policy logic and repair workflows of Rego. Thus, Rego policy repair remains a manual process driven by trial and error. To address this, we introduce RegoBench, the first automated Rego policy benchmark comprising 1,159 real-world defects, and propose RegoMender, a feedback-guided multi-agent framework. Collaborating via a shared blackboard and an atomic toolkit, RegoMender dynamically executes patching, rewriting, or rolling back, to resolve complex repair scenarios. Evaluated on RegoBench, RegoMender achieves syntactic and test-based semantic success rates of 82.9\% and 77.9\%, respectively, outperforming the strongest baseline by 13.4\%. Unlike other approaches whose performance drops in complex scenarios, RegoMender maintains effectiveness across single-step and chained repair tasks. Furthermore, it generalizes strongly across HCL and SQL and achieves an 86.4\% repair rate on 132 real-world CVE vulnerabilities, proving its robustness and practical utility for security.

## Master Open Policy Agent (OPA)

DevFeed: [Master Open Policy Agent (OPA)](<https://devfeed.tech/articles/master-open-policy-agent-opa-64350.md>)

Original publisher: [Read original article](<https://blog.devops.dev/master-open-policy-agent-opa-653cdc6b5850?source=rss----33f8b2d9a328---4>)

Author: Suranga Jayalath

Published: 2026-10-03T13:31:21Z

Content type: article

Language: en

Sources: [DevOps.dev](<https://devfeed.tech/sources/devops-dev.md>)

Topics: [Open Policy Agent](<https://devfeed.tech/topics/open-policy-agent.md>), [rego](<https://devfeed.tech/topics/rego.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [service-mesh](<https://devfeed.tech/topics/service-mesh.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [apis](<https://devfeed.tech/tags/apis.md>), [audit](<https://devfeed.tech/tags/audit.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [beginner](<https://devfeed.tech/tags/beginner.md>), [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [cloud-native-computing-foundation](<https://devfeed.tech/tags/cloud-native-computing-foundation.md>), [clusters](<https://devfeed.tech/tags/clusters.md>), [cncf](<https://devfeed.tech/tags/cncf.md>), [compliance](<https://devfeed.tech/tags/compliance.md>), [decision-making](<https://devfeed.tech/tags/decision-making.md>), [devops](<https://devfeed.tech/tags/devops.md>), [engine](<https://devfeed.tech/tags/engine.md>), [json](<https://devfeed.tech/tags/json.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [opa](<https://devfeed.tech/tags/opa.md>), [opas](<https://devfeed.tech/tags/opas.md>), [open-policy-agent](<https://devfeed.tech/tags/open-policy-agent.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [policy](<https://devfeed.tech/tags/policy.md>), [policy-enforcement](<https://devfeed.tech/tags/policy-enforcement.md>), [policy-management](<https://devfeed.tech/tags/policy-management.md>), [terraform](<https://devfeed.tech/tags/terraform.md>)

### AI overview

Open Policy Agent (OPA) separates policy decisions from application logic: a service sends OPA a JSON input, OPA evaluates it against a policy written in Rego, and returns a JSON decision. The excerpt highlights use for Kubernetes admission control through Gatekeeper, API and microservice authorization, and Terraform or CloudFormation checks in CI/CD. It illustrates a Rego rule that allows an Ingress only when TLS is present, and recommends keeping policy tests alongside policy files. The excerpt says policies can be updated without rebuilding application binaries, while its Gatekeeper flow rejects denied Kubernetes requests with an error. The supplied text does not include details of the promised advantages-versus-disadvantages comparison.

### Source excerpt

If you've ever had to hardcode authorization logic inside a microservice or manually check whether your Kubernetes deployment YAMLs meet security standards you know how messy policy management can get. Every service ends up implementing its own authorization logic in a slightly different way. When compliance requirements change, you have to modify, test, and redeploy every single application. Enter Open Policy Agent (OPA). In this beginner-friendly guide, we'll demystify what OPA is, why it has become the cloud-native standard for policy enforcement, and how to write your first policy from scratch. What is Open Policy Agent (OPA)? Open Policy Agent (pronounced "oh-pa") is an open-source, general-purpose policy engine hosted by the CNCF (Cloud Native Computing Foundation). Instead of hardcoding security rules inside your backend APIs, CI/CD pipelines, or Kubernetes clusters, OPA decouples policy decision-making from application logic. How It Works Your service receives a request or trigger. Your service sends a JSON document (the input) to OPA asking: "Is this allowed?" OPA evaluates the input against a pre-written policy file. OPA returns a JSON response with the decision (e.g., true/false, a list of errors, or an allowed role). Because OPA accepts any JSON input and returns any JSON output, it works across your entire tech stack from microservice APIs to Terraform configurations and Kubernetes manifests. Why Do You Need OPA? Before OPA, policy logic was scattered across applications, scripts, and API gateways: No Unified Standard: Every programming language (Go, Python, Java, Node.js) handled authorization differently. Audit & Compliance Nightmares: Proving to security auditors that all services enforce the same compliance rules required digging through thousands of lines of application code. High Deployment Risk: Changing a simple access rule required modifying application source code and triggering a full CI/CD deployment pipeline. Key Benefits of OPA Single Sour

## Enforce custom rules in Datadog IaC Security scanning

DevFeed: [Enforce custom rules in Datadog IaC Security scanning](<https://devfeed.tech/articles/enforce-custom-rules-in-datadog-iac-security-scanning-55180.md>)

Original publisher: [Read original article](<https://www.datadoghq.com/blog/custom-iac-security-rules/>)

Author: Chakib Hamie

Published: 2026-09-18T00:00:00Z

Content type: tutorial

Language: en

Sources: [Datadog](<https://devfeed.tech/sources/datadog-the-monitor-blog.md>)

Topics: [iac-security](<https://devfeed.tech/topics/iac-security.md>), [Infrastructure as code](<https://devfeed.tech/topics/infrastructure-as-code.md>), [datadog](<https://devfeed.tech/topics/datadog.md>), [Security](<https://devfeed.tech/topics/security.md>), [Open Policy Agent](<https://devfeed.tech/topics/open-policy-agent.md>), [rego](<https://devfeed.tech/topics/rego.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [Ansible](<https://devfeed.tech/topics/ansible.md>), [Dockerfile](<https://devfeed.tech/topics/dockerfile.md>), [GitHub Actions](<https://devfeed.tech/topics/github-actions.md>)

Tags: [code-security](<https://devfeed.tech/tags/code-security.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [datadog](<https://devfeed.tech/tags/datadog.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [devsecops](<https://devfeed.tech/tags/devsecops.md>), [github-actions](<https://devfeed.tech/tags/github-actions.md>), [iac](<https://devfeed.tech/tags/iac.md>), [iac-security](<https://devfeed.tech/tags/iac-security.md>), [infrastructure-as-code](<https://devfeed.tech/tags/infrastructure-as-code.md>), [open-policy-agent](<https://devfeed.tech/tags/open-policy-agent.md>), [policy](<https://devfeed.tech/tags/policy.md>), [rego](<https://devfeed.tech/tags/rego.md>), [security](<https://devfeed.tech/tags/security.md>), [security-rules](<https://devfeed.tech/tags/security-rules.md>), [security-scanning](<https://devfeed.tech/tags/security-scanning.md>)

### AI overview

This tutorial explains how to create, test, and publish custom Datadog IaC Security rules using Rego policies. These rules extend default checks to enforce organization-specific infrastructure standards, compliance requirements, and security controls across supported platforms.

### Source excerpt

Create, test, and publish custom IaC Security rules in Datadog to detect organization-specific policy violations before deployment.

## Policy as Code in 2026: OPA, Kyverno, Cedar and What's Next

DevFeed: [Policy as Code in 2026: OPA, Kyverno, Cedar and What's Next](<https://devfeed.tech/articles/policy-as-code-in-2026-opa-kyverno-cedar-and-what-s-next-26775.md>)

Original publisher: [Read original article](<https://www.harness.io/blog/policy-as-code-in-2026-opa-kyverno-cedar-and-what-s-next>)

Author: Abhijit Pujare Eric Minick

Published: 2026-09-11T00:00:00Z

Content type: article

Language: en

Sources: [Harness](<https://devfeed.tech/sources/harness-blog.md>)

Topics: [policy-as-code](<https://devfeed.tech/topics/policy-as-code.md>), [Open Policy Agent](<https://devfeed.tech/topics/open-policy-agent.md>), [rego](<https://devfeed.tech/topics/rego.md>), [Kyverno](<https://devfeed.tech/topics/kyverno.md>), [Software Engineering](<https://devfeed.tech/topics/software-engineering.md>), [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>), [JSON](<https://devfeed.tech/topics/json.md>), [YAML](<https://devfeed.tech/topics/yaml.md>), [AI Agent](<https://devfeed.tech/topics/ai-agent.md>)

Tags: [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [compliance](<https://devfeed.tech/tags/compliance.md>), [json](<https://devfeed.tech/tags/json.md>), [kyverno](<https://devfeed.tech/tags/kyverno.md>), [opa](<https://devfeed.tech/tags/opa.md>), [open-policy-agent](<https://devfeed.tech/tags/open-policy-agent.md>), [policies](<https://devfeed.tech/tags/policies.md>), [policy-as-code](<https://devfeed.tech/tags/policy-as-code.md>), [rego](<https://devfeed.tech/tags/rego.md>), [security](<https://devfeed.tech/tags/security.md>), [software-engineering](<https://devfeed.tech/tags/software-engineering.md>), [yaml](<https://devfeed.tech/tags/yaml.md>)

### AI overview

This article surveys the 2026 Policy as Code ecosystem, comparing general-purpose Open Policy Agent and Rego with specialized approaches such as Kyverno, Cedar, and agent-oriented governance. It discusses the shift toward automated, machine-readable governance, the separation of policy from business logic, and the challenges of authoring and maintaining Rego as schemas evolve.

### Source excerpt

| Blog

## Best Policy as Code Tools in 2026

DevFeed: [Best Policy as Code Tools in 2026](<https://devfeed.tech/articles/best-policy-as-code-tools-in-2026-91257.md>)

Original publisher: [Read original article](<https://www.pulumi.com/blog/best-policy-as-code-tools/>)

Author: Pulumi Content Team

Published: 2026-08-28T00:00:00Z

Content type: article

Language: en

Sources: [Pulumi](<https://devfeed.tech/sources/pulumi.md>)

Topics: [policy-as-code](<https://devfeed.tech/topics/policy-as-code.md>), [Open Policy Agent](<https://devfeed.tech/topics/open-policy-agent.md>), [pulumi](<https://devfeed.tech/topics/pulumi.md>), [Kyverno](<https://devfeed.tech/topics/kyverno.md>), [rego](<https://devfeed.tech/topics/rego.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [Terraform](<https://devfeed.tech/topics/terraform.md>), [Access Control](<https://devfeed.tech/topics/access-control.md>), [versioning](<https://devfeed.tech/topics/versioning.md>), [Multi Agent Systems](<https://devfeed.tech/topics/multi-agent-systems.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [autonomous](<https://devfeed.tech/tags/autonomous.md>), [blast-radius](<https://devfeed.tech/tags/blast-radius.md>), [block](<https://devfeed.tech/tags/block.md>), [blocking](<https://devfeed.tech/tags/blocking.md>), [ci](<https://devfeed.tech/tags/ci.md>), [code](<https://devfeed.tech/tags/code.md>), [credentials](<https://devfeed.tech/tags/credentials.md>), [database](<https://devfeed.tech/tags/database.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [devops](<https://devfeed.tech/tags/devops.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [engine](<https://devfeed.tech/tags/engine.md>), [general](<https://devfeed.tech/tags/general.md>), [identity](<https://devfeed.tech/tags/identity.md>), [infrastructure-as-code](<https://devfeed.tech/tags/infrastructure-as-code.md>), [policy](<https://devfeed.tech/tags/policy.md>), [policy-as-code](<https://devfeed.tech/tags/policy-as-code.md>), [security](<https://devfeed.tech/tags/security.md>), [tools](<https://devfeed.tech/tags/tools.md>)

### AI overview

Policy as code can block a specific infrastructure change before it takes effect, adding a check beyond limiting an AI agent's credentials. The tools differ in scope and workflow: OPA is a general-purpose Rego engine that requires integrations; Sentinel attaches policies to HashiCorp product runs; Kyverno uses Kubernetes YAML at admission time; and Pulumi Policies evaluates Pulumi deployment previews, with preventative, audit, and limited remediation modes. Checkov combines many built-in IaC scanning checks with custom YAML or Python rules, but relies on a CI gate for blocking. The excerpt also describes Gatekeeper, Conftest, and Cloud Custodian for narrower Kubernetes, CI, and live-cloud governance uses. Tool choice depends on where rules must run, policy authors' language familiarity, and whether the need is deployment blocking or reporting. The excerpt recommends that teams may use multiple tools, since those functions address different stages.

### Source excerpt

Policy as code means writing infrastructure rules as version-controlled code, then having a policy engine evaluate every proposed change against those rules before it takes effect. It matters more as AI agents start proposing infrastructure changes alongside engineers, because a policy engine decides whether a given change is allowed to happen, regardless of who or what authored it. Why AI agents raise the stakes for policy as code An AI agent that can open a pull request against your infrastructure code can also, in principle, propose a change that deletes a production database, widens a security group to the internet, or spins up resources nobody approved. Most of the current conversation about containing that risk focuses on identity: scoping what an agent's credentials can reach, and limiting which systems it can call. That is necessary, and it is not the whole answer. Identity scoping bounds what an agent could touch. It says nothing about what a specific, concrete change will actually do. Policy as code operates at a different point in the pipeline. When a policy engine runs against an infrastructure preview, before anything is created, replaced, or destroyed, it evaluates the real, itemized set of resource changes a specific plan would make, and it can block that plan outright if it violates a rule. That is a stronger and more precise guarantee than credential scoping alone, and it holds whether the change came from a human running terraform apply, a CI pipeline, or an autonomous agent. This is the vocabulary infrastructure and security teams reach for by default when this comes up: bounding the blast radius of a change before it executes, on top of bounding the reach of whoever or whatever proposed it. Pulumi's own documentation on policy as code describes preventative policies this way: evaluated during pulumi preview and pulumi up, blocking a deployment outright when a resource change violates a rule, before that resource is ever touched. For a fuller defi

## Automated DevOps Compliance with Harness Rego Policy Packs

DevFeed: [Automated DevOps Compliance with Harness Rego Policy Packs](<https://devfeed.tech/articles/automated-devops-compliance-with-harness-rego-policy-packs-13381.md>)

Original publisher: [Read original article](<https://www.harness.io/blog/compliance-without-complexity-introducing-harness-rego-policy-packs>)

Author: Abhijit Pujare Vishal Vishwaroop

Published: 2026-07-14T00:00:00Z

Content type: release

Language: en

Sources: [Harness](<https://devfeed.tech/sources/harness-blog.md>)

Topics: [DevOps](<https://devfeed.tech/topics/devops.md>), [rego](<https://devfeed.tech/topics/rego.md>), [sdlc](<https://devfeed.tech/topics/sdlc.md>), [Open Policy Agent](<https://devfeed.tech/topics/open-policy-agent.md>), [Security](<https://devfeed.tech/topics/security.md>)

Tags: [audit](<https://devfeed.tech/tags/audit.md>), [compliance](<https://devfeed.tech/tags/compliance.md>), [devops](<https://devfeed.tech/tags/devops.md>), [governance](<https://devfeed.tech/tags/governance.md>), [opa](<https://devfeed.tech/tags/opa.md>), [policy](<https://devfeed.tech/tags/policy.md>), [policy-as-code](<https://devfeed.tech/tags/policy-as-code.md>), [rego](<https://devfeed.tech/tags/rego.md>), [sdlc](<https://devfeed.tech/tags/sdlc.md>)

### AI overview

Harness announces Policy Packs, a curated library of pre-written Rego policies that helps teams align software delivery lifecycles with compliance frameworks. The packs provide out-of-the-box governance controls covering frameworks including SOC 2, NIST, PCI DSS, HIPAA, and HITRUST.

### Source excerpt

Shift governance left with out-of-the-box Policy-as-Code. Simplify compliance and achieve continuous audit readiness across your entire SDLC. | Blog

## Guardrails with OPA Policies in Quarkus LangChain4j

DevFeed: [Guardrails with OPA Policies in Quarkus LangChain4j](<https://devfeed.tech/articles/guardrails-with-opa-policies-in-quarkus-langchain4j-43892.md>)

Original publisher: [Read original article](<https://quarkus.io/blog/quarkus-langchain4j-opa-guardrails/>)

Author: Fabio Burzigotti

Published: 2026-07-10T00:00:00Z

Content type: tutorial

Language: en

Sources: [Quarkus - Supersonic Subatomic Java](<https://devfeed.tech/sources/quarkus-supersonic-subatomic-java.md>)

Topics: [langchain4j](<https://devfeed.tech/topics/langchain4j.md>), [Open Policy Agent](<https://devfeed.tech/topics/open-policy-agent.md>), [Quarkus](<https://devfeed.tech/topics/quarkus.md>), [prompt injection](<https://devfeed.tech/topics/prompt-injection.md>), [pattern matching](<https://devfeed.tech/topics/pattern-matching.md>), [Security](<https://devfeed.tech/topics/security.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [rego](<https://devfeed.tech/topics/rego.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [decoupling](<https://devfeed.tech/topics/decoupling.md>), [WebAssembly](<https://devfeed.tech/topics/web-assembly.md>)

Tags: [input](<https://devfeed.tech/tags/input.md>), [langchain4j](<https://devfeed.tech/tags/langchain4j.md>), [opa](<https://devfeed.tech/tags/opa.md>), [pattern-matching](<https://devfeed.tech/tags/pattern-matching.md>), [policies](<https://devfeed.tech/tags/policies.md>), [prompt-injection](<https://devfeed.tech/tags/prompt-injection.md>), [quarkus](<https://devfeed.tech/tags/quarkus.md>), [rego](<https://devfeed.tech/tags/rego.md>), [security](<https://devfeed.tech/tags/security.md>)

### AI overview

This tutorial shows how to combine deterministic pattern matching with Open Policy Agent policies in Quarkus LangChain4j to implement input guardrails for detecting prompt injection attacks. It explains how externalized Rego policies can decouple security rules from application logic and how OPA WebAssembly evaluation can run in-process, with an LLM fallback for inconclusive cases.

### Source excerpt

Introduction As LLMs become integral to enterprise applications, securing the prompts they receive is critical. Quarkus LangChain4j is a Quarkus extension that allows users to integrate AI into applications, and the Quarkus LangChain4j Workshop is a good way to learn about and practice the fundamentals. Regarding security, Step 9 describes input guardrails, showcasing an example of how a separate LLM can be used to detect prompt injection attacks. However, this approach has costs, both in terms of tokens and performance. Deterministic pattern matching can catch obvious attacks faster, and delegating to the LLM becomes the last option, thus reducing the aforementioned effects. At the same time, Open Policy Agent can be used to define declarative policies that can be externalized. This post shows how to combine both approaches in Quarkus LangChain4j. Open Policy Agent (OPA) Pattern matching against a regex is straightforward, but the usual limitations apply: rules are subject to change rules are usually defined by someone who is not strictly an application developer rules should be defined independently of the application lifecycle. This is where Open Policy Agent comes to help. It provides a framework that streamlines policy management across application deployment technologies, resources and roles. In our specific use case, deterministic guardrails can be defined as OPA policies, decoupling them from the application logic, e.g.: package promptinjection import rego.v1 default pattern_score := 0.0 pattern_score := score if { input.text text_lower := lower(input.text) exact_patterns := [ {"pattern": "ignore previous", "weight": 1.0}, {"pattern": "disregard previous", "weight": 1.0}, {"pattern": "forget your instructions", "weight": 1.0}, {"pattern": "override your instructions", "weight": 1.0}, {"pattern": "ignore all prior", "weight": 1.0}, {"pattern": "new instructions", "weight": 0.95}, {"pattern": "reveal the secret", "weight": 0.95}, {"pattern": "system prompt", "

## How to create custom cloud security controls faster with headless cloud security

DevFeed: [How to create custom cloud security controls faster with headless cloud security](<https://devfeed.tech/articles/how-to-create-custom-cloud-security-controls-faster-with-headless-cloud-security-53227.md>)

Original publisher: [Read original article](<https://webflow.sysdig.com/blog/how-to-create-custom-cloud-security-controls-faster-with-headless-cloud-security>)

Author: Blair Howard

Published: 2026-05-18T00:00:00Z

Content type: tutorial

Language: en

Sources: [Sysdig](<https://devfeed.tech/sources/sysdig-blog.md>)

Topics: [cloud security](<https://devfeed.tech/topics/cloud-security.md>), [iac-security](<https://devfeed.tech/topics/iac-security.md>), [policy-as-code](<https://devfeed.tech/topics/policy-as-code.md>), [rego](<https://devfeed.tech/topics/rego.md>), [Automation](<https://devfeed.tech/topics/automation.md>), [Terraform](<https://devfeed.tech/topics/terraform.md>), [Provisioning](<https://devfeed.tech/topics/provisioning.md>)

Tags: [automation](<https://devfeed.tech/tags/automation.md>), [cloud-security](<https://devfeed.tech/tags/cloud-security.md>), [cloud-security-automation](<https://devfeed.tech/tags/cloud-security-automation.md>), [cloud-security-posture-management-cspm-cspm-custom-controls](<https://devfeed.tech/tags/cloud-security-posture-management-cspm-cspm-custom-controls.md>), [custom-cloud-security-controls](<https://devfeed.tech/tags/custom-cloud-security-controls.md>), [custom-security-policy-workflows](<https://devfeed.tech/tags/custom-security-policy-workflows.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [headless-cloud-security](<https://devfeed.tech/tags/headless-cloud-security.md>), [infrastructure-as-code](<https://devfeed.tech/tags/infrastructure-as-code.md>), [infrastructure-as-code-security](<https://devfeed.tech/tags/infrastructure-as-code-security.md>), [policy-as-code](<https://devfeed.tech/tags/policy-as-code.md>), [rego](<https://devfeed.tech/tags/rego.md>), [rego-policy-creation](<https://devfeed.tech/tags/rego-policy-creation.md>), [security](<https://devfeed.tech/tags/security.md>), [security-policy-automation](<https://devfeed.tech/tags/security-policy-automation.md>), [terraform](<https://devfeed.tech/tags/terraform.md>)

### AI overview

This tutorial explains why creating and operationalizing custom cloud security controls can be slow, especially when policies require specialized Rego expertise and extensive validation. It presents Sysdig's headless cloud security approach, which uses APIs, automation, and Sysdig skills to define, validate, and deploy controls through existing infrastructure workflows such as Terraform.

### Source excerpt

Modern CSPM platforms like Sysdig help organizations identify cloud risks and misconfigurations, but building and operationalizing custom security controls can still be slow and complex. Creating policies often requires deep expertise in policy-as-code languages like Rego, along with significant manual effort to validate and maintain controls across environments. Sysdig's headless cloud security approach addresses this challenge by extending security capabilities beyond the UI through APIs, automation, and Sysdig skills. Instead of manually writing policies, teams can use natural language to define what a control should detect or enforce, while the platform translates that intent into validated policy logic. This streamlines the creation, validation, and deployment of custom controls, reducing reliance on specialized expertise and improving consistency. By integrating with infrastructure-as-code tools like Terraform, organizations can automate policy deployment within existing workflows, enabling faster, scalable, and more efficient cloud security operations.

## Security Benchmarking Authorization Policy Engines: Rego, Cedar, OpenFGA & Teleport ACD

DevFeed: [Security Benchmarking Authorization Policy Engines: Rego, Cedar, OpenFGA & Teleport ACD](<https://devfeed.tech/articles/security-benchmarking-authorization-policy-engines-rego-cedar-openfga-teleport-acd-29590.md>)

Original publisher: [Read original article](<https://goteleport.com/blog/benchmarking-policy-languages/>)

Author: info@goteleport.com (Mohamed Ouad, Doyensec)

Published: 2025-06-04T00:00:00Z

Content type: article

Language: en

Sources: [Teleport](<https://devfeed.tech/sources/teleport.md>)

Topics: [Benchmark](<https://devfeed.tech/topics/benchmark.md>), [Authorization](<https://devfeed.tech/topics/authorization.md>), [Security](<https://devfeed.tech/topics/security.md>), [rego](<https://devfeed.tech/topics/rego.md>), [Open Policy Agent](<https://devfeed.tech/topics/open-policy-agent.md>), [Vulnerabilities](<https://devfeed.tech/topics/vulnerabilities.md>)

Tags: [authorization](<https://devfeed.tech/tags/authorization.md>), [benchmarking](<https://devfeed.tech/tags/benchmarking.md>), [opa](<https://devfeed.tech/tags/opa.md>), [open-policy-agent](<https://devfeed.tech/tags/open-policy-agent.md>), [performance](<https://devfeed.tech/tags/performance.md>), [policy](<https://devfeed.tech/tags/policy.md>), [rego](<https://devfeed.tech/tags/rego.md>), [security](<https://devfeed.tech/tags/security.md>), [security-policy-evaluation-framework](<https://devfeed.tech/tags/security-policy-evaluation-framework.md>), [vulnerabilities](<https://devfeed.tech/tags/vulnerabilities.md>)

### AI overview

This article introduces the Security Policy Evaluation Framework (SPEF), an automated testing and benchmarking system for evaluating authorization policy engines. It describes how SPEF assesses robustness, correctness, and performance across Rego, Cedar, OpenFGA, and Teleport ACD.

### Source excerpt

Explore how the Security Policy Evaluation Framework (SPEF) benchmarks Rego, Cedar, OpenFGA, and Teleport ACD for vulnerabilities, correctness, and performance.

## Traffic Policy Engine - What are CEL variables?

DevFeed: [Traffic Policy Engine - What are CEL variables?](<https://devfeed.tech/articles/traffic-policy-engine-what-are-cel-variables-83354.md>)

Original publisher: [Read original article](<https://ngrok.com/blog/what-are-cel-variables>)

Author: Nijiko Yonskai

Published: 2024-07-01T00:00:00Z

Content type: tutorial

Language: en

Sources: [\[ngrok news\]](<https://devfeed.tech/sources/ngrok-news.md>)

Topics: [policy-as-code](<https://devfeed.tech/topics/policy-as-code.md>), [rego](<https://devfeed.tech/topics/rego.md>), [Firewall](<https://devfeed.tech/topics/firewall.md>), [Environment Variables](<https://devfeed.tech/topics/environment-variables.md>)

Tags: [cel](<https://devfeed.tech/tags/cel.md>), [company](<https://devfeed.tech/tags/company.md>), [http](<https://devfeed.tech/tags/http.md>), [policy](<https://devfeed.tech/tags/policy.md>), [product-updates](<https://devfeed.tech/tags/product-updates.md>), [traffic](<https://devfeed.tech/tags/traffic.md>), [traffic-policy](<https://devfeed.tech/tags/traffic-policy.md>)

### AI overview

The article explains how Common Expression Language (CEL) variables expose request and response details for use in ngrok Traffic Policy expressions. It lists HTTP request variables and demonstrates filtering traffic based on request method and content type.

### Source excerpt

Harness the power of CEL variables in ngrok's Traffic Policy Module to create dynamic, robust traffic filtering rules for your APIs.

## Rego 103: Types of values and rules

DevFeed: [Rego 103: Types of values and rules](<https://devfeed.tech/articles/rego-103-types-of-values-and-rules-8061.md>)

Original publisher: [Read original article](<https://snyk.io/blog/rego-103-values-and-rules/>)

Author: Jasper Van der Jeugt; Becki Lee

Published: 2023-11-16T05:00:00Z

Content type: article

Language: en

Sources: [Snyk](<https://devfeed.tech/sources/blog-rss-feed-snyk.md>)

Topics: [rego](<https://devfeed.tech/topics/rego.md>), [Open Policy Agent](<https://devfeed.tech/topics/open-policy-agent.md>), [Infrastructure as code](<https://devfeed.tech/topics/infrastructure-as-code.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [beginner](<https://devfeed.tech/tags/beginner.md>), [blog](<https://devfeed.tech/tags/blog.md>), [blog-post](<https://devfeed.tech/tags/blog-post.md>), [cloud-security](<https://devfeed.tech/tags/cloud-security.md>), [code](<https://devfeed.tech/tags/code.md>), [developer](<https://devfeed.tech/tags/developer.md>), [devrel](<https://devfeed.tech/tags/devrel.md>), [enablement](<https://devfeed.tech/tags/enablement.md>), [iac-security](<https://devfeed.tech/tags/iac-security.md>), [infrastructure-as-code](<https://devfeed.tech/tags/infrastructure-as-code.md>), [learn](<https://devfeed.tech/tags/learn.md>), [opa](<https://devfeed.tech/tags/opa.md>), [policy](<https://devfeed.tech/tags/policy.md>), [programming](<https://devfeed.tech/tags/programming.md>), [rego](<https://devfeed.tech/tags/rego.md>), [snyk-cloud](<https://devfeed.tech/tags/snyk-cloud.md>), [snyk-iac](<https://devfeed.tech/tags/snyk-iac.md>), [types](<https://devfeed.tech/tags/types.md>)

### AI overview

This beginner-focused article is the third part of a Rego introduction series. It explains scalar and composite value types, including strings, numbers, booleans, null, arrays, objects, and sets, and introduces set rules, object rules, functions, and iteration for writing policies evaluated by OPA.

### Source excerpt

Learn about the different types of Values and Rules you can use to build policies in OPA & Rego.

## Rego 102: Combining queries with AND/OR and custom messages

DevFeed: [Rego 102: Combining queries with AND/OR and custom messages](<https://devfeed.tech/articles/rego-102-combining-queries-with-and-or-and-custom-messages-8062.md>)

Original publisher: [Read original article](<https://snyk.io/blog/rego-for-beginners-part-2/>)

Author: Jasper Van der Jeugt; Becki Lee

Published: 2023-11-09T06:00:00Z

Content type: article

Language: en

Sources: [Snyk](<https://devfeed.tech/sources/blog-rss-feed-snyk.md>)

Topics: [rego](<https://devfeed.tech/topics/rego.md>), [Open Policy Agent](<https://devfeed.tech/topics/open-policy-agent.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Cloud](<https://devfeed.tech/topics/cloud.md>), [Infrastructure as code](<https://devfeed.tech/topics/infrastructure-as-code.md>), [JSON](<https://devfeed.tech/topics/json.md>), [YAML](<https://devfeed.tech/topics/yaml.md>)

Tags: [beginner](<https://devfeed.tech/tags/beginner.md>), [blog](<https://devfeed.tech/tags/blog.md>), [blog-post](<https://devfeed.tech/tags/blog-post.md>), [cloud-security](<https://devfeed.tech/tags/cloud-security.md>), [code](<https://devfeed.tech/tags/code.md>), [developer](<https://devfeed.tech/tags/developer.md>), [devrel](<https://devfeed.tech/tags/devrel.md>), [enablement](<https://devfeed.tech/tags/enablement.md>), [guide](<https://devfeed.tech/tags/guide.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [iac-security](<https://devfeed.tech/tags/iac-security.md>), [opa](<https://devfeed.tech/tags/opa.md>), [policy](<https://devfeed.tech/tags/policy.md>), [programming](<https://devfeed.tech/tags/programming.md>), [rego](<https://devfeed.tech/tags/rego.md>), [snyk-cloud](<https://devfeed.tech/tags/snyk-cloud.md>), [snyk-iac](<https://devfeed.tech/tags/snyk-iac.md>)

### AI overview

A beginner-focused guide to intermediate Rego syntax, explaining how to combine queries with AND and OR and introduce custom messages. It describes how OPA evaluates Rego policies against JSON or YAML input documents.

### Source excerpt

Learn how to use AND and OR rules and custom messages using OPA and Rego in the second part of our beginner's guide to Rego.

## Rego 101: Introduction to Rego

DevFeed: [Rego 101: Introduction to Rego](<https://devfeed.tech/articles/rego-101-introduction-to-rego-7987.md>)

Original publisher: [Read original article](<https://snyk.io/blog/introduction-to-rego/>)

Author: Becki Lee

Published: 2023-11-02T05:00:00Z

Content type: tutorial

Language: en

Sources: [Snyk](<https://devfeed.tech/sources/blog-rss-feed-snyk.md>)

Topics: [rego](<https://devfeed.tech/topics/rego.md>), [Open Policy Agent](<https://devfeed.tech/topics/open-policy-agent.md>), [Infrastructure as code](<https://devfeed.tech/topics/infrastructure-as-code.md>), [Security](<https://devfeed.tech/topics/security.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [blog](<https://devfeed.tech/tags/blog.md>), [blog-post](<https://devfeed.tech/tags/blog-post.md>), [cloud-security](<https://devfeed.tech/tags/cloud-security.md>), [developer](<https://devfeed.tech/tags/developer.md>), [devrel](<https://devfeed.tech/tags/devrel.md>), [enablement](<https://devfeed.tech/tags/enablement.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [iac-security](<https://devfeed.tech/tags/iac-security.md>), [infrastructure-as-code](<https://devfeed.tech/tags/infrastructure-as-code.md>), [infrastructure-as-code-iac](<https://devfeed.tech/tags/infrastructure-as-code-iac.md>), [learn](<https://devfeed.tech/tags/learn.md>), [opa](<https://devfeed.tech/tags/opa.md>), [policy](<https://devfeed.tech/tags/policy.md>), [rego](<https://devfeed.tech/tags/rego.md>), [security](<https://devfeed.tech/tags/security.md>), [snyk-cloud](<https://devfeed.tech/tags/snyk-cloud.md>), [snyk-iac](<https://devfeed.tech/tags/snyk-iac.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

A beginner-focused introduction to Rego, the declarative policy language used with Open Policy Agent (OPA). It explains policy as code, how OPA evaluates Rego policies, and how these policies can be applied to cloud and infrastructure-as-code resources.

### Source excerpt

Learn how to write your first policy as code rules in Rego. This Rego tutorial for beginners covers the basics of Rego syntax and using OPA.

## Conquering your Build Horizon

DevFeed: [Conquering your Build Horizon](<https://devfeed.tech/articles/conquering-your-build-horizon-13012.md>)

Original publisher: [Read original article](<https://www.chainguard.dev/unchained/conquering-your-build-horizon>)

Published: 2023-10-10T00:00:00Z

Content type: article

Language: en

Sources: [Chainguard: Unchained](<https://devfeed.tech/sources/chainguard-unchained.md>)

Topics: [Automation](<https://devfeed.tech/topics/automation.md>), [rego](<https://devfeed.tech/topics/rego.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [Security](<https://devfeed.tech/topics/security.md>), [Vulnerabilities](<https://devfeed.tech/topics/vulnerabilities.md>), [GitHub Copilot](<https://devfeed.tech/topics/github-copilot.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [automation](<https://devfeed.tech/tags/automation.md>), [base-images](<https://devfeed.tech/tags/base-images.md>), [build-horizon](<https://devfeed.tech/tags/build-horizon.md>), [chainguard-images](<https://devfeed.tech/tags/chainguard-images.md>), [config](<https://devfeed.tech/tags/config.md>), [container-images](<https://devfeed.tech/tags/container-images.md>), [defense-in-depth](<https://devfeed.tech/tags/defense-in-depth.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [github-action](<https://devfeed.tech/tags/github-action.md>), [rego](<https://devfeed.tech/tags/rego.md>), [security](<https://devfeed.tech/tags/security.md>), [vulnerability](<https://devfeed.tech/tags/vulnerability.md>)

### AI overview

The article presents Build Horizon, a policy that limits how long build artifacts such as binaries and container images may remain in production before being rebuilt. It explains how freshness controls, dependency automation, and policy checks can reduce risks from outdated software and long-lived builds.

### Source excerpt

"Build Horizon" is a practice that imposes a maximum age on build artifacts. Learn more about how it works and see an example in action!

## Chainguard open sources new policy catalog for Sigstore policy-controller

DevFeed: [Chainguard open sources new policy catalog for Sigstore policy-controller](<https://devfeed.tech/articles/chainguard-open-sources-new-policy-catalog-for-sigstore-policy-controller-12974.md>)

Original publisher: [Read original article](<https://www.chainguard.dev/unchained/chainguard-open-sources-new-policy-catalog-for-sigstore-policy-controller>)

Published: 2023-04-18T00:00:00Z

Content type: release

Language: en

Sources: [Chainguard: Unchained](<https://devfeed.tech/sources/chainguard-unchained.md>)

Topics: [sigstore policy controller](<https://devfeed.tech/topics/sigstore-policy-controller.md>), [sigstore](<https://devfeed.tech/topics/sigstore.md>), [chainguard](<https://devfeed.tech/topics/chainguard.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [rego](<https://devfeed.tech/topics/rego.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [attestation](<https://devfeed.tech/tags/attestation.md>), [chainguard](<https://devfeed.tech/tags/chainguard.md>), [cosign](<https://devfeed.tech/tags/cosign.md>), [cue](<https://devfeed.tech/tags/cue.md>), [cves](<https://devfeed.tech/tags/cves.md>), [cvss](<https://devfeed.tech/tags/cvss.md>), [format](<https://devfeed.tech/tags/format.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [kubernetes-security](<https://devfeed.tech/tags/kubernetes-security.md>), [native](<https://devfeed.tech/tags/native.md>), [open](<https://devfeed.tech/tags/open.md>), [organizations](<https://devfeed.tech/tags/organizations.md>), [oss](<https://devfeed.tech/tags/oss.md>), [pci-dss](<https://devfeed.tech/tags/pci-dss.md>), [policy-controller](<https://devfeed.tech/tags/policy-controller.md>), [rego](<https://devfeed.tech/tags/rego.md>), [security](<https://devfeed.tech/tags/security.md>), [sigstore](<https://devfeed.tech/tags/sigstore.md>), [supply-chain](<https://devfeed.tech/tags/supply-chain.md>), [supply-chain-security](<https://devfeed.tech/tags/supply-chain-security.md>)

### AI overview

Chainguard has open sourced its policy catalog for Sigstore policy-controller, making it available to existing users, organizations, and open source projects; community contributions are welcomed through the catalog repository. The controller enforces Kubernetes workload policies using verifiable supply-chain metadata from cosign and supports custom policies in CUE or Rego. Chainguard also describes a native cosign verification API that lets users declare policies in YAML. One example policy fails images with high or critical CVEs, using cosign attestation data; the excerpt does not provide further catalog details.

### Source excerpt

To help unlock benefits of the Sigstore policy-controller, Chainguard open sources a policy catalog that can be adopted to improve your supply chain security.