Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7ce6cad01f | ||
|
|
9cf6304e23 | ||
|
|
91ec7ea3d2 | ||
|
|
cd7d038f91 |
@@ -74,8 +74,9 @@ model:
|
|||||||
Run on any Hermes host to detect violations:
|
Run on any Hermes host to detect violations:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
grep -n 'api_key: sk-' /root/.hermes/config.yaml \
|
grep -rn 'api_key: sk-' /root/.hermes/ \
|
||||||
| grep -v 'deepseek\|b7d9\|openai\|anthropic\|DEEPSEEK'
|
--include='config.yaml' \
|
||||||
|
| grep -v 'deepseek\|openai\|anthropic\|DEEPSEEK'
|
||||||
```
|
```
|
||||||
|
|
||||||
If any output — violation. Fix immediately.
|
If any output — violation. Fix immediately.
|
||||||
@@ -157,6 +158,7 @@ EnvironmentFile=/etc/environment
|
|||||||
4. **Restart** — gateway must restart to pick up env var
|
4. **Restart** — gateway must restart to pick up env var
|
||||||
5. **Confirm** — test key against LiteLLM: `curl -H "Authorization: Bearer $KEY" .../v1/models` → 200
|
5. **Confirm** — test key against LiteLLM: `curl -H "Authorization: Bearer $KEY" .../v1/models` → 200
|
||||||
6. **Update** — bump the verified table above
|
6. **Update** — bump the verified table above
|
||||||
|
7. **Use safe-mutate** — if the fix requires changing `/etc/environment` or restarting the gateway on a remote host, use `safe-mutate` to verify current state before mutating.
|
||||||
|
|
||||||
## Related Contracts
|
## Related Contracts
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
# Posts review comments via Gitea API.
|
# Posts review comments via Gitea API.
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
LITELLM_URL="${LITELLM_URL:-https://litellm.sysloggh.net}"
|
LITELLM_URL="${LITELLM_URL:-}"
|
||||||
LITELLM_KEY="${LITELLM_KEY:-sk-litellm-7f96080dd99b15c36bd4b333b58a6796}"
|
LITELLM_KEY="${LITELLM_KEY:-}"
|
||||||
GITEA_TOKEN="${GITEA_TOKEN:-$(grep GITEA_TOKEN /root/.pi/agent/extensions/telegram/.env 2>/dev/null | cut -d= -f2 || echo '')}"
|
GITEA_TOKEN="${GITEA_TOKEN:-$(grep GITEA_TOKEN /root/.pi/agent/extensions/telegram/.env 2>/dev/null | cut -d= -f2 || echo '')}"
|
||||||
GITEA_API="https://git.sysloggh.net/api/v1"
|
GITEA_API="https://git.sysloggh.net/api/v1"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user