Title: infra/dns: 21 MB terraform.log is tracked in git despite infra/dns/.gitignore naming it exactly · Issue #355 · developing-today/code · GitHub
Open Graph Title: infra/dns: 21 MB terraform.log is tracked in git despite infra/dns/.gitignore naming it exactly · Issue #355 · developing-today/code
X Title: infra/dns: 21 MB terraform.log is tracked in git despite infra/dns/.gitignore naming it exactly · Issue #355 · developing-today/code
Description: Problem infra/dns/terraform.log — a 21 MB OpenTofu/Terraform DEBUG log — is tracked in git even though the directory's own .gitignore names it exactly: infra/dns/.gitignore:1 contains the single line terraform.log git ls-files still list...
Open Graph Description: Problem infra/dns/terraform.log — a 21 MB OpenTofu/Terraform DEBUG log — is tracked in git even though the directory's own .gitignore names it exactly: infra/dns/.gitignore:1 contains the single li...
X Description: Problem infra/dns/terraform.log — a 21 MB OpenTofu/Terraform DEBUG log — is tracked in git even though the directory's own .gitignore names it exactly: infra/dns/.gitignore:1 contains the singl...
Opengraph URL: https://github.com/developing-today/code/issues/355
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"infra/dns: 21 MB terraform.log is tracked in git despite infra/dns/.gitignore naming it exactly","articleBody":"## Problem\n\n`infra/dns/terraform.log` — a 21 MB OpenTofu/Terraform DEBUG log — is tracked in git even though the directory's own `.gitignore` names it exactly:\n\n- `infra/dns/.gitignore:1` contains the single line `terraform.log`\n- `git ls-files` still lists `infra/dns/terraform.log` (blob `b8c8cda3e76ee0c568668f9af3712d82fcc71d50`, **21,949,779 bytes**, verified on current `main` via the GitHub API)\n- `git check-ignore --no-index -v infra/dns/terraform.log` → `infra/dns/.gitignore:1:terraform.log` (the ignore rule matches; tracking overrides it, which is why the rule has never taken effect)\n\n## Evidence\n\n- The file is the TF_LOG-style debug output of a single `tofu init` run from 2024-08-13 (`OpenTofu version: 1.8.1`, `[DEBUG]` provider plugin lines, ends with the provider EOF/exit lines from that same run).\n- It was swept in by commit `2b049c5e` (2024-08-24, \"chore(dns): updates zettel\") — an unrelated docs commit, i.e. an accidental `git add -A` capture, not a deliberate fixture.\n- Nothing in the repo references it: a tree-wide grep for `terraform.log` finds only the `.gitignore` line itself. No script in `infra/dns/` reads or appends to it (`TF_LOG_PATH` is set nowhere).\n- It is by far the largest file in the repo (next largest is a 12 MB PDF), so every clone and archive carries ~21 MB of stale debug output.\n\nThis is the same tracked-but-ignored accident shape as #353 (compiled `pkgs/launcher` binary) and dezren39/nix#455/#463 (tracked cache markers): the ignore rule exists, but a tracked file is immune to it until it is removed from the index/tree.\n\n## Why it matters\n\n- ~21 MB of dead weight in every clone, forever, for a log whose content expired in August 2024.\n- Debug-level provider logs can contain request/response detail that was never meant to be published; keeping one in history as a tracked file invites the next accidental log to be committed the same way (a future `git add -A` in `infra/dns/` will re-add a fresh `terraform.log` only if it is untracked — once this copy is removed, the existing ignore rule actually protects the directory).\n\n## Acceptance criteria\n\n- [ ] `infra/dns/terraform.log` no longer appears in `git ls-files` on main.\n- [ ] Recreating a local `infra/dns/terraform.log` leaves `git status` clean (the existing `infra/dns/.gitignore` rule takes effect — no `.gitignore` change should be needed).\n- [ ] No other file is removed: the deliberately tracked `infra/dns/logs/**/*.tar.gz` DNS record archives and `terraform.tfstate.enc` stay untouched.\n\n## Suggested fix\n\n`git rm infra/dns/terraform.log` on a branch + PR. No code, script, or ignore-rule changes needed; history rewrite is out of scope.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-19T13:12:12Z","url":"https://github.com/developing-today/code/issues/355"}
| 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:410564a3-bcf8-d7b9-5dba-ac2889ddb09f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D896:1352AF:45A12F:5CDCA4:6B061EE3 |
| html-safe-nonce | 724705dd8bb014fbde289e49e21e7bf990f068a13f9685911b21f02f85961915 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODk2OjEzNTJBRjo0NUExMkY6NUNEQ0E0OjZCMDYxRUUzIiwidmlzaXRvcl9pZCI6IjQzNTM3NDA5MjczNTQxNTA2MjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1099860cf6b39b62ec56abc1520eb8f74065f0b768825e4f59b5bc486b1df486 |
| hovercard-subject-tag | issue:5924512010 |
| 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/355/issue_layout |
| twitter:image | https://opengraph.githubassets.com/734959268dfe54f9c46725035e8cdd0749c77c9f6eb54242d52d662e2b27781c/developing-today/code/issues/355 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/734959268dfe54f9c46725035e8cdd0749c77c9f6eb54242d52d662e2b27781c/developing-today/code/issues/355 |
| og:image:alt | Problem infra/dns/terraform.log — a 21 MB OpenTofu/Terraform DEBUG log — is tracked in git even though the directory's own .gitignore names it exactly: infra/dns/.gitignore:1 contains the single li... |
| 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 | 9a7c5824b75ea2ec5e3de73a483229c7bb9f32a774ffd401f010dd9bacf1483d |
| 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 | b25c3080e84402f75431d8dc7a96b2635219cec7 |
| 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