Skip to content

wp*: dbpass is shown in plaintext in terraform show or terraform state show #6

Description

@pecio

In the openstack_compute_instance_v2 resources, metadata parameter correctly censors db_pass but all_metadata does not:

    all_metadata        = {
        "db_addr" = "192.168.200.232"
        "db_name" = "wp"
        "db_pass" = "-FVP$CtJaurSI5!d"
        "db_user" = "wp"
    }
.
.
.
    metadata            = {
        "db_addr" = "192.168.200.232"
        "db_name" = "wp"
        "db_pass" = (sensitive)
        "db_user" = "wp"
    }

Note that, whatever we do, tfstate will keep it plaintext but this is always so with Terraform and sensitive data.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions