Skip to content

Apply PR review comments: Function App identity, Key Vault RBAC, network rules#92

Merged
fpittelo merged 2 commits intodevfrom
copilot/sub-pr-91
Nov 28, 2025
Merged

Apply PR review comments: Function App identity, Key Vault RBAC, network rules#92
fpittelo merged 2 commits intodevfrom
copilot/sub-pr-91

Conversation

Copy link
Contributor

Copilot AI commented Nov 28, 2025

Addresses review feedback from PR #91 to fix Terraform configuration issues and improve security controls.

Changes

Function App Managed Identity

  • Added identity { type = "SystemAssigned" } block to azurerm_linux_function_app resource
  • Wrapped principal_id output with try() for null-safety

Key Vault Secret Permissions

  • Added azurerm_role_assignment.key_vault_secrets_officer for the deployment service principal
  • Updated secret creation to depend on role assignment, ensuring proper ordering
data "azurerm_client_config" "current" {}

resource "azurerm_role_assignment" "key_vault_secrets_officer" {
  scope                = module.key_vault.key_vault_id
  role_definition_name = "Key Vault Secrets Officer"
  principal_id         = data.azurerm_client_config.current.object_id
  depends_on           = [module.key_vault]
}

Key Vault Network ACLs

  • Added key_vault_ip_rules and key_vault_subnet_ids variables for granular network access control beyond Azure Services bypass

Documentation

  • Fixed grammar inconsistencies in specifications.md (lines 81, 92)

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…twork rules, and docs fixes

Co-authored-by: fpittelo <3135901+fpittelo@users.noreply.github.com>
Copilot AI changed the title [WIP] Implement security enhancements for AlpineBot infrastructure Apply PR review comments: Function App identity, Key Vault RBAC, network rules Nov 28, 2025
Copilot AI requested a review from fpittelo November 28, 2025 18:48
@fpittelo fpittelo added bug Something isn't working enhancement New feature or request labels Nov 28, 2025
Copy link
Owner

@fpittelo fpittelo left a comment

Choose a reason for hiding this comment

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

ok

@fpittelo fpittelo marked this pull request as ready for review November 28, 2025 18:50
@fpittelo fpittelo merged commit 1c68817 into dev Nov 28, 2025
@fpittelo fpittelo deleted the copilot/sub-pr-91 branch November 28, 2025 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants