mirror of
https://github.com/step-security/harden-runner.git
synced 2026-06-05 19:53:33 +00:00
Add api_key to self-hosted agent config for event upload authentication
The agent needs an api_key to authenticate with the API for uploading process and file events. Generate a random UUID as api_key matching the approach used in the self-hosted branch.
This commit is contained in:
parent
bb4b9e732d
commit
03c6aeecac
3 changed files with 3 additions and 1 deletions
1
dist/pre/index.js
vendored
1
dist/pre/index.js
vendored
|
|
@ -86054,6 +86054,7 @@ function installAgentForSelfHosted(owner, confg) {
|
|||
customer: owner,
|
||||
working_directory: confg.working_directory,
|
||||
api_url: confg.api_url,
|
||||
api_key: v4(),
|
||||
allowed_endpoints: confg.allowed_endpoints,
|
||||
egress_policy: confg.egress_policy,
|
||||
disable_telemetry: confg.disable_telemetry,
|
||||
|
|
|
|||
2
dist/pre/index.js.map
vendored
2
dist/pre/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -485,6 +485,7 @@ export async function installAgentForSelfHosted(owner: string, confg: Configurat
|
|||
customer: owner,
|
||||
working_directory: confg.working_directory,
|
||||
api_url: confg.api_url,
|
||||
api_key: uuidv4(),
|
||||
allowed_endpoints: confg.allowed_endpoints,
|
||||
egress_policy: confg.egress_policy,
|
||||
disable_telemetry: confg.disable_telemetry,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue