Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flag private-key attribute as sensitive #1548

Merged
merged 2 commits into from Apr 20, 2023
Merged

Flag private-key attribute as sensitive #1548

merged 2 commits into from Apr 20, 2023

Conversation

agrevtsev
Copy link
Contributor

Trying to fix #677
as it seems terraform plan is leaking full-body private_key

Terraform detected the following changes made outside of Terraform since the
last "terraform apply" which may have affected this plan:

  # openstack_compute_keypair_v2.keypair_1 has been deleted
  - resource "openstack_compute_keypair_v2" "keypair_1" {
      - id          = "prod-prod-1-keypair_1" -> null
        name        = "prod-prod-1-keypair_1"
      - private_key = <<-EOT
            -----BEGIN RSA PRIVATE KEY-----
            <skip-skip-skip-skip>
            -----END RSA PRIVATE KEY-----
        EOT -> null
      - public_key  = "ssh-rsa <skip-skip-skip-skip> Generated-by-Nova" -> null
        # (1 unchanged attribute hidden)
    }

@nikParasyr nikParasyr merged commit 80b4bb3 into terraform-provider-openstack:main Apr 20, 2023
7 checks passed
@agrevtsev agrevtsev deleted the flag-private_key-as-sensitive branch April 20, 2023 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compute V2: Add sensitive property to the private_key attribute
2 participants