Skip to content

Commit

Permalink
fix: align the usage of --sink for the bombastic walker
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Sep 29, 2023
1 parent 5607304 commit f3e60b2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions DEVELOPING.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,14 @@ curl -H "transfer-encoding: chunked" \
You can also crawl Red Hat security data using the walker, which will push data through bombastic:

```shell
RUST_LOG=info cargo run -p trust bombastic walker --bombastic-url http://localhost:8082
RUST_LOG=info cargo run -p trust bombastic walker --sink http://localhost:8082
```

Assuming you have the system set up using `--devmode`, you can use the following command to run the walker with
a matching OIDC client configuration:

```shell
RUST_LOG=info cargo run -p trust bombastic walker --bombastic-url http://localhost:8082 --devmode -3
RUST_LOG=info cargo run -p trust bombastic walker --sink http://localhost:8082 --devmode -3
```

Example for importing an SBOM generated by `syft`:
Expand Down
2 changes: 1 addition & 1 deletion bombastic/walker/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl Run {

let scanner = Scanner::new(Options {
source,
target: self.sink,
target: self.sink.join("/api/v1/sbom")?,
keys,
provider,
validation_date,
Expand Down
2 changes: 1 addition & 1 deletion deploy/compose/compose-walkers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:

bombastic-walker:
image: $TRUST_IMAGE:${TRUST_VERSION:?TRUST_VERSION is required}
command: bombastic walker --devmode -3 --bombastic-url http://bombastic-api:$BOMBASTIC_API_PORT --scripts-path /usr/bin
command: bombastic walker --devmode -3 --sink http://bombastic-api:$BOMBASTIC_API_PORT --scripts-path /usr/bin
depends_on:
bombastic-api:
condition: service_healthy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
- "bombastic"
- "walker"
- "--sink"
- "https://sbom.{{ .Values.domain }}/api/v1/sbom"
- "https://sbom.{{ .Values.domain }}"
- "--source"
- "{{ .Values.bombastic.walker.source }}"
- "-3"
Expand Down

0 comments on commit f3e60b2

Please sign in to comment.