[DAT-707] Add Harness integration support to the relay agent - #113
Merged
Conversation
## Claude description
> Registers `harness` as a valid relay integration and adds its accept
> file, the first one to authenticate via header injection instead of
> basic/bearer `auth`: the route sends `any /*` to `${HARNESS_API}` and
> injects `x-api-key` from `${HARNESS_TOKEN}` through the accept-file
> `headers` mechanism (requires reflector traffic mode, the default).
>
> Adds `config.harness.json` with a `GET $HARNESS_API/ng/api/user/currentUser`
> credential-validation endpoint; the final endpoint choice is being
> verified in brain-backend work (DAT-708). Note the broker systemcheck
> can only send validation credentials in the `Authorization` header
> today, so this validation will not authenticate against Harness until
> the broker fork supports custom validation header names.
>
> Tests: accept-file load/render + missing-var + validation-config cases
> in `common`, and a live reflector test proving the shipped accept file
> injects `x-api-key` on proxied requests and that an inbound placeholder
> `x-api-key` is replaced rather than duplicated.
>
> Also lists Harness in both READMEs.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
## Claude description > CI `build` and `docker-tests` jobs fail on any branch since npm@12.0.1 > released: both broker images run `npm install --global npm@latest` on > Node 20, and npm 12 requires Node >= 22.22.2 (EBADENGINE). Unrelated to > the Harness change on this branch. > > Mirrors the fix from PR #114 exactly so the branches merge cleanly: > `NODE_VERSION` 20 -> 22 and `npm@latest` -> `npm@11.18.0` in > `docker/Dockerfile` and `agent/test/relay/Dockerfile.snyk-broker-server`. > > Verified locally: `make docker-build` and a direct build of > `Dockerfile.snyk-broker-server` both complete; `go build ./...` and > `go test ./...` still pass. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
quicksnap
commented
Jul 15, 2026
| ARG SNYK_BROKER_VERSION=v1.0.16-axon | ||
| RUN wget -q -O - https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - && apt-get install -y nodejs | ||
| RUN npm install --global npm@latest typescript@4.9.3 | ||
| RUN npm install --global npm@11.18.0 typescript@4.9.3 |
Contributor
Author
There was a problem hiding this comment.
why are we adjusting these files?
Contributor
Author
There was a problem hiding this comment.
🤖 CI was broken repo-wide at the image-build step: npm@12.0.1 (released 2026-07-14) dropped Node 20 support, so npm install --global npm@latest failed with EBADENGINE in both broker images — every branch's build/docker-tests was red, unrelated to the Harness change. I pinned npm to unblock this PR, mirroring the then-in-flight #114. Now that #114 is merged, I've merged main and restored these files to match main exactly, so they no longer appear in this PR's diff.
ryanduffin
approved these changes
Jul 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I would like to verify the Axon flow e2e locally before I merge this.
Claude description