This service will listen for messages and handle the requirements of the payload.
Currently, the main purpose is to consume a Software Bill of Materials (SBOM) of facts from the logs queue, process and push to the api and s3 bucket.
go run main.go \
-rabbitmq-username guest \
-rabbitmq-password guest \
-lagoon-api-host http://localhost:8888/graphql \
--jwt-token-signing-key secret \
--access-key-id minio \
--secret-access-key minio123
To compile GraphQL schema, type-safe structs and response data with genqlient we just add a query/mutation inside of lagoonclient/genqlient.graphql
and run this:
go generate
"labels": {
"lagoon.sh/project": "lagoon",
"lagoon.sh/environment": "main",
"lagoon.sh/service": "cli",
"lagoon.sh/insightsType": ["sbom", "image"],
"lagoon.sh/insightsOutputCompressed": ["true", "false" (default)] (optional),
"lagoon.sh/insightsOutputFileExt": ["json (default)", "txt", "csv", "html", "jpg"] (optional),
"lagoon.sh/insightsOutputFileMIMEType": ["text/html", "image/svg+xml"] (optional)
}