Michael D Brown 48cbaca8a0 Update apis (#526)
* Update apis

Closes #436 

Updates APIs to 1.2-rc1 ahead of unscored round 2

* Update values.yaml

* Bump competition/crs API to v1.2

* Breaking changes in competition api config

* Check for SARIFs in CI (#527)

* Check for SARIFs in CI

* Remove trailing bracket

---------

Co-authored-by: Henrik Brodin <90325907+hbrodin@users.noreply.github.com>
2025-05-02 08:44:33 -04:00
2025-05-02 08:44:33 -04:00
2025-05-02 08:44:33 -04:00
2025-05-02 08:44:33 -04:00
2025-05-01 14:23:13 -04:00
2025-03-06 09:23:22 -05:00
2025-05-02 08:44:33 -04:00
2025-04-30 21:01:48 +02:00
2025-01-17 14:57:33 +01:00
2025-02-18 11:59:16 -05:00
2025-01-26 13:09:37 -05:00
2025-04-24 09:37:01 +02:00
2025-04-22 17:33:32 +02:00
2025-04-25 07:37:39 -04:00
2025-01-13 13:48:03 +01:00
2025-01-23 09:32:18 +01:00
2025-04-16 19:19:43 +02:00

Trail of Bits AIxCC Finals CRS

Dependencies

Follow the install instructions for the required dependencies:

Configuration

Create a new configuration file, starting from the default template:

cp \
  deployment/env.template \
  deployment/env

Next, configure the following options. Follow the instructions in the comments when setting the GHCR_AUTH value.

SCANTRON_GITHUB_PAT
GHCR_AUTH
OPENAI_API_KEY
ANTHROPIC_API_KEY
DOCKER_USERNAME
DOCKER_PAT

Settings specific to local development and testing

Use the hardcoded test credentials found in the comments:

AZURE_ENABLED=false
TAILSCALE_ENABLED=false
COMPETITION_API_KEY_ID: `11111111-1111-1111-1111-111111111111`
COMPETITION_API_KEY_TOKEN: `secret`
CRS_KEY_ID="515cc8a0-3019-4c9f-8c1c-72d0b54ae561"
CRS_KEY_TOKEN="VGuAC8axfOnFXKBB7irpNDOKcDjOlnyB"
CRS_API_HOSTNAME="<generated with: openssl rand -hex 16>"
BUTTERCUP_K8S_VALUES_TEMPLATE="k8s/values-minikube.template"

Keep empty:

AZURE_API_BASE=""
AZURE_API_KEY=""

Commented out:

CRS_URL
CRS_API_HOSTNAME
LANGFUSE_HOST
LANGFUSE_PUBLIC_KEY
LANGFUSE_SECRET_KEY
OTEL_ENDPOINT
OTEL_TOKEN

Authentication

Docker

Log into ghcr.io:

docker login ghcr.io -u <username>

Running the CRS

Starting the services

cd deployment && make up

Stopping the services

cd deployment && make down

Sending the example-libpng task to the system

kubectl port-forward -n crs service/buttercup-competition-api 31323:1323
./orchestrator/scripts/task_crs.sh

Send a SARIF message

./orchestrator/scripts/send_sarif.sh <TASK-ID-FROM-TASK-CRS>
S
Description
Automated archival mirror of github.com/trailofbits/buttercup
Readme AGPL-3.0 28 MiB
Languages
Python 93.4%
Shell 3%
JavaScript 1.4%
CSS 0.6%
Dockerfile 0.4%
Other 1.2%