Skip to content

Commit 2e68624

Browse files
authored
Keep onguard (#460)
* build: trigger new build Signed-off-by: Ruben Romero Montes <[email protected]> * feat: add tpa client authentication (#409) * feat: add tpa client authentication Signed-off-by: Ruben Romero Montes <[email protected]> * feat: allow disable tpa auth Signed-off-by: Ruben Romero Montes <[email protected]> * chore: update deployment files Signed-off-by: Ruben Romero Montes <[email protected]> --------- Signed-off-by: Ruben Romero Montes <[email protected]> * fix: timeout cannot be parsed (#410) Signed-off-by: Ruben Romero Montes <[email protected]> * fix: sync generated sources (#419) Signed-off-by: Ruben Romero Montes <[email protected]> * feat: support cyclonedx 1.6 (#424) Signed-off-by: Ruben Romero Montes <[email protected]> * feat: split tpa requests (#429) Signed-off-by: Ruben Romero Montes <[email protected]> * feat: allow users to opt-out from trusted content (#433) Signed-off-by: Ruben Romero Montes <[email protected]> * feat: implement model card request and query (#435) * feat: implement model card request and query Signed-off-by: Ruben Romero Montes <[email protected]> * feat: added examples and updated db to use flyway Signed-off-by: Ruben Romero Montes <[email protected]> * feat: use h2 for tests Signed-off-by: Ruben Romero Montes <[email protected]> * docs: update documentation and refactor examples folders Signed-off-by: Ruben Romero Montes <[email protected]> * feat: add tests Signed-off-by: Ruben Romero Montes <[email protected]> * fix: missing generated js source Signed-off-by: Ruben Romero Montes <[email protected]> --------- Signed-off-by: Ruben Romero Montes <[email protected]> * feat: adapt tpa response (#447) Signed-off-by: Ruben Romero Montes <[email protected]> * feat: restore osv integration Signed-off-by: Ruben Romero Montes <[email protected]> --------- Signed-off-by: Ruben Romero Montes <[email protected]>
1 parent 1b07f00 commit 2e68624

32 files changed

+3132
-638
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ hs_err_pid*
2323
.env
2424
.flattened-pom.xml
2525
.quarkus
26-
.local-deploy
26+
.local-deploy

deploy/openshift/template.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ objects:
101101
secretKeyRef:
102102
name: exhort-secret
103103
key: tpa.client.secret
104-
- name: API_SNYK_DISABLED
105-
value: "true"
106-
- name: API_OSSINDEX_DISABLED
104+
- name: API_TPA_DISABLED
107105
value: "true"
108106
- name: TELEMETRY_WRITE_KEY
109107
valueFrom:

src/main/java/com/redhat/exhort/config/metrics/CustomMetrics.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public class CustomMetrics {
4343
"snykRequest",
4444
"getTrustedContent",
4545
"tpaRequest",
46+
"osvRequest",
4647
"ossValidateCredentials",
4748
"ossSplitReq",
4849
"ossIndexRequest",

src/main/java/com/redhat/exhort/integration/Constants.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ private Constants() {}
6464
public static final String SNYK_PROVIDER = "snyk";
6565
public static final String OSS_INDEX_PROVIDER = "oss-index";
6666
public static final String TRUSTED_CONTENT_PROVIDER = "trusted-content";
67+
public static final String OSV_PROVIDER = "osv";
6768
public static final String TPA_PROVIDER = "tpa";
6869
public static final String UNKNOWN_PROVIDER = "unknown";
6970

@@ -100,6 +101,9 @@ private Constants() {}
100101
public static final String OSS_INDEX_AUTH_COMPONENT_API_PATH = "/authorized/component-report";
101102
public static final String OSS_INDEX_VERSION_PATH = "/version";
102103

104+
public static final String OSV_NVD_PURLS_PATH = "/purls";
105+
public static final String OSV_NVD_HEALTH_PATH = "/q/health";
106+
103107
public static final String TRUSTED_CONTENT_PATH = "/recommend";
104108
public static final String TPA_ANALYZE_PATH = "/vulnerability/analyze";
105109
public static final String TPA_HEALTH_PATH = "/health/live";
@@ -120,6 +124,7 @@ private Constants() {}
120124
{
121125
add(SNYK_PROVIDER);
122126
add(OSS_INDEX_PROVIDER);
127+
add(OSV_PROVIDER);
123128
add(TPA_PROVIDER);
124129
}
125130
});

src/main/java/com/redhat/exhort/integration/backend/sbom/SbomParser.java

Lines changed: 0 additions & 32 deletions
This file was deleted.

src/main/java/com/redhat/exhort/integration/backend/sbom/SbomParserFactory.java

Lines changed: 0 additions & 38 deletions
This file was deleted.

src/main/java/com/redhat/exhort/integration/backend/sbom/cyclonedx/CycloneDxParser.java

Lines changed: 0 additions & 218 deletions
This file was deleted.

0 commit comments

Comments
 (0)