Skip to content

Commit

Permalink
fix: sensitive private key data was output on the trigger
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Bastide <pbastide@us.ibm.com>
  • Loading branch information
prb112 committed Dec 11, 2023
1 parent 074b0a5 commit cb6f917
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/4_pvs_support/pvs_support.tf
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ resource "null_resource" "remove_chrony_changes" {
triggers = {
user = var.rhel_username
timeout = "${var.connection_timeout}m"
private_key = file(var.private_key_file)
private_key = sensitive(file(var.private_key_file))
host = var.bastion_public_ip
agent = var.ssh_agent
}
Expand Down
2 changes: 1 addition & 1 deletion modules/7_post/haproxy_lb/haproxy_lb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ resource "null_resource" "remove_lbs" {
user = var.rhel_username
timeout = "${var.connection_timeout}m"
name_prefix = "${var.name_prefix}"
private_key = file(var.private_key_file)
private_key = sensitive(file(var.private_key_file))
host = var.bastion_public_ip
agent = var.ssh_agent
ansible_post_path = local.ansible_post_path
Expand Down
2 changes: 1 addition & 1 deletion modules/7_post/post.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ resource "null_resource" "remove_workers" {
user = var.rhel_username
timeout = "${var.connection_timeout}m"
name_prefix = "${var.name_prefix}"
private_key = file(var.private_key_file)
private_key = sensitive(file(var.private_key_file))
host = var.bastion_public_ip
agent = var.ssh_agent
ansible_post_path = local.ansible_post_path
Expand Down

0 comments on commit cb6f917

Please sign in to comment.