Skip to main content

Crate crue_dsl

Crate crue_dsl 

Source
Expand description

CRUE DSL - Domain Specific Language for Zero-Trust Rules

This module provides a compiled DSL for defining access control rules that are signed, versioned, and cannot be bypassed at runtime.

§DSL Syntax Example

RULE CRUE_001 VERSION 1.2.0 SIGNED
WHEN
    agent.requests_last_hour >= 50
THEN
    BLOCK WITH CODE "VOLUME_EXCEEDED"
    ALERT SOC

Modules§

ast
CRUE DSL Abstract Syntax Tree
compiler
CRUE DSL Compiler
error
CRUE DSL Error Types
parser
CRUE DSL Parser
signature
CRUE Rule Signature Module

Structs§

CompiledRule
Compiled rule binary representation
RuleMetadata
Rule metadata
RuleSource
DSL source code representation

Enums§

Action
Rule action types
Severity
Rule severity levels

Constants§

RULE_PREFIX
CRUE Rule identifier following the specification
RULE_VERSION