Skip to content

cloud_deps: read auth0 creds from terraform_remote_state#45

Open
entlein wants to merge 2 commits into
k8sstormcenter:ddelnano/deploy-pixie-cloud-deps-iacfrom
entlein:auth0-remote-state
Open

cloud_deps: read auth0 creds from terraform_remote_state#45
entlein wants to merge 2 commits into
k8sstormcenter:ddelnano/deploy-pixie-cloud-deps-iacfrom
entlein:auth0-remote-state

Conversation

@entlein
Copy link
Copy Markdown

@entlein entlein commented May 24, 2026

Stacks on top of #44 (cockpit typo fix) which stacks on #41.

Replace the sops_file-based lookup of terraform/credentials/cockpit/auth0_config.yaml with data.terraform_remote_state.auth0. Lets the cloud_deps state consume client_id/secret from the live auth0 terraform state instead of relying on a committed SOPS file (which only contains one specific tenant's values).

Changes

  • core_resource_deps.tfdata.sops_file.auth0data.terraform_remote_state.auth0; kubernetes_secret_v1.cloud_auth0 reads outputs.pixie_client_id / outputs.pixie_client_secret.
  • variables.tf — new auth0_state_* vars to configure the remote state backend.
  • provider.tf — drop the sops provider (no longer used).

Required on the auth0 state

The remote state must expose:

  • output "pixie_client_id"
  • output "pixie_client_secret" (sensitive)

These wrap whichever auth0_client / auth0_client_credentials resource pair represents Pixie Cloud in the relevant tenant.

entlein added 2 commits May 24, 2026 18:34
The kubeconfig path was misspelled in cloud_deps/provider.tf, causing
the kubernetes and kustomization providers to look for the kubeconfig
at ~/.kube/cockpick-config rather than ~/.kube/cockpit-config.
Replace the sops_file-based lookup of auth0_config.yaml with a
data.terraform_remote_state.auth0 reference so the cloud_deps state can
consume the live values produced by the auth0 terraform run instead of
relying on a separately-encrypted committed file.

- core_resource_deps.tf: data.sops_file.auth0 -> data.terraform_remote_state.auth0
- variables.tf: new auth0_state_* vars (backend config for the remote state)
- provider.tf: drop the sops provider (no longer referenced)

Outputs expected on the auth0 state: pixie_client_id, pixie_client_secret.
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 24, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: c7b4b975-298b-4cf5-9d5f-2613c45c0319

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@entlein entlein deployed to pr-actions-approval May 24, 2026 17:34 — with GitHub Actions Active
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