agents keep their github token in /run, fetched on every start, not in the state dir
This commit is contained in:
parent
adc61c9043
commit
4bd02ea14d
1 changed files with 310 additions and 78 deletions
|
|
@ -952,10 +952,10 @@ a link dialog closes.
|
|||
- **link a github account** — `PUT /api/hives/{hive}/agents/{agent}/github-account`
|
||||
with a personal access token, stored at `swarm/agents/<agent>/github-token`.
|
||||
One token per agent. The agent's
|
||||
`hive-agent-github-token` unit fetches it into `<state>/github-token`,
|
||||
the file its `gh` wrapper, git credential helper and GitHub notification
|
||||
poller read. A `github-token` already in place stays when the store holds
|
||||
none. What the token needs and how the agent uses it:
|
||||
`hive-agent-github-token` unit fetches it into
|
||||
`/run/hive-agent-github-token/token` at every start, the file its `gh`
|
||||
wrapper, git credential helper and GitHub notification poller read. A token
|
||||
removed from the store stops working at the agent's next start. What the token needs and how the agent uses it:
|
||||
[GitHub accounts](../../2-handbook/external-accounts/github.md).
|
||||
- **set the API-key environment** — `PUT /api/hives/{hive}/agents/{agent}/backend-env`
|
||||
with the text of a systemd `EnvironmentFile` (`NAME=VALUE` lines, at most
|
||||
|
|
|
|||
Loading…
Reference in a new issue