Evidence Predicate

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide
ft:sourceType
Paligo

Note

The definition of the predicate is taken directly from the in-toto attestation framework.

The predicate, which is the innermost layer of an evidence file, contains the actual contents of the evidence file. The predicate consists of a JSON file containing arbitrary metadata (one or more claims) about the evidence subject. The user defines the contents and format of the JSON file, but they are typically defined by the file's predicate type.

The predicate is part of the evidence payload, which is the middle layer of an evidence file.

Sample Predicate

The following JSON file contains a sample predicate for external evidence about test results performed on an artifact:

"tests": {
            "testTool": "Selenium",
            "testStatistics": {
                "passed": 76,
                "failed":9,
                "other":6,
                "total":132
              },
              "tests": [
                {
                  "testId": "7878",
                  "testName": "Login flow",
                  "testDescription": "Tests the login functionality",
                  "testStatus": "passed",
                  "env": {
                    "device": "desktop",
                    "os": "windows"
                  },
                  "steps": [
                    {
                      "name": "",
                      "description": "",
                      "expectedResult": ""
                    }
                  ]
                }
            ]
        }
}