Rotate Configs/Users.eco APIAdminAuthToken before EcoJobsTracker ships to kai-server #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally filed by @coilysiren on 2026-04-24T06:48:40Z - https://github.com/coilysiren/eco-cycle-prep/issues/3
Configs/Users.eco:APIAdminAuthTokenon Kai's local Eco install is currently the literal stringcoilysiren(her Strange Loop Games username). That's the auth value the EcoJobsTracker mod checks for onX-API-Keyheaders atGET /api/v1/skills.Fine for local dev. Not fine to ship to kai-server when the mod DLL gets scp'd there, because:
Configs/Users.ecoin eco-configs and the live file on kai-server need to move to a random high-entropy value. The live file lives at/home/kai/Steam/steamapps/common/EcoServer/Configs/Users.eco./eco/webserver-api-admin-token(or similar - name it consistent with/eco/server-api-token), and get stamped into the liveConfigs/Users.ecoat server start via the eco-server-pre.sh pattern (same shape asBotTokeninjection intoDiscordLink.eco)./home/kai/.ecoor wherever the systemd unit reads secrets from, and pass the new value into any consumer that hits/api/v1/skills(currently eco-spec-tracker viaUPSTREAM_API_KEY).Scope of the rotation:
/eco/webserver-api-admin-token.AWS SSM Parameter Inventoryin workspace AGENTS.md to list the new param.eco-server-start.sh(or its coily-verb replacement, see eco-cycle-prep#2) to stamp the SSM value intoConfigs/Users.eco:APIAdminAuthTokenat server boot, same pattern as theBotTokeninjection already there.eco-configs/Configs/Users.ecoto a placeholder (the live-override pattern), so the repo no longer ships the real token.UPSTREAM_API_KEY) to pull from SSM, same fetch pattern as other secrets.Filing here because eco-cycle-prep owns Eco ops and the rotation ties into eco-server-start.sh + k8s deploy config; also relevant to eco-cycle-prep#2 (the kai-server migration off infrastructure/).