Thank you for your interest in contributing! This repo manages TrakRF's cloud infrastructure across Cloudflare, AWS (EKS), and GCP (GKE). We welcome improvements and feedback.
- Found a bug? Open an issue
- Have a feature request? Describe your use case
- Documentation unclear? Let us know what's confusing
- Fix bugs or typos
- Add new infrastructure modules
- Improve documentation
- Enhance security or error handling
- How are you using these patterns?
- What works well? What doesn't?
- Share your custom infrastructure patterns
- Git
- OpenTofu (or Terraform)
- just command runner
- direnv for environment management
- Cloud CLI tools as needed (AWS CLI, gcloud, wrangler)
-
Clone and configure
git clone https://github.com/trakrf/infra cd infra cp .env.local.sample .env.local # Add your credentials direnv allow
-
Validate infrastructure code
tofu -chdir=terraform/cloudflare validate tofu -chdir=terraform/aws validate
-
Test in isolated environment
- Use separate cloud accounts for testing
- Enable budget alarms to prevent cost surprises
- Review all infrastructure changes before applying
- Clean up resources after testing
- Terraform/OpenTofu: Follow HashiCorp Style Guide
- Helm charts: Follow Helm Best Practices
- Shell scripts: Follow Google Shell Style Guide
- YAML: Consistent 2-space indentation
- Markdown: Clear headings, consistent formatting
Follow Conventional Commits:
feat: add EKS node group autoscaling
fix: correct IAM policy for ArgoCD
docs: update cluster setup instructions
chore: update provider versions
-
Create a branch
git checkout -b <type>/<short-slug> # e.g. fix/dns-record-drift
Use the same types as the commit prefixes below. Maintainers working from a tracker issue insert the ticket:
<type>/<ticket>-<slug>. -
Make your changes
- Keep changes focused and atomic
- Update documentation as needed
- Add examples if introducing new features
-
Test thoroughly
- Run
tofu validateandtofu fmt -check - Run
tofu planto verify expected changes - Check for exposed secrets or credentials
- If you edited a doc, run
./scripts/check-doc-paths.sh— CI fails when a file named in the docs does not exist
- Run
-
Submit PR
- Provide clear description of changes
- Link to related issues
- Include
tofu planoutput for infrastructure changes - PRs are merged with
--merge(no squash or rebase)
-
Respond to feedback
- Address review comments
- Be open to suggestions
When contributing:
- Never commit real credentials (API tokens, keys, passwords)
- Use
.env.localfor secrets (gitignored) - Review all infrastructure changes before submitting
- Report security issues via GitHub Security Advisories
- See SECURITY.md for full security policy
- Open a discussion in GitHub Issues
- Check existing issues for similar questions
See CODE_OF_CONDUCT.md.
By contributing, you agree that your contributions will be licensed under the MIT License.