Documentation

Cedar.SymCCOpt.CompiledPolicies

Equations
  • One or more equations did not get rendered due to their size.
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 Term of type .option bool

    • εnv : SymEnv

      SymEnv representing the environment this policy was compiled for

    • policy : Spec.Policy

      typechecked policy

    • footprint : Data.Set Term

      footprint of the policy

    • acyclicity : Data.Set Term

      acyclicity constraints for this policy

    Instances For
      Equations
      • One or more equations did not get rendered due to their size.
      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 Term of type .bool representing the authorization decision

            • εnv : SymEnv

              SymEnv representing the environment these policies were compiled for

            • policies : Spec.Policies

              typechecked policies

            • footprint : Data.Set Term

              footprint of the policies

            • acyclicity : Data.Set Term

              acyclicity constraints for these policies

            Instances For
              Equations
              • One or more equations did not get rendered due to their size.
              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
                      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.

                          Instances For