factorio: stash factorio.com server token in SSM + flip server-settings.json visibility to public #78
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-05-01T11:14:22Z - https://github.com/coilysiren/infrastructure/issues/82
Goal
Flip
server-settings.jsonfromvisibility: { "public": false, "lan": true }tovisibility: { "public": true, "lan": true }so the Sirens factorio server announces itself to the matchmaker (multiplayer.factorio.com).Why this didn't happen at server bringup
For
visibility.public: true, the server has to authenticate against factorio.com using ausername+tokenpair from a factorio.com account that owns the DLC. The expectation per https://github.com/coilysiren/infrastructure/issues/77#issuecomment-4358830085 was to:/factorio/server_token(SecureString)infrastructure/src/eco.py:10)username+tokeninserver-settings.jsonWhen the server got brought up on 2026-05-01, the credentials had not yet landed. The server was started with
visibility: { "public": false, "lan": true }so the server could come up cleanly without credentials. Whitelist enforcement is on, so reachability is not the same thing as joinability.Action
coily aws ssm put-parameter --name /factorio/server_token --type SecureString --value <token>(pre-authorized in SSM.md)factorio-server-start.shthat pulls/factorio/server_tokenat start time and writes it into a runtime-only copy ofserver-settings.json(do not write the resolved token back to the persistent file).server-settings.json: setusername= the factorio.com handle, settoken=__FROM_SSM__placeholder, flipvisibility.publictotrue.multiplayer.factorio.com.Done when
/home/kai/Steam/.../server-settings.jsonon diskTracking from: #77
Iceboxed in the 2026-05-29 backlog burn-down: factorio public visibility flip, hobby toy. Reopen anytime if it becomes real.