- validationError (e : Validation.ValidationError) : CompiledPolicyError
- symCCError (e : Error) : CompiledPolicyError
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Cedar.SymCC.instBEqCompiledPolicyError.beq (Cedar.SymCC.CompiledPolicyError.validationError a) (Cedar.SymCC.CompiledPolicyError.validationError b) = (a == b)
- Cedar.SymCC.instBEqCompiledPolicyError.beq (Cedar.SymCC.CompiledPolicyError.symCCError a) (Cedar.SymCC.CompiledPolicyError.symCCError b) = (a == b)
- Cedar.SymCC.instBEqCompiledPolicyError.beq x✝¹ x✝ = false
Instances For
Equations
- One or more equations did not get rendered due to their size.
Represents a symbolically compiled policy. This can be fed into the various functions in SymCCOpt.lean for efficient solver queries (that don't have to repeat symbolic compilation).
- term : Term
typechecked policy compiled to a
Termof type .option bool - εnv : SymEnv
SymEnvrepresenting the environment this policy was compiled for - policy : Spec.Policy
typechecked policy
footprint of the policy
acyclicity constraints for this policy
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Compile a policy p for the given environment Γ.
This function calls the Cedar typechecker to obtain a policy p' that is
semantically equivalent to p and well-typed with respect to Γ.
Then, it runs the symbolic compiler to produce a compiled policy.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Represents a symbolically compiled policyset. This can be fed into the various functions in SymCCOpt.lean for efficient solver queries (that don't have to repeat symbolic compilation).
- term : Term
typechecked policies compiled to a single
Termof type .bool representing the authorization decision - εnv : SymEnv
SymEnvrepresenting the environment these policies were compiled for - policies : Spec.Policies
typechecked policies
footprint of the policies
acyclicity constraints for these policies
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Compile a set of policies ps for the given environment Γ.
This function calls the Cedar typechecker on each p ∈ ps to obtain a policy p'
that is semantically equivalent to p and well-typed with respect to Γ.
Then, it runs the symbolic compiler to produce a compiled policy.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A CompiledPolicySet that represents the policyset that allows all requests in
the εnv.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A CompiledPolicySet that represents the policyset that denies all requests in
the εnv.
Equations
- Cedar.SymCC.CompiledPolicySet.denyAll εnv = { term := Cedar.SymCC.Term.bool false, εnv := εnv, policies := [], footprint := Cedar.Data.Set.empty, acyclicity := Cedar.Data.Set.empty }
Instances For
Convert a CompiledPolicy to a CompiledPolicySet representing a singleton
policyset with just that policy.
This function is intended to be much more efficient than re-compiling with
CompiledPolicySet.compile.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Represents a CompiledPolicy or a CompiledPolicySet, for APIs that don't care
which one they get.
- policy (cp : CompiledPolicy) : CompiledPolicies
- pset (cpset : CompiledPolicySet) : CompiledPolicies
Instances For
Equations
- (Cedar.SymCC.CompiledPolicies.policy cp).allPolicies = [cp.policy]
- (Cedar.SymCC.CompiledPolicies.pset cpset).allPolicies = cpset.policies
Instances For
Equations
- (Cedar.SymCC.CompiledPolicies.policy cp).footprint = cp.footprint
- (Cedar.SymCC.CompiledPolicies.pset cpset).footprint = cpset.footprint
Instances For
Equations
- (Cedar.SymCC.CompiledPolicies.policy cp).εnv = cp.εnv
- (Cedar.SymCC.CompiledPolicies.pset cpset).εnv = cpset.εnv