Skip to content

Add .gitignore rule for Terraform variable files to prevent sensitive data leakage #125

@johnluoyx

Description

@johnluoyx

Problem Description

The current .gitignore file is missing rules to ignore Terraform variable files (*.tfvars). These files typically contain sensitive information such as:

  • API keys and secrets
  • Service principal credentials
  • Other sensitive configuration data

Without adding these files to .gitignore, sensitive information may be accidentally committed to the repository.

Proposed Solution

Add the following rules to the Terraform section of .gitignore:
tignore

Terraform variable files (keep example files)

.tfvars
!
.tfvars.exampleThis rule will:

  • ✅ Ignore all *.tfvars files (containing sensitive information)
  • ✅ Keep *.tfvars.example files (as templates for other developers)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions