Skip to content

chore(terraform): remove committed tfplan.lt + gitignore plan files - #1099

Merged
cristim merged 1 commit into
feat/multicloud-web-frontendfrom
chore/remove-tfplan-binary
Jun 7, 2026
Merged

cristim merged 1 commit into
feat/multicloud-web-frontendfrom
chore/remove-tfplan-binary

Conversation

@cristim

@cristim cristim commented Jun 7, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds tfplan.* and *.tfplan.* gitignore patterns to both .gitignore and terraform/.gitignore to prevent Terraform plan binaries from being committed.
  • Documents the issue introduced by commit afea1b7fa, which accidentally committed terraform/environments/aws/ci-cd-permissions/tfplan.lt (26,944 bytes) -- a build artifact that can contain sensitive resource and state details.

Closes #1098

Root cause

The existing .gitignore had tfplan (exact name) and *.tfplan (suffix), but not tfplan.*, so tfplan.lt slipped through. The file itself is only present on the fix/706-partially-completed-chip branch (introduced by afea1b7fa). That branch must remove the file via git rm terraform/environments/aws/ci-cd-permissions/tfplan.lt before it merges into feat/multicloud-web-frontend.

gitignore rules added

In .gitignore and terraform/.gitignore:

tfplan.*
*.tfplan.*

After this PR, git check-ignore -v terraform/environments/aws/ci-cd-permissions/tfplan.lt correctly matches terraform/.gitignore:37:tfplan.*.

Test plan

  • git check-ignore -v terraform/environments/aws/ci-cd-permissions/tfplan.lt returns a match
  • Branch carrying afea1b7fa removes tfplan.lt via git rm before merging
  • CI passes (change is .gitignore-only, no Go/frontend code touched)

…ary commits

Commit afea1b7fa accidentally committed a binary Terraform plan file
(terraform/environments/aws/ci-cd-permissions/tfplan.lt, 26 KB) that
can contain sensitive resource and state details.

Root cause: .gitignore had `tfplan` (exact name) and `*.tfplan`
(suffix), but not `tfplan.*`, so `tfplan.lt` slipped through.

Add the missing patterns to both the root .gitignore and
terraform/.gitignore:
- `tfplan.*` catches plan files with arbitrary extensions (e.g. .lt, .out)
- `*.tfplan.*` catches double-extension variants (e.g. foo.tfplan.gz)

The binary artifact itself (tfplan.lt) must be removed from any branch
that carries afea1b7fa before that branch merges; see the linked issue.
@cristim cristim added triaged Item has been triaged priority/p3 Polish / idea / may never ship severity/low Minor harm urgency/eventually No deadline impact/internal Team-internal only effort/xs Trivial / one-liner type/chore Maintenance / non-user-visible labels Jun 7, 2026
@coderabbitai

coderabbitai Bot commented Jun 7, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@cristim, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 51 minutes and 58 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 07dc2341-ac19-4187-8506-a5294150f9c5

📥 Commits

Reviewing files that changed from the base of the PR and between f5632b3 and 30ce3c6.

📒 Files selected for processing (2)
  • .gitignore
  • terraform/.gitignore
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/remove-tfplan-binary

Comment @coderabbitai help to get the list of available commands and usage tips.

@cristim

cristim commented Jun 7, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jun 7, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@cristim
cristim merged commit 671bd06 into feat/multicloud-web-frontend Jun 7, 2026
4 checks passed
@cristim
cristim deleted the chore/remove-tfplan-binary branch July 27, 2026 11:09
cristim added a commit that referenced this pull request Sep 27, 2026
…ary commits (#1099)

Commit afea1b7fa accidentally committed a binary Terraform plan file
(terraform/environments/aws/ci-cd-permissions/tfplan.lt, 26 KB) that
can contain sensitive resource and state details.

Root cause: .gitignore had `tfplan` (exact name) and `*.tfplan`
(suffix), but not `tfplan.*`, so `tfplan.lt` slipped through.

Add the missing patterns to both the root .gitignore and
terraform/.gitignore:
- `tfplan.*` catches plan files with arbitrary extensions (e.g. .lt, .out)
- `*.tfplan.*` catches double-extension variants (e.g. foo.tfplan.gz)

The binary artifact itself (tfplan.lt) must be removed from any branch
that carries afea1b7fa before that branch merges; see the linked issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effort/xs Trivial / one-liner impact/internal Team-internal only priority/p3 Polish / idea / may never ship severity/low Minor harm triaged Item has been triaged type/chore Maintenance / non-user-visible urgency/eventually No deadline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant