diff --git a/CLAUDE.md b/CLAUDE.md index 9292b43..595a357 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -18,11 +18,27 @@ Arcane project `content`: `/mnt/fast/arcane/projects/content/compose.yaml`. That | Old database | `/mnt/user/ipodderx/state.db`, SQLite, used until the move to Postgres on 2026-09-18 and kept for rollback | `/data/state.db` | | Downloads | `/mnt/user/ipodderx/downloads` | `/downloads` | | Web UI | `192.168.1.130:8099`, also `ipodderx.sdf1.net` via a Cloudflare tunnel | `0.0.0.0:8099` | -| Sign-in via the tunnel | Cloudflare Access app `ipodderx`, with Authentik as its identity provider; see [docs/sso.md](docs/sso.md) | trusts `Cf-Access-Authenticated-User-Email` from `192.168.16.1`, the `content_default` gateway | +| Sign-in via the tunnel | Cloudflare Access app `ipodderx`, with Authentik as its identity provider; see [docs/sso.md](docs/sso.md) | trusts `Cf-Access-Authenticated-User-Email` from `192.168.16.1`, the `content_default` gateway, and only with a valid `Cf-Access-Jwt-Assertion` (`access_team`, `access_aud`) | Work to do lives in the Gitea issues at https://git.sdf1.net/rays/ipodderx-rs/issues, not in a `TODO.md`. `/src/tea` is logged in: `/src/tea issues list --login git.sdf1.net --repo rays/ipodderx-rs`. +**Every problem found gets an issue, before it is fixed.** A bug, a gap or a security hole turned +up along the way (reading logs, a review, a test that fails for another reason) is filed as soon +as it is found, even if it is fixed a minute later, so there is a record of what was wrong and +when. Name the issue in the commit that fixes it (`(#42)` in the subject). Once the fix is on +`main` and pushed, comment on the issue with what changed and the commit, then close it: + +```sh +R="--login git.sdf1.net --repo rays/ipodderx-rs" +/src/tea issues create $R -t "Web token printed in the startup log" -L bug -d "What is wrong, where, how it was found." +/src/tea comment $R 42 "Fixed in 3625cf4: the startup line says where the token is kept, not what it is. Deployed in 0.8.3." +/src/tea issues close $R 42 +``` + +Labels: `bug` for something wrong, `enhancement` for something missing. A problem found and left +for later stays open, and that is how it gets picked up again. + Deploying a change is: build and push the image, then pull it and recreate the container. ```sh @@ -183,7 +199,8 @@ Deliberate simplifications get a `ponytail:` comment naming the ceiling and the ## Known gaps -* Nothing at the moment. Add one here when a limitation is known and left in place. +* They are the open issues in Gitea, not a list here: a limitation known and left in place is an + issue left open. # Command output