Cerbos JavaScript SDK
    Preparing search index...

    Interface PolicySourceGit

    Policies sourced from a Git repository using the git storage driver.

    interface PolicySourceGit {
        branch: string;
        hash: string;
        kind: "git";
        repositoryUrl: string;
        subdirectory: string;
    }
    Index

    Properties

    branch: string

    Branch from which policies were cloned.

    hash: string

    Hash of the commit from which policies were cloned.

    Requires the Cerbos policy decision point server to be at least v0.52.

    kind: "git"

    Discriminator to mark the policy source as Git.

    repositoryUrl: string

    URL of the Git repository.

    subdirectory: string

    Subdirectory within the repository from which policies were loaded.