This message was deleted.
# general
s
This message was deleted.
r
If you use
requireObject
instead of
requireSecretObject
it will use the plaintext version. But note that it will be saved to pulumi state as plaintext.
v
I have already tried this and it does not work
I have also tried
pulumi.unsecure
but it does not work either
Note that it works fine in the CLI
pulumi config --show-secrets
so it is not a stack bad configuration
r
Hmm... maybe it's because the whole object is not a secret but the individual keys are?
v
maybe...
It gives me this:
Copy code
"[{\"pass\":\"[secret]\",\"user\":\"admin\"},{\"pass\":\"[secret]\",\"user\":\"admin2\"}]"
It is strange because the CLI works fine
only the TS does not as expected
r
yeah I think it's probably a bug - but I do think it's related to the fact that the individual keys are secrets rather than the entire object which means that
unsecret
or
requireObject
don't unsecret the top-level object because it was never a secret in the first place.
What it should do is also unsecret the individual keys.. but it seems it is not doing that.
v
Yep, I might look into contributing tomorrow
But it seems pretty complicated for what I have seen so far