Rotating a passphrase requires that the old passphrase is available via one of the `PULUMI_CONFIG_PASSPHRASE` or `PULUMI_CONFIG_PASSPHRASE_FILE` environment variables. This confuses `readPassphrase` when reading a new passphrase, since that function checks the aforementioned environment variables prior to reading from the console. The overall effect is that it is impossible to rotate the passphrase for a stack using the passphrase provider. These changes fix this by always reading from the console when rotating a passphrase.
13 lines
217 B
Go
13 lines
217 B
Go
// Copyright 2016-2018, Pulumi Corporation. All rights reserved.
|
|
|
|
package main
|
|
|
|
import (
|
|
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
|
)
|
|
|
|
func main() {
|
|
pulumi.Run(func(ctx *pulumi.Context) error {
|
|
return nil
|
|
})
|
|
}
|