Documentation

Cedar.Slice.PolicySlice

This file defines a simple policy slicing algorithm that is based on policy scopes. For proofs of correctness, see Cedar.Thm.PolicySlice.

A policy bound consists of optional principal and resource entities.

Instances For
    Equations
    Instances For
      def Cedar.Slice.satisfiedBound (bound : PolicyBound) (request : Spec.Request) (entities : Spec.Entities) :

      A bound is satisfied by a request and store if the request principal and resource fields are descendents of the corresponding bound fields (or if those bound fields are none).

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        @[reducible, inline]

        A bound analysis takes as input a policy and returns a PolicyBound.

        Equations
        Instances For

          A bound-based slicing algorithm takes as input a bound analysis, request, entities, and policies, and filters out the policies whose bound is not satisfied by the request and entities.

          Equations
          Instances For

            Scope-based bound analysis extracts the bound from the policy scope.

            Equations
            Instances For