# METADATA # schemas: # - input: schema["input"] # - data: schema["data"] package rules.valid_environment import rego.v1 default allow := false allow if { count(violations) == 0 } violations contains {"code": "unknown_environment", "message": sprintf("environment %q is not configured", [input.deployment.environment])} if { input.deployment not data.deploygate.config[input.deployment.environment] }