CtrlK
BlogDocsLog inGet started
Tessl Logo

nicholasjackson/opa-rego-language

Rego is the declarative policy language used by Open Policy Agent (OPA). This tile covers writing and testing Rego policies for Kubernetes admission control, Terraform and infrastructure-as-code plan validation, Docker container authorization, HTTP API authorization, RBAC and role-based access control, data filtering, metadata annotations with opa inspect, and OPA policy testing with opa test.

99

1.19x

Quality

Pending

Does it follow best practices?

Impact

99%

1.19x

Average score across 31 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

rubric.jsonevals/scenario-26/

{
  "context": "Evaluates whether helper functions take explicit arguments rather than referencing `input` or `data` directly inside the function body (external-reference Regal rule).",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Helper functions take explicit container argument",
      "description": "Helper functions (e.g. `is_privileged`, `has_resource_limits`) take the container as an explicit argument and do not reference `input` or `data` inside the function body",
      "max_score": 40
    },
    {
      "name": "Separate helpers for privileged and resource limit checks",
      "description": "There are distinct named helper functions or rules for the privileged check and the resource limits check — not all logic inlined in the deny rule",
      "max_score": 20
    },
    {
      "name": "deny contains msg pattern with container name",
      "description": "Deny rules use `deny contains msg if { ... }` and include the container name in the message via `sprintf`",
      "max_score": 15
    },
    {
      "name": "Tests pass",
      "description": "All tests pass when running `opa test . -v`",
      "max_score": 25
    }
  ]
}

README.md

rules.md

tile.json