fix(cinny): restore gifApiKey placeholder + redact leaked key from README
Lint / Shell (shellcheck) (push) Successful in 29s
Lint / JS (eslint) (push) Successful in 5s
Lint / Python (ruff) (push) Successful in 5s
Lint / Python deps (pip-audit) (push) Successful in 34s
Lint / Secret scan (gitleaks) (push) Successful in 5s

The production config.json (cp'd from cinny/config.json by deploy/lxc106-cinny.sh)
lost its "gifApiKey": "" placeholder, so lotus_deploy.sh's sed injection had no
field to fill -> the GIF composer button disappeared (it renders only when
gifApiKey is non-empty). Restore the placeholder so future deploys inject the key.

Also redact the real Giphy key that was committed in the README (it belongs only in
/etc/lotus-deploy.env on LXC 106). NOTE: the key remains in git history (commit
f3a7bcd) — it should be rotated.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-08 00:56:47 -04:00
co-authored by Claude Opus 4.8
parent 6d5583398b
commit d9dfc54200
2 changed files with 7 additions and 2 deletions
+5 -1
View File
@@ -533,9 +533,13 @@ All custom code lives in `src/app/` on the `lotus` branch of `code.lotusguild.or
"defaultHomeserver": 0,
"homeserverList": ["matrix.lotusguild.org"],
"allowCustomHomeservers": false,
"gifApiKey": "AqqDuQwZNjYttz7Mn6ME4JH1bJIuZ5CO"
"gifApiKey": ""
}
```
> **Note:** `gifApiKey` is a runtime secret — it is **not** stored in git. The placeholder
> ships empty; `lotus_deploy.sh` injects the real key from `GIPHY_API_KEY` in
> `/etc/lotus-deploy.env` on LXC 106 after each deploy. (For that injection to work the
> deployed `config.json` must contain the `"gifApiKey": ""` placeholder line.)
> Note: The root `/opt/lotus-cinny/config.json` is what matters — vite copies it to `dist/`. `public/config.json` is not used.
+2 -1
View File
@@ -15,5 +15,6 @@
"hashRouter": {
"enabled": false,
"basename": "/"
}
},
"gifApiKey": ""
}