Documentation

Cedar.Validation.Validator

This file defines the Cedar validator.

Return every schema-defined environment.

Equations
  • One or more equations did not get rendered due to their size.
Instances For

    Return all the schema-defined environments for a particular action, or none if this action is not declared in the schema.

    Note that some ∅ means something different than none -- some ∅ means that the action was declared in the schema, but there are no valid environments for it

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For

      Return the environment for the particular (p,a,r) tuple, or none if this is not a valid tuple in this schema

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

            Check that all referenced entity types, actions, and enum entities are declared in the schema. The Lean model of typechecking also does this check, but Rust does it only as a separate pass. This means the Rust validator will report undefined entity types that the Lean typechecker ignores due to short-circuiting. We include this validation pass so that the validators behave exactly the same, but we don't need to prove anything about it for soundness.

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

                Check that a policy is Boolean-typed.

                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

                    Check a policy under multiple environments.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For

                      Analyze a set of policies to check that all are boolean-typed, and that none are guaranteed to be false under all possible environments.

                      Equations
                      Instances For

                        Analyze a set of policies to check that all are boolean-typed, and that none are guaranteed to be false under all possible environments.

                        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
                            Equations
                            Instances For