Repository navigation
ci(fuzzing): pass BRIGHT_HOSTNAME to the agent - #1115
Merged
Merged
Conversation
The license preflight validates BRIGHT_TOKEN against BRIGHT_HOSTNAME, defaulting to app.brightsec.com. Tokens issued for another cluster (e.g. the development playground) are rejected with HTTP 401 there. Read the cluster from the new BRIGHT_HOSTNAME repo variable so the preflight hits the cluster that issued the token.
ilya-olchikov
approved these changes
Oct 26, 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.
Summary
The fuzzing workflow's run attempt failed at the Bright license preflight with HTTP 401. Root cause: the agent validates
BRIGHT_TOKENagainstBRIGHT_HOSTNAME(defaultapp.brightsec.com), but the configured token is issued for a different cluster — so the prod preflight rejected it.This passes
BRIGHT_HOSTNAMEinto the agent from a new repo variable, so the license check hits the cluster that actually issued the token.Changes
BRIGHT_HOSTNAME: ${{ vars.BRIGHT_HOSTNAME }}to theRun Bright Agent (fuzzing)step env.BRIGHT_HOSTNAMErepo variable has been set alongside this change;BRIGHT_TOKENsecret refreshed to match that cluster.app.brightsec.comif the variable is unset (agent default), so this is backward-compatible.Note
Fuzzing mode still makes exactly one network call to Bright (the license check); this only changes which cluster it calls.