-
Notifications
You must be signed in to change notification settings - Fork 10
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
Changing value of an organization secrets deletes it #111
Comments
Managed to reproduce this: import * as pulumi from "@pulumi/pulumi";
import * as github from "@pulumi/github";
import * as random from "@pulumi/random";
const secret = new random.RandomString("secret", {
length: 15
});
const orgSecret = new github.ActionsOrganizationSecret("orgSecret", {
plaintextValue: secret.result,
secretName: "mysecret",
visibility: "all"
}); Then change the length of the secret, run Diff when changing the secret:
|
I'm guessing this is an outcome of attempting to create before delete for the replacement. If you specify |
@leezen , that worked. I guess it is for scenarios like this that |
Great! |
This should be reopened.
It is also extremely unintuitive that a user would need to specify |
hi @alex-hunt-materialize! I did some digging for you and:
More info here:
|
Thank you so much for the quick response. I get that your hands are tied by the upstream provider, but if I'm reading that code correctly, shouldn't it only hit that when the update timestamp changes outside of pulumi/terraform? In our case, we're seeing this behavior even though pulumi is the sole modifier of the secret. |
I have an automation job where I want to create and also update organization secrets. Creating them works fine. When I do an update to the secrets it for some reason gets deleted. It is still visible in the resource list of the stack, but the secret has been deleted in github.
Pulumi version: 2.22.0
pulumi/github version: 3.1.0
Language: typescript
The text was updated successfully, but these errors were encountered: