Skip to content

feat: replace terraform github actions with atlantis - #143

Merged
BK1031 merged 3 commits into
mainfrom
bk1031/atlantis
Aug 3, 2026
Merged

feat: replace terraform github actions with atlantis#143
BK1031 merged 3 commits into
mainfrom
bk1031/atlantis

Conversation

@BK1031

@BK1031 BK1031 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor
  • Deploy Atlantis v0.46.0 on gr-foundry (apps/atlantis.yaml + manifests/atlantis/): StatefulSet with 5Gi PVC, Traefik ingress at atlantis.gauchoracing.com (proxied), secrets via VaultSecretSync from atlantis-prod
  • Auth: GitHub App (id/key/webhook secret from Vault), basic-auth on the web UI, repo allowlist locked to this repo
  • Applies gated on PR approval + mergeable via server-side repo config
  • Add infra/environments/dev root: assume-role into the Gaucho Racing Development account (104050870528), own state key in the shared tfstate bucket
  • Root atlantis.yaml manages the dev project only — prod stays manual/local for now and gets added to Atlantis later
  • AWS access: new atlantis IAM user (management account) that assumes OrganizationAccountAccessRole into member accounts
  • Remove terraform-plan.yml / terraform-apply.yml workflows
  • Update prod .terraform.lock.hcl (helm provider dropped in chore(prod): remove eks and argocd modules after cluster teardown #142)

Not functional until (manual steps): GitHub App created + installed, secrets populated in Vault at atlantis-prod.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7c31822691

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

- name: ATLANTIS_WEB_USERNAME
value: gaucho
- name: ATLANTIS_REPO_CONFIG_JSON
value: '{"repos":[{"id":"github.com/Gaucho-Racing/infrastructure","apply_requirements":["approved","mergeable"],"plan_requirements":[],"import_requirements":["approved"]}]}'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Require approval before running plans

When an untrusted user can open a pull request, the empty plan_requirements lets Atlantis autoplan the contributor-controlled Terraform before any review, inside a pod containing the production AWS and Cloudflare credentials. Terraform planning can execute provider or external data-source code, so a malicious PR can print or exfiltrate those credentials even though apply requires approval; require approval for plans or run them with credentials that cannot affect or expose production.

Useful? React with 👍 / 👎.

@BK1031
BK1031 merged commit 9c74d3b into main Aug 3, 2026
@BK1031
BK1031 deleted the bk1031/atlantis branch August 3, 2026 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant