fix(azure): create Pulumi state storage accounts as StorageV2#323
Conversation
The bootstrap step created the Pulumi state storage account with the legacy BlobStorage kind. StorageV2 is the current general-purpose kind and a superset; block-blob state access via the azblob:// backend is unchanged. The legacy kind also lacks newer security/network properties that some customer security baselines (Azure Policy) evaluate against. Only affects newly bootstrapped workloads (CreateStorageAccount is guarded by an existence check). Existing accounts can be upgraded in place via `az storage account update --set kind=StorageV2` with no downtime. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
@claude review please |
|
Claude finished @amdove's task in 38s —— View job Code Review
The change is correct. A few notes: Correctness: Scope guard: The PR description correctly notes that Comment: The added comment (lines 32–35) is well-motivated — it explains why the legacy kind was a problem and confirms Minor: No blank line between Overall: change is small, well-scoped, and correctly reasoned. No issues. |
Summary
The bootstrap step created the Pulumi state storage account with the legacy
BlobStorageaccount kind. This switches new accounts toStorageV2, the current general-purpose kind.StorageV2is a superset ofBlobStorage. Pulumi state access (block blobs via theazblob://backend) is functionally identical. The legacyBlobStoragekind lacks some newer security/network properties that customer security baselines (Azure Policy) evaluate against, soStorageV2is the cleaner compliance baseline.Scope / impact
CreateStorageAccountis guarded by an existence check in bootstrap, so this does not touch existing accounts.Testing
go build ./...,go vet ./azure/...pass🤖 Generated with Claude Code