little-whale-73288
08/02/2021, 2:43 PMmillions-furniture-75402
08/02/2021, 2:48 PMpulumi.log
an applied outputlittle-whale-73288
08/02/2021, 2:51 PM// Used by this Pulumi program for updates
const pulumiUp = new opsgenie.ApiIntegration("infrastructure/opsgenie pulumi up", {
allowWriteAccess: true,
type: "API",
}, {
aliases: [{
name: "infrastructure/opsgenie Pulumi provider",
}],
})
pulumi.log.warn(
pulumi.interpolate `${pulumiUp.name} key has been exposed, please rotate it at <https://taxamo.app.opsgenie.com/settings/integration/edit/API/${pulumiUp.id}>`, // this is line 30
pulumiUp
)
causes this:integrations.ts(31,5): error TS2345: Argument of type 'Output<string>' is not assignable to parameter of type 'string'.
millions-furniture-75402
08/02/2021, 2:53 PMpulumiUp.apply(v => { pulumi.log.warn(v.id); });
little-whale-73288
08/02/2021, 2:55 PMmillions-furniture-75402
08/02/2021, 2:56 PMlittle-whale-73288
08/02/2021, 2:59 PMmillions-furniture-75402
08/02/2021, 2:59 PMlittle-whale-73288
08/02/2021, 3:00 PMmillions-furniture-75402
08/02/2021, 3:01 PM${pulumiUp.name} key has been exposed,
are you trying to work around the fact that this output exposes a secret?little-whale-73288
08/02/2021, 3:02 PMmillions-furniture-75402
08/02/2021, 3:02 PMadditionalSecretOutputs
in optslittle-whale-73288
08/02/2021, 3:02 PMmillions-furniture-75402
08/02/2021, 3:05 PMadditionalSecretOutputs
it should mask secrets when printed. However, if the user has access to retrieve secrets, then they can definitely retrieve the value 🙂little-whale-73288
08/02/2021, 3:05 PMmillions-furniture-75402
08/02/2021, 3:06 PMlittle-whale-73288
08/02/2021, 3:06 PMapiKey
attribute of the resource with 'undefined' if there was a way to do it