@@ -15,16 +15,22 @@ $ pip install git+https://github.com/RedHatProductSecurity/trustshell.git#egg=tr
15
15
16
16
Ensure the following environment variables are set:
17
17
18
- ` export TRUSTIFY_URL="https://atlas.release.stage.devshift.net" `
18
+ Atlas Production:
19
+ ` export TRUSTIFY_URL="https://atlas.release.devshift.net" `
20
+ ` export AUTH_ENDPOINT="https://auth.redhat.com/auth/realms/EmployeeIDP/protocol/openid-connect" `
19
21
20
22
21
- stage :
23
+ Atlas Stage :
22
24
25
+ ` export TRUSTIFY_URL="https://atlas.release.stage.devshift.net" `
23
26
` export AUTH_ENDPOINT="https://auth.stage.redhat.com/auth/realms/EmployeeIDP/protocol/openid-connect" `
24
27
25
28
## Usage
26
29
27
30
### Find matching PackageURLs in Trustify:
31
+ Each component in Atlas has a PackageURL (purl). This helps remove ambiguity around the type of component.
32
+ Before relating a component to a product, you first need to determine the purl of the component.
33
+ You can do using trustshell, eg:
28
34
29
35
``` commandline
30
36
$ trust-purl qemu
35
41
```
36
42
37
43
### Find matching products for purl:
44
+ Once you have a PackageURL, you can then relate that to any products using the ` trust-products ` command. For example:
38
45
39
46
``` commandline
40
47
$ trust-products pkg:oci/quay-builder-qemu-rhcos-rhel8
@@ -44,3 +51,18 @@ pkg:oci/quay-builder-qemu-rhcos-rhel8
44
51
└── pkg:oci/quay-builder-qemu-rhcos-rhel8?tag=v3.12.8-1
45
52
└── cpe:/a:redhat:quay:3:*:el8:*
46
53
```
54
+
55
+ ### Prime the Trusify graph:
56
+ If components are found with the trust-purl command, but they are not being linked to products with
57
+ trust-products, it could be because the Trustify graph cache is not yet primed. In order to prime the graph
58
+ cache run the ` trust-prime ` command as follows.
59
+
60
+ ``` commandline
61
+ # trust-prime
62
+ Status before prime:
63
+ graph count: 0
64
+ sbom_count: 673
65
+ Priming graph ...
66
+ ```
67
+
68
+ It can also be run with ` --check ` to see the graph and sbom counts without actually priming the garph cache.
0 commit comments