Draft
Fix Terraform backend authentication to use OIDC instead of storage account keys#3
Conversation
- Add use_oidc=true to terraform init in CD workflow (plan and apply jobs) - Add terraform-plan job to CI workflow for PR validation - Update CONFIGURATION.md to document OIDC backend requirement - Fixes "KeyBasedAuthenticationNotPermitted" error when storage account has key-based auth disabled Agent-Logs-Url: https://github.com/Egoorbis/security_agent/sessions/52bcd8e6-4e6b-49e8-a10a-6d5de434a47a Co-authored-by: Egoorbis <33342912+Egoorbis@users.noreply.github.com>
Claude created this pull request from a session on behalf of
Egoorbis
May 8, 2026 10:19
View session
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.
Terraform init was failing with
KeyBasedAuthenticationNotPermittedbecause the Azure Storage Account has key-based authentication disabled, but Terraform defaulted to using storage account keys for backend access.Changes
-backend-config="use_oidc=true"to bothterraform initcommands (plan and apply jobs)terraform-planjob that runs on PRs using OIDC authenticationplanenvironment for OIDC federated credentialsid-token: writepermissionBackend Authentication
Terraform now authenticates to the backend using the service principal's
Storage Blob Data Contributorrole via OIDC, aligning with the repository's zero-key security posture.