Repository navigation
Enable Entra authentication by default for Terraform AKS pipelines - #1386
Merged
Leonard Du (LeonardCareer) merged 23 commits intoNov 20, 2026
Merged
Conversation
|
For reviewers only: reply |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The default Azure RBAC change leaves both private-cluster benchmark jobs’ jumpbox identity without Kubernetes API permissions, causing validation to fail with Forbidden before benchmarking starts.
1 open issue
What changed in this PR
This PR makes Microsoft Entra ID and Azure RBAC the default for Telescope’s Terraform-based AKS creation paths, while preserving explicit opt-outs. No role assignments are added; cloud validation remains pending.
Changes:
- Enable Entra authentication by default and disable local accounts when enabled.
- Centralize kubelogin installation and scope Azure CLI authentication conversion to fetched kubeconfig contexts.
- Update authentication tests, input initialization, and documentation.
| File | Description |
|---|---|
| steps/topology/karpenter/validate-resources.yml | Remove redundant kubelogin installation. |
| steps/topology/hyperscale-cluster/validate-resources.yml | Remove redundant kubelogin installation. |
| steps/topology/cluster-automatic/validate-resources.yml | Remove redundant kubelogin installation. |
| steps/terraform/set-input-variables-azure.yml | Initialize inputs when the value is {}. |
| steps/engine/clusterloader2/cilium/scale-cluster.yml | Convert fetched context to Azure CLI authentication. |
| steps/cloud/azure/update-kubeconfig.yml | Install kubelogin and convert the fetched context. |
| steps/cloud/azure/install-kubelogin.yml | Separate installation from kubeconfig conversion. |
| modules/terraform/azure/variables.tf | Enable root-level AAD defaults. |
| modules/terraform/azure/tests/test_azapi.tftest.hcl | Test authentication defaults, opt-outs, and metrics permissions. |
| modules/terraform/azure/tests/test_aks_cli.tftest.hcl | Update expected CLI authentication flags and isolate tests. |
| modules/terraform/azure/tests/test_aks_aad.tftest.hcl | Test enabled defaults, null inputs, and explicit opt-outs. |
| modules/terraform/azure/main.tf | Use the typed AAD input default. |
| modules/terraform/azure/azapi/variables.tf | Default AzAPI AAD integration to enabled. |
| modules/terraform/azure/azapi/main.tf | Disable local accounts when AAD is enabled. |
| modules/terraform/azure/aks/variables.tf | Enable AAD by default for direct module callers. |
| modules/terraform/azure/aks/main.tf | Disable local accounts and remove service-principal admin-group configuration. |
| modules/terraform/azure/aks-cli/variables.tf | Enable AAD by default for direct CLI-module callers. |
| modules/terraform/azure/aks-cli/main.tf | Update authentication flags and disable local accounts. |
| modules/python/tests/test_pipelines.py | Check installation ordering and context-scoped conversion. |
| docs/best-practices.md | Document authentication defaults and opt-outs. |
Review effort: Balanced
xinWeiWei24
reviewed
Nov 19, 2026
xinWeiWei24
reviewed
Nov 19, 2026
xinWeiWei24
previously approved these changes
Nov 20, 2026
Liyu Ma (liyu-ma)
approved these changes
Nov 20, 2026
Lei Yao (wonderyl)
approved these changes
Nov 20, 2026
Leonard Du (LeonardCareer)
deleted the
leonarddu/secure-aks-entra-defaults
branch
November 20, 2026 04:26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
update-kubeconfig.ymland usesudofor installation.