-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Engine marking non-secret values as secret #17440
Comments
Just confirming I was able to reproduce this. The After the initial "spec": {
"__defaults": [],
"name": "app",
"region": "ams",
"services": [
{
"__defaults": [],
"envs": [
{
"__defaults": [],
"key": "CA_CERT",
"scope": "RUN_AND_BUILD_TIME",
"type": "GENERAL",
"value": {
"4dabf18193072939515e22adb298388d": "1b47061264138c4ac30d75fd1eb44270",
"ciphertext": "XXX"
}
}
],
"git": {
"__defaults": [],
"branch": "main",
"repoCloneUrl": "https://github.com/digitalocean/sample-golang.git"
},
"name": "service-name"
}
]
} It also shows the entire "spec": {
"alerts": [],
"databases": [],
"domainNames": [],
"domains": [],
"egresses": [],
"envs": [],
"features": [
"buildpack-stack=ubuntu-22"
],
"functions": [],
"ingress": {
"rules": [
{
"component": {
"name": "service-name",
"preservePathPrefix": false,
"rewrite": ""
},
"cors": null,
"match": {
"path": {
"prefix": "/"
}
},
"redirect": null
}
]
},
"jobs": [],
"name": "app",
"region": "ams",
"services": {
"4dabf18193072939515e22adb298388d": "1b47061264138c4ac30d75fd1eb44270",
"ciphertext": "XXX"
},
"staticSites": [],
"workers": []
}, This is almost certainly due to: pulumi/sdk/go/common/resource/plugin/provider_plugin.go Lines 1370 to 1375 in aa9ca8a
and: pulumi/sdk/go/common/resource/plugin/provider_plugin.go Lines 578 to 591 in aa9ca8a
The note about arrays is telling:
Which is what is happening here. And is likely the reason for the strange diff. |
What happened?
As part of diagnosing pulumi/pulumi-digitalocean#308, I saw this diff:
Only
value
should be a secret.instanceCount
andinstanceSizeSlug
should not be secrets.Example
Run
pulumi up
with theproviders.all
ESC env on this program:After the program is created, run
pulumi preview --diff
to see the extra secrets.Output of
pulumi about
CLI
Version 3.134.2-dev.0
Go Version go1.23.1
Go Compiler gc
Plugins
KIND NAME VERSION
resource digitalocean unknown
language yaml unknown
Host
OS darwin
Version 14.6.1
Arch arm64
This project is written in yaml
Current Stack: pulumi/dev-yaml/dev
TYPE URN
pulumi:pulumi:Stack urn:pulumi:dev::dev-yaml::pulumi:pulumi:Stack::dev-yaml-dev
pulumi:providers:digitalocean urn:pulumi:dev::dev-yaml::pulumi:providers:digitalocean::default
digitalocean:index/app:App urn:pulumi:dev::dev-yaml::digitalocean:index/app:App::topic
Found no pending operations associated with dev
Backend
Name pulumi.com
URL https://app.pulumi.com/ian-pulumi-corp
User ian-pulumi-corp
Organizations ian-pulumi-corp, pulumi
Token type personal
No dependencies found
Pulumi locates its logs in /var/folders/fg/_1q36r4j6yx0rwz2fbhjd5y40000gn/T/ by default
Additional context
I'm running against digitalocean v4.33.0.
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: