{"id":50045186,"url":"https://github.com/landerox/cloud-landerox-infra","last_synced_at":"2026-05-21T05:18:37.609Z","repository":{"id":336608038,"uuid":"1130904180","full_name":"landerox/cloud-landerox-infra","owner":"landerox","description":"GCP Terraform baseline and reference architecture — multi-environment CI/CD, defense-in-depth (validations + Conftest + Sigstore plan attestation), Workload Identity Federation, BigQuery medallion, recipes per module. OpenSSF Best Practices silver.","archived":false,"fork":false,"pushed_at":"2026-05-17T03:22:55.000Z","size":303,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-17T05:11:50.657Z","etag":null,"topics":["artifact-registry","bigquery","checkov","cicd","cloud-run","cloud-scheduler","conftest","devsecops","gcp","iam","infrastructure-as-code","openssf","reference-architecture","secret-manager","sigstore","slsa","terraform","terraform-modules","workload-identity-federation"],"latest_commit_sha":null,"homepage":"https://landerox.com/projects/cloud-infra","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/landerox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":".github/SECURITY.md","support":null,"governance":"GOVERNANCE.md","roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-01-09T07:21:53.000Z","updated_at":"2026-05-17T03:06:32.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/landerox/cloud-landerox-infra","commit_stats":null,"previous_names":["landerox/cloud-landerox-infra"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/landerox/cloud-landerox-infra","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/landerox%2Fcloud-landerox-infra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/landerox%2Fcloud-landerox-infra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/landerox%2Fcloud-landerox-infra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/landerox%2Fcloud-landerox-infra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/landerox","download_url":"https://codeload.github.com/landerox/cloud-landerox-infra/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/landerox%2Fcloud-landerox-infra/sbom","scorecard":{"id":1247192,"data":{"date":"2026-05-09T19:32:00Z","repo":{"name":"github.com/landerox/cloud-landerox-infra","commit":"0ed98953ff1bd5f7d43283716136aecef0257aa9"},"scorecard":{"version":"v5.3.0","commit":"c22063e786c11f9dd714d777a687ff7c4599b600"},"score":5.9,"checks":[{"name":"Dependency-Update-Tool","score":10,"reason":"update tool detected","details":["Info: detected update tool: RenovateBot: .github/renovate.json5:1"],"documentation":{"short":"Determines if the project uses a dependency update tool.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#dependency-update-tool"}},{"name":"Maintained","score":0,"reason":"1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/1 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":4,"reason":"security policy file detected","details":["Info: security policy file detected: .github/SECURITY.md:1","Warn: no linked content found","Info: Found disclosure, vulnerability, and/or timelines in security policy: .github/SECURITY.md:1","Info: Found text in security policy: .github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#security-policy"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#packaging"}},{"name":"CI-Tests","score":-1,"reason":"no pull request found","details":null,"documentation":{"short":"Determines if the project runs tests before pull requests are merged.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#ci-tests"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#sast"}},{"name":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/ci.yml:142","Info: jobLevel 'actions' permission set to 'read': .github/workflows/scorecard.yml:41","Info: jobLevel 'contents' permission set to 'read': .github/workflows/scorecard.yml:40","Info: topLevel permissions set to 'read-all': .github/workflows/ci.yml:37","Info: topLevel 'contents' permission set to 'read': .github/workflows/drift-detection.yml:40","Info: topLevel permissions set to 'read-all': .github/workflows/scorecard.yml:31","Info: topLevel 'contents' permission set to 'read': .github/workflows/terraform.yml:54","Info: topLevel 'actions' permission set to 'read': .github/workflows/terraform.yml:57","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":9,"reason":"dependency not pinned by hash detected -- score normalized to 9","details":["Warn: downloadThenRun not pinned by hash: .devcontainer/Dockerfile:14-27","Info:  25 out of  25 GitHub-owned GitHubAction dependencies pinned","Info:  19 out of  19 third-party GitHubAction dependencies pinned","Info:   0 out of   1 downloadThenRun dependencies pinned","Info:   1 out of   1 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#license"}},{"name":"Branch-Protection","score":5,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'main'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'main'","Info: 'stale review dismissal' is required to merge on branch 'main'","Warn: required approving review count is 1 on branch 'main'","Info: codeowner review is required on branch 'main'","Warn: 'last push approval' is disabled on branch 'main'","Warn: no status checks found to merge onto branch 'main'","Info: PRs are required in order to make changes on branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#branch-protection"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#fuzzing"}},{"name":"Contributors","score":0,"reason":"project has 0 contributing companies or organizations -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project has a set of contributors from multiple organizations (e.g., companies).","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#contributors"}}]},"last_synced_at":"2026-05-09T21:24:12.277Z","repository_id":336608038,"created_at":"2026-05-09T21:24:12.278Z","updated_at":"2026-05-09T21:24:12.278Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33289600,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T02:57:32.698Z","status":"ssl_error","status_checked_at":"2026-05-21T02:57:31.990Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["artifact-registry","bigquery","checkov","cicd","cloud-run","cloud-scheduler","conftest","devsecops","gcp","iam","infrastructure-as-code","openssf","reference-architecture","secret-manager","sigstore","slsa","terraform","terraform-modules","workload-identity-federation"],"created_at":"2026-05-21T05:18:37.201Z","updated_at":"2026-05-21T05:18:37.601Z","avatar_url":"https://github.com/landerox.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cloud-landerox-infra\n\n[![Terraform](https://github.com/landerox/cloud-landerox-infra/actions/workflows/terraform.yml/badge.svg?branch=main)](https://github.com/landerox/cloud-landerox-infra/actions/workflows/terraform.yml)\n[![CI](https://github.com/landerox/cloud-landerox-infra/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/landerox/cloud-landerox-infra/actions/workflows/ci.yml)\n[![CodeQL](https://github.com/landerox/cloud-landerox-infra/actions/workflows/codeql.yml/badge.svg?branch=main)](https://github.com/landerox/cloud-landerox-infra/actions/workflows/codeql.yml)\n[![Drift Detection](https://github.com/landerox/cloud-landerox-infra/actions/workflows/drift-detection.yml/badge.svg?branch=main)](https://github.com/landerox/cloud-landerox-infra/actions/workflows/drift-detection.yml)\n[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/landerox/cloud-landerox-infra/badge)](https://scorecard.dev/viewer/?uri=github.com/landerox/cloud-landerox-infra)\n[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/12813/badge?v=silver)](https://www.bestpractices.dev/projects/12813)\n[![OpenSSF Baseline](https://www.bestpractices.dev/projects/12813/baseline)](https://www.bestpractices.dev/projects/12813)\n[![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen?logo=renovatebot)](https://github.com/landerox/cloud-landerox-infra/issues?q=author%3Aapp%2Frenovate)\n[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\u0026logoColor=white)](https://github.com/landerox/cloud-landerox-infra/blob/main/.pre-commit-config.yaml)\n[![GitHub last commit](https://img.shields.io/github/last-commit/landerox/cloud-landerox-infra)](https://github.com/landerox/cloud-landerox-infra/commits/main)\n[![GitHub release](https://img.shields.io/github/v/release/landerox/cloud-landerox-infra?include_prereleases\u0026sort=semver)](https://github.com/landerox/cloud-landerox-infra/releases)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n[![Terraform Version](https://img.shields.io/badge/terraform-v1.14.9-623ce4.svg?logo=terraform)](https://www.terraform.io/)\n\n\u003e Terraform baseline for personal GCP infrastructure, also positioned as a reference architecture for small-to-medium enterprise adopters — see [docs/positioning.md](docs/positioning.md). WIF-based auth, modular toggles per service, defense-in-depth across module variable validations + `terraform test` + Conftest policies. Two environments: `prd` (always on), `dev` (opt-in).\n\n## Infrastructure State \u0026 Environments\n\nOur infrastructure is designed around a dual-environment model to balance stability with experimentation.\n\n### Environments\n\n- **`prd` (Production):** Our primary environment, which is always active.\n- **`dev` (Development):** An opt-in sandbox environment. It remains dormant until activated by configuring the necessary `GCP_DEV_*` variables and secrets. Curious about the design? Check out [ADR-0006](docs/adr/0006-two-environment-foundation.md).\n\n### Module Availability\n\nBoth environments share the same baseline configuration. Here is a quick look at what is available and its default state:\n\n| Module | Default Status | Notes |\n| :--- | :--- | :--- |\n| **State Bucket** | Always On | Safely managed via Terraform with `prevent_destroy` to protect your state. |\n| **IAM** | Enabled | Core identity and access management. |\n| **Storage** | Enabled | Foundational storage primitives. |\n| **BigQuery** | Disabled | Available for incremental activation. |\n| **Secrets** | Disabled | Available for incremental activation. |\n| **Scheduler** | Disabled | Available for incremental activation. |\n| **Cloud Run** | Disabled | Available for incremental activation. |\n| **Artifact Registry** | Disabled | Available for incremental activation. |\n| **Observability** | Disabled | Cloud Monitoring alerts, dashboards, notification channels — see [ADR-0009](docs/adr/0009-declarative-observability.md). |\n\n## Continuous Integration \u0026 Delivery\n\nOur CI/CD pipelines are fully automated via GitHub Actions to ensure code quality and prevent infrastructure drift:\n\n- **Validation \u0026 Checks (`ci.yml`):** Runs formatting, linting (TFLint, actionlint), secret scanning (Checkov, gitleaks, detect-secrets), documentation checks, and **policy mutation tests** (`conftest verify` against `main_test.rego` — asserts that the deny rules still fire on crafted bad inputs) on every push.\n- **Terraform Operations (`terraform.yml`):** Automatically generates a Terraform plan matrix per environment on PRs and pushes. Includes module **smoke + security tests** (`terraform test` with `mock_provider`) and **Conftest policies** (no primitive roles, no public IAM, PAP enforced on buckets, UBLA enabled). Every plan is signed via GitHub OIDC + Sigstore (`actions/attest-build-provenance`); the apply job verifies the attestation before consuming the artifact, closing the TOCTOU window between PR review and manual dispatch. Applying the plan requires a manual workflow dispatch along with environment approval.\n- **Drift Detection (`drift-detection.yml`):** Runs weekly (and can be triggered manually) across environments to catch and alert on any manual changes made outside of Terraform.\n- **OpenSSF Scorecard (`scorecard.yml`):** Runs weekly + on push to `main` + on branch protection events. Publishes results to scorecard.dev (badge above) and uploads SARIF to the GitHub Security tab.\n\n## Explore the Documentation\n\nWhether you are just starting or looking for deep architectural insights, our documentation has you covered:\n\n- **[Positioning](docs/positioning.md):** *Start here.* Repo scope, adoption tiers (single-developer / small team / mid-enterprise), and the out-of-scope roadmap.\n- **[Getting Started](docs/development.md#getting-started):** The best place to begin your journey.\n- **[Tutorial — From Zero to First Bucket in `prd`](docs/tutorial-first-bucket.md):** Guided walkthrough for first-time setup. Read once before running `just bootstrap`.\n- **[Architecture](docs/architecture.md):** A high-level overview of how everything fits together.\n- **[Diagrams](docs/diagrams/):** Mermaid diagrams of the env model, CI/CD flow, IAM/WIF chain, and trust boundaries.\n- **[CI/CD](docs/cicd.md):** Details on our automation workflows.\n- **[Operations](docs/operations.md):** Day-2 procedures, drift response, and runbook entries.\n- **[Project Governance](GOVERNANCE.md):** Project governance model — roles, decision-making, and continuity (single-maintainer Benevolent Dictator today).\n- **[Assurance Case](docs/assurance-case.md):** Security threat model, trust boundaries, and mitigations matrix.\n- **[Resource Governance](docs/resource-governance.md):** Resource tagging conventions and compliance labels.\n- **[Recipes](docs/recipes/):** Ready-to-use HCL snippets for every module. Just copy, paste, and adapt!\n- **[Architecture Decision Records (ADRs)](docs/adr/):** Dive into the *why* behind our non-obvious engineering choices.\n- **[Terraform Reference](terraform/README.md):** Auto-generated module inputs and outputs.\n- **[Contributor / Agent Guide](AGENTS.md):** The single source of truth for project conventions and AI agent rules.\n\n## Getting Started\n\n\u003e Looking for the full end-to-end playbook (new GCP project, GitHub config,\n\u003e first apply)? See **[Bootstrapping a New GCP Project from Scratch](docs/development.md#bootstrapping-a-new-gcp-project-from-scratch)**\n\u003e in the Development guide.\n\n### 1. Bootstrapping Your Environment\n\nFirst, ensure you have the correct version of Terraform installed. We recommend using [mise](https://mise.jdx.dev) to manage your toolchain seamlessly:\n\n```bash\n# From the repository root, install the required tools based on .mise.toml\nmise install\n\n# Verify that your Terraform version matches the one pinned in the project\nterraform version\n```\n\nNext, navigate to the `terraform/` directory to set up your initial configuration:\n\n```bash\ncd terraform\ncp terraform.tfvars.example terraform.tfvars\n```\n\nOpen `terraform.tfvars` and fill in your specific required fields:\n\n- `project_id`\n- `state_bucket`\n- `repository_id`\n- `workload_identity_pool_id`\n- `workload_identity_pool_provider_id`\n\nOnce configured, run the bootstrap script to provision your foundational resources:\n\n```bash\njust bootstrap\n```\n\n### 2. Daily Workflow\n\nFor day-to-day development, `just` makes it easy to interact with your infrastructure. From the `terraform/` directory, you can run:\n\n```bash\njust doctor      # Verify your local tooling setup and pinned Terraform version\njust check       # Full local gate: fmt + validate + lint + lint-shell + docs + tests + policy-test + pre-commit\njust precommit   # Run the pre-commit hooks alone (mirror CI)\njust policy-test # Run the Conftest mutation tests for the Rego policies\njust plan        # See what changes Terraform will apply\n```\n\n## License\n\nThis project is licensed under the terms found in the [LICENSE](LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flanderox%2Fcloud-landerox-infra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flanderox%2Fcloud-landerox-infra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flanderox%2Fcloud-landerox-infra/lists"}