Title: pkgs/id: .identity.db/.identity.redb only gitignored under pkgs/id/ — a serve run from any other in-repo directory leaves the identity DB one git add -A from recommit · Issue #420 · developing-today/code · GitHub
Open Graph Title: pkgs/id: .identity.db/.identity.redb only gitignored under pkgs/id/ — a serve run from any other in-repo directory leaves the identity DB one git add -A from recommit · Issue #420 · developing-today/code
X Title: pkgs/id: .identity.db/.identity.redb only gitignored under pkgs/id/ — a serve run from any other in-repo directory leaves the identity DB one git add -A from recommit · Issue #420 · developing-today/code
Description: Problem The identity database created by id serve --web is protected from accidental commit only inside pkgs/id/, but the path it is created at is CWD-relative — it lands wherever the command is run. Evidence (verified on main bec9735) p...
Open Graph Description: Problem The identity database created by id serve --web is protected from accidental commit only inside pkgs/id/, but the path it is created at is CWD-relative — it lands wherever the command is ru...
X Description: Problem The identity database created by id serve --web is protected from accidental commit only inside pkgs/id/, but the path it is created at is CWD-relative — it lands wherever the command is ru...
Opengraph URL: https://github.com/developing-today/code/issues/420
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pkgs/id: .identity.db/.identity.redb only gitignored under pkgs/id/ — a serve run from any other in-repo directory leaves the identity DB one git add -A from recommit","articleBody":"## Problem\n\nThe identity database created by `id serve --web` is protected from accidental commit only inside `pkgs/id/`, but the path it is created at is CWD-relative — it lands wherever the command is run.\n\n## Evidence (verified on main bec97355)\n\n- `pkgs/id/src/commands/serve.rs:1104`: `Path::new(KEY_FILE).with_file_name(\".identity.redb\")` — the DB path is derived from the key file path.\n- `pkgs/id/src/lib.rs:284`: `pub const KEY_FILE: &str = \".iroh-key\";` — a bare relative filename, so the DB is created in the process current working directory.\n- `pkgs/id/.gitignore:3-4` lists `.identity.db` and `.identity.redb` — patterns anchored to `pkgs/id/` only.\n- Root `.gitignore:117` has unanchored `.iroh*`, so the key-file family is protected repo-wide — the DB family is not.\n- `git check-ignore -v .identity.redb` at the repo root: exit 1 (not ignored). Same for a subdirectory path (`sub/.identity.db`: exit 1). Only the `pkgs/id/` paths match.\n\nSo running `id serve --web` from the repo root (or any other in-repo directory) leaves `.identity.redb` untracked-and-visible, one `git add -A` away from being recommitted — exactly the hazard #372 fixed for `pkgs/id/` (stale `.identity.db` databases with local identity rows were tracked in git). The identity DB schema holds `identities(client_id, name, created_at, updated_at)` rows per #372 — local identity data that should never be committed.\n\nNo live exposure today: no `.identity.db`/`.identity.redb` is currently tracked outside (or inside) `pkgs/id/` on main. This is a guard-completeness gap, found as a REVIEW-FINDING during pr-diff-review of PR #373 and promoted now that the evidence is re-verified.\n\n## Suggested fix\n\nAdd the two unanchored patterns to the root `.gitignore` beside `.iroh*` (line 117):\n\n```\n.identity.db\n.identity.redb\n```\n\nUnanchored patterns match at every depth, covering any in-repo CWD a serve run might use. The `pkgs/id/.gitignore` entries become redundant but harmless; they may be left or removed.\n\n## Acceptance criteria\n\n- `git check-ignore -v .identity.redb` and `.identity.db` succeed at the repo root and in an arbitrary subdirectory.\n- `pkgs/id/` paths remain ignored.\n- No `.identity.*` file becomes tracked; a serve run from the repo root leaves `git status` clean of identity DB files.\n- Single-repo: the `serve.rs`/`KEY_FILE` code exists only in developing-today/code.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-20T15:04:56Z","url":"https://github.com/developing-today/code/issues/420"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a49b7c39-4285-9ca3-2d7c-b34edb29fee0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EA28:335506:6DF063:92F893:6B062D9B |
| html-safe-nonce | 722f85fc06805f8124502f7eb86a54f547d943469252a01382b4973b3bb70d5c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTI4OjMzNTUwNjo2REYwNjM6OTJGODkzOjZCMDYyRDlCIiwidmlzaXRvcl9pZCI6IjU4NTM3MzE0Njc3NzExMjkyNDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | df9e7d31310b85d9b6623079b527ee36ed543f932da6182663f13444ce855ebf |
| hovercard-subject-tag | issue:5944098785 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/420/issue_layout |
| twitter:image | https://opengraph.githubassets.com/463863afa08ef1c8a1a6be6a59ae554aa8542ccae89a9a668b968300f7379ddb/developing-today/code/issues/420 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/463863afa08ef1c8a1a6be6a59ae554aa8542ccae89a9a668b968300f7379ddb/developing-today/code/issues/420 |
| og:image:alt | Problem The identity database created by id serve --web is protected from accidental commit only inside pkgs/id/, but the path it is created at is CWD-relative — it lands wherever the command is ru... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7f961de5dd5c5d4aca24d33f8b3ffb3fb8b2ef53d0a4f32f01f0a790e512f6d3 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 494ea0bb1e0feef734a83e2628697647755e8864 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width