You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Part of #46 (Harness → AgentPlaybookRun alignment)
Context
The harness currently receives git credentials via GIT_* env vars injected by the controller. With Hub integration, the harness resolves application metadata, git credentials, and analysis results directly from the Hub REST API at startup. The controller passes HUB_BASE_URL, HUB_TOKEN, and APP_ID — the harness does the rest.
This aligns the harness with the Hub-centric architecture described in ADR-0003 and matches the pattern used by tackle2-addon-kai.
5.9: Hub API integration in harness
Part of #46 (Harness → AgentPlaybookRun alignment)
Context
The harness currently receives git credentials via
GIT_*env vars injected by the controller. With Hub integration, the harness resolves application metadata, git credentials, and analysis results directly from the Hub REST API at startup. The controller passesHUB_BASE_URL,HUB_TOKEN, andAPP_ID— the harness does the rest.This aligns the harness with the Hub-centric architecture described in ADR-0003 and matches the pattern used by tackle2-addon-kai.
Tasks
internal/hub/package — HTTP client with bearer auth, minimal response types, fetch functions (FetchApp,FetchGitCreds,FetchAnalysis)main.gostartup — resolve app metadata, git creds, and analysis from Hub before clone.konveyor/analysis.jsonin the workspacehub.ClearEnv()stripsHUB_BASE_URL,HUB_TOKEN,APP_IDfrom env before goose startsTARGET_BRANCHas required env var — Hub'sapp.Repository.Branchis the source branch, not the push target; controller must set the targetCheckoutBranchfix — early return when HEAD already points to the target branchhack/harness-test/resources to use Hub env vars (HUB_BASE_URL,HUB_TOKEN,APP_ID) instead ofGIT_*env varssetup.shfor local Hub testingTestReadFromEnvfromgit_test.goDependencies
sourcecarrying git credentials)References