Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/frontend/packages/dashboard/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 8e23feb01b github: PATs live in swarm bao; the agent fetches them itself
An operator links an agent's GitHub personal access token in the swarm UI
(LinkGithubAccountForm, "link github account" on /agents). swarm-controller's
PUT /api/hives/{hive}/agents/{agent}/github-account stores it at
swarm/agents/<agent>/github-token (swarm_secret_client::github), a flat leaf
under the agent's prefix that the agent's existing read grant already covers:
no policy change, and no list grant, since there is one token per agent.

In the agent, hive-agent-github-token (oneshot + 2-minute timer, as the agent
user, under its own store certificate, ordered before hive-github-notify)
reads that path and writes <state>/github-token, 0600 and agent-owned, the
file the gh wrapper, git credential helper and hive-github-notify already
read. It replaces the file by rename only when the bytes changed and never
deletes it: a hive-written github-token stays until a token is linked in the
swarm UI. It is installed only with a store address and
services.hyperhive.agent.github.enable.

Removed: the dashboard's CR3D3NTIALS page (credentials.html/js/css, its
build entries and H0M3 tile; GITHUB was its only tab), hive-c0re's
dashboard/matrix_accounts.rs with GET/POST /api/github-account,
priv_client::write_agent_github_token, the host socket's
SetAgentGithubToken and `hivectl github set-token`, and hive-priv's
WriteAgentGithubToken with write_agent_state_file, its only caller gone.

Docs: integrations/github.md and swarm/ui.md describe the swarm path,
swarm/credentials.md gains the store-path row, and the hive UI docs,
hivectl docs and security.md's hive-priv table drop the removed pieces.

Closes #4347
2026-10-02 17:48:27 +02:00
..
agent-menu treefmt: apply prettier 2026-09-02 15:25:07 +02:00
builds.css treefmt: apply prettier 2026-09-02 15:25:07 +02:00
builds.html treefmt: apply prettier 2026-09-02 15:25:07 +02:00
builds.js treefmt: apply prettier 2026-09-02 15:25:07 +02:00
call.js Make agent creation swarm-only and refuse a name placed on another hive 2026-09-29 15:47:40 +02:00
colors.css refactor(frontend): base16 theme contract in a swappable colors.css 2026-06-08 21:24:07 +02:00
common.css docs: retire the stray top-level web-ui.md, fold it into web-ui/README.md 2026-09-07 15:49:52 +02:00
common.js docs: retire the stray top-level web-ui.md, fold it into web-ui/README.md 2026-09-07 15:49:52 +02:00
core.css treefmt: apply prettier 2026-09-02 15:25:07 +02:00
core.html treefmt: apply prettier 2026-09-02 15:25:07 +02:00
core.js dashboard: pre-fill resource-limit inputs so editing one doesn't clear the other 2026-09-21 15:55:05 +02:00
dashboard.css Make agent creation swarm-only and refuse a name placed on another hive 2026-09-29 15:47:40 +02:00
dashboard.html docs: point matrix GUI comments at the swarm UI, drop the M4TR1X tab 2026-10-02 14:44:34 +02:00
flow.css docs: retire the stray top-level web-ui.md, fold it into web-ui/README.md 2026-09-07 15:49:52 +02:00
flow.html treefmt: apply prettier 2026-09-02 15:25:07 +02:00
flow.js docs: retire the stray top-level web-ui.md, fold it into web-ui/README.md 2026-09-07 15:49:52 +02:00
home.css treefmt: apply prettier 2026-09-02 15:25:07 +02:00
home.js treefmt: apply prettier 2026-09-02 15:25:07 +02:00
index.html github: PATs live in swarm bao; the agent fetches them itself 2026-10-02 17:48:27 +02:00
logs.css treefmt: apply prettier 2026-09-02 15:25:07 +02:00
logs.html treefmt: apply prettier 2026-09-02 15:25:07 +02:00
logs.js treefmt: apply prettier 2026-09-02 15:25:07 +02:00
permissions.js treefmt: apply prettier 2026-09-02 15:25:07 +02:00
schedules.js remove operator as target for scheduled prompts 2026-09-11 23:32:45 +02:00
state.js dashboard: remove the Y3R C4LL questions pane (ask/answer removal, frontend) 2026-08-29 20:35:27 +02:00
stats.css fix(stats): move window selector into the page header tab bar 2026-07-26 17:21:21 +02:00
stats.html treefmt: apply prettier 2026-09-02 15:25:07 +02:00
stats.js treefmt: apply prettier 2026-09-02 15:25:07 +02:00
stream-worker.js treefmt: apply prettier 2026-09-02 15:25:07 +02:00
swarm.js docs/web-ui: drop the redundant Topology tree section 2026-09-28 13:18:12 +02:00
system-sections.css treefmt: apply prettier 2026-09-02 15:25:07 +02:00
tabs.js Make agent creation swarm-only and refuse a name placed on another hive 2026-09-29 15:47:40 +02:00
theme.css refactor(frontend): base16 theme contract in a swappable colors.css 2026-06-08 21:24:07 +02:00
util.js treefmt: apply prettier 2026-09-02 15:25:07 +02:00