pulumi: Access failure after upgrading to 2.23.1 using azure blob storage as state backend
After upgrading from 2.22.0 to 2.23.1 I get an error when Pulumi tries to access Azure blob storage for state. Rollbacking to 2.22.0 makes it work once again.
error: saving update info: blob (key ".pulumi/stacks/testsa342342.json -> .pulumi/history/testsa342342/testsa342342-1616410081849968900.checkpoint.json") (code=Unknown): -> github.com/Azure/azure-storage-blob-go/azblob.newStorageError, /Users/runner/go/pkg/mod/github.com/!azure/azure-storage-blob-go@v0.13.0/azblob/zc_storage_error.go:42
===== RESPONSE ERROR (ServiceCode=AuthorizationPermissionMismatch) =====
Description=This request is not authorized to perform this operation using this permission.
RequestId:1c982d00-f01e-0033-6008-1f8593000000
Time:2021-03-22T10:48:00.8339304Z, Details:
Code: AuthorizationPermissionMismatch
PUT https://testsa342342.blob.core.windows.net/pulumi-state/.pulumi/history/testsa342342/testsa342342-1616410081849968900.checkpoint.json?se=2030-03-23t10%3A22%3A00z&sig=REDACTED&sp=racwdxl&sr=c&st=2021-03-20t10%3A22%3A00z&sv=2020-04-08&timeout=61
User-Agent: [go-cloud/blob/0.1.0 Azure-Storage/0.13 (go1.16.2; linux)]
X-Ms-Client-Request-Id: [cab8237f-1c29-4ad8-4eab-c1e448300257]
X-Ms-Copy-Source: [https://testsa342342.blob.core.windows.net/pulumi-state/.pulumi/stacks/testsa342342.json?se=2030-03-23t10%3A22%3A00z&sig=REDACTED&sp=racwdxl&sr=c&st=2021-03-20t10%3A22%3A00z&sv=2020-04-08]
X-Ms-Tags: []
X-Ms-Version: [2019-12-12]
--------------------------------------------------------------------------------
RESPONSE Status: 403 This request is not authorized to perform this operation using this permission.
Content-Length: [279]
Content-Type: [application/xml]
Date: [Mon, 22 Mar 2021 10:48:00 GMT]
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
X-Ms-Client-Request-Id: [cab8237f-1c29-4ad8-4eab-c1e448300257]
X-Ms-Error-Code: [AuthorizationPermissionMismatch]
X-Ms-Request-Id: [1c982d00-f01e-0033-6008-1f8593000000]
X-Ms-Version: [2019-12-12]
ERROR: 255
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 8
- Comments: 17 (8 by maintainers)
Commits related to this issue
- Use fork of go-cloud to temporarily unblock #6596 — committed to pulumi/pulumi by deleted user 6 years ago
Hi friends,
I am happy to say that we just released v2.25.2 of Pulumi which fixes up this issue
Before:
After:
AZURE_STORAGE_ACCOUNT and AZURE_STORAGE_SAS_TOKEN
It doesn’t break me. For me it’s still working as it should and the error is a red herring.
Regards, Chris
From: Joel @.> Sent: Thursday, April 15, 2021 1:21:42 AM To: pulumi/pulumi @.> Cc: Christopher Glover @.>; Comment @.> Subject: Re: [pulumi/pulumi] Access failure after upgrading to 2.23.1 using azure blob storage as state backend (#6596)
@stack72https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fstack72&data=04|01||82a12b78d4e74ee4f28508d8ffe780d0|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637540717049980030|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=CW3G7O6ImeynSHltEqD3ExPeU5ojMSGS%2FwP4XLLxhhk%3D&reserved=0 Any plans fixing this breaking change so we can continue updating to newer pulumi versions?
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpulumi%2Fpulumi%2Fissues%2F6596%23issuecomment-820224919&data=04|01||82a12b78d4e74ee4f28508d8ffe780d0|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637540717049990029|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=Hlcs5522EoratnwnvEJ%2BrLq66P1SdsOvEDugcCFV6bk%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAKYJ77F5BMQXXEWUHZUAHV3TI2OZNANCNFSM4ZS4A4UA&data=04|01||82a12b78d4e74ee4f28508d8ffe780d0|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637540717050000023|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=yEA3atB4Voi8vJ1paizd9RP9U6jCRWMFJINOfBZLVhE%3D&reserved=0.
None of the code in that PR will run unless an env var is set. I strongly suspect https://github.com/pulumi/pulumi/pull/6473 is the actual trigger for this. cc @stack72.
I can confirm this issue in 2.23.1 and working around it by downgrading to 2.22.0