This message was deleted.
# general
s
This message was deleted.
l
It can be wrapped using
pulumi.secret
. I suppose some people want out dump the plaintext password to output so that it can be immediately changed, maybe? Not everyone stays abreast of the best infosec advice... 😞
a
I have this below the creation
Copy code
const rabbitMqAdminPwd = pulumi.secret(accountPassword);
 outputs["rabbitMqAdminPwd"] = rabbitMqAdminPwd;
I will try to wrap the whole resource creation in a secret, but I don't expect that to work. I don't want the actual object I'm using to be a secret.
This did not make the resource a secret in the resource viewer
const test = pulumi.secret(new random.RandomString({}).result);
f
a
Thank you @faint-table-42725 I did just find that.
Copy code
const accountPassword = new random.RandomPassword("RabbitMqAdmin_password", {
        length: 40, 
        special: true, 
        overrideSpecial: `_%@`
    }, { additionalSecretOutputs:["result"] }).result;
I guess though that I would expect
new random.RandomPassword()
to do that by default.