sticky-kitchen-61063
11/25/2025, 3:24 PMPreviewing update (svc-euw1):
error: constructing secrets manager of type "cloud": secrets (code=InvalidArgument): InvalidCiphertextException:
and retrying the pulumi command several times with nothing changing eventually works. From a little reading it might have something to do with how go-cloud handles chaining SSO auth. Has anyone seen this?steep-plastic-74107
11/25/2025, 6:20 PMsticky-kitchen-61063
11/26/2025, 12:06 AMpulumi stack init svc-euw1 \
ā --secrets-provider "awskms:///arn:aws:kms:us-east-1:000000000000:alias/pulumi-management-admin?region=us-east-1&context_env=svc&context_stack=aws-eks-svc-euw1"
Created stack 'svc-euw1'
and get this in my stack file
secretsprovider: awskms:///arn:aws:kms:us-east-1:000000000000:alias/pulumi-management-admin?region=us-east-1&context_env=svc&context_stack=aws-eks-svc-euw1
when I try to fetch and it sometimes works, in Cloudtrail the encryption context looks like this
"requestParameters": {
"encryptionContext": {
"stack": "svc",
"env": "svc"
},
"encryptionAlgorithm": "SYMMETRIC_DEFAULT"
},
and sometimes it fails with cloudtrail showing both encryption context keys are the same:
"errorCode": "InvalidCiphertextException",
"requestParameters": {
"encryptionContext": {
"stack": "aws-eks-svc-euw1",
"env": "aws-eks-svc-euw1"
},
"encryptionAlgorithm": "SYMMETRIC_DEFAULT"
},
In both cases, it's incorrectly setting both encryption context keys to one value or the other.
This is me trying it over and over until it works:
AWS_PROFILE=my_profile pulumi config set --secret testSecret foo
error: secrets (code=InvalidArgument): InvalidCiphertextException:
AWS_PROFILE=my_profile pulumi config set --secret testSecret foo
error: secrets (code=InvalidArgument): InvalidCiphertextException:
AWS_PROFILE=my_profile pulumi config set --secret testSecret foo
error: secrets (code=InvalidArgument): InvalidCiphertextException:
AWS_PROFILE=my_profile pulumi config set --secret testSecret foo
error: secrets (code=InvalidArgument): InvalidCiphertextException:
AWS_PROFILE=my_profile pulumi config set --secret testSecret foo
error: secrets (code=InvalidArgument): InvalidCiphertextException:
AWS_PROFILE=my_profile pulumi config set --secret testSecret foo
error: secrets (code=InvalidArgument): InvalidCiphertextException:
AWS_PROFILE=my_profile pulumi config set --secret testSecret foo
error: secrets (code=InvalidArgument): InvalidCiphertextException:
AWS_PROFILE=my_profile pulumi config set --secret testSecret foo
AWS_PROFILE=my_profile pulumi config get testSecret
error: secrets (code=InvalidArgument): InvalidCiphertextException:
AWS_PROFILE=my_profile pulumi config get testSecret
error: secrets (code=InvalidArgument): InvalidCiphertextException:
AWS_PROFILE=my_profile pulumi config get testSecret
foosticky-kitchen-61063
11/26/2025, 12:10 AM"encryptionContext": {
"stack": "svc",
"env": "svc"
},
is because that was just so happened to be what the encryption context was incorrectly set to when I encrypted the stack's encryptedkey.sticky-kitchen-61063
11/26/2025, 12:10 AMsticky-kitchen-61063
11/26/2025, 12:11 AM"encryptionContext": {
"stack": "aws-eks-svc-euw1",
"env": "svc"
},steep-plastic-74107
11/26/2025, 12:12 AMsticky-kitchen-61063
11/26/2025, 12:13 AMsteep-plastic-74107
11/26/2025, 12:15 AMsticky-kitchen-61063
11/26/2025, 12:15 AMsteep-plastic-74107
11/26/2025, 12:16 AMsticky-kitchen-61063
11/26/2025, 12:16 AMAWS_PROFILE=my_profile pulumi stack init svc-euw1 \
ā --secrets-provider "awskms:///arn:aws:kms:us-east-1:000000000000:alias/pulumi-management-admin?region=us-east-1&context_stack=aws-eks-svc-euw1"
Created stack 'svc-euw1'
AWS_PROFILE=my_profile pulumi config set --secret testSecret foo
AWS_PROFILE=my_profile pulumi config set --secret testSecret foo
AWS_PROFILE=my_profile pulumi config set --secret testSecret foo
AWS_PROFILE=my_profile pulumi config set --secret testSecret foo
AWS_PROFILE=my_profile pulumi config get testSecret
foo
AWS_PROFILE=my_profile pulumi config get testSecret
foo
AWS_PROFILE=my_profile pulumi config get testSecret
foo
AWS_PROFILE=my_profile pulumi config get testSecret
foosticky-kitchen-61063
11/26/2025, 12:17 AMsticky-kitchen-61063
11/26/2025, 12:18 AMsticky-kitchen-61063
11/26/2025, 12:18 AMsteep-plastic-74107
11/26/2025, 12:19 AMsteep-plastic-74107
11/26/2025, 12:52 AMsteep-plastic-74107
11/26/2025, 1:04 AM