Policy

Policy#

Policy Engine Attributes#

Attributes emitted by policy engines (OPA, Gatekeeper, etc.) during policy evaluation and enforcement. Maps to GEMARA Layer 4 (Evaluation) for Policy-as-Code workflows.

AttributeTypeDescriptionExamplesStability
policy.engine.namestringName of the policy engine that performed the evaluation or enforcement action.OPA; Gatekeeper; Conftest; SentinelDevelopment
policy.engine.versionstringVersion of the policy engine.v3.14.0; v0.45.0; v1.2.3; v2.0.1Development
policy.evaluation.messagestringAdditional context about the policy evaluation result.The policy evaluation failed due to a missing attribute.Development
policy.evaluation.resultstringOutcome of the policy rule evaluation, indicating the result of the policy check.Not Run; Passed; FailedDevelopment
policy.rule.idstringUnique identifier for the policy rule being evaluated or enforced.deny-root-user; require-encryption; check-labelsDevelopment
policy.rule.namestringHuman-readable name of the policy rule.Deny Root User; Require Encryption; Check Resource LabelsDevelopment
policy.rule.uristringSource control URL and version of the policy-as-code file for auditability.github.com/org/policy-repo/b8a7c2e; gitlab.com/company/policies@v1.2.3Development
policy.target.environmentstringEnvironment where the target resource or entity exists.production; staging; developmentDevelopment
policy.target.idstringUnique identifier for the resource or entity being evaluated or enforced against.deployment-123; resource-456; user-789Development
policy.target.namestringHuman-readable name of the resource or entity being evaluated or enforced against.frontend-deployment; s3-bucket-secrets; admin-userDevelopment
policy.target.typestringType of the resource or entity being evaluated or enforced against.deployment; resource; user; configurationDevelopment

policy.evaluation.result has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

ValueDescriptionStability