How to use block-project-ssh-keys parameter correctly

34 views
Skip to first unread message

chotkery

unread,
Jun 10, 2020, 11:15:01 AM6/10/20
to Packer
Hi all,

I need to block project-wide SSH keys from getting automatically added to a temporary instance while I am building GCP images with Packer. 
As far as I understand from the following links: 

I need to use the following option:
"metadata": {
"block-project-ssh-keys": true
}


I have tried it. Here is an excerpt from the code:

"name": "ubuntu-1604",
"type": "googlecompute",
...
"image_labels": {
"cookbook": "{{user `cookbook`}}",
"application": "{{user `application`}}",
...
},
"metadata": {
"block-project-ssh-keys": true
}
},

However, the project SSH keys are still added, and the users who own those keys are still created on the temporary instance and then baked into our image.
Could you please advise? Is it something obvious that I am missing?

Regards,
Ch.

Megan Marsh

unread,
Jun 10, 2020, 11:22:00 AM6/10/20
to packe...@googlegroups.com
Hi! I know that Packer does some manual setting of ssh keys -- it's possible that a field we're setting overrides this. Can you open a bug report for us over on our github repo, and I'll take a closer look?

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/cecc79e9-3bf9-4219-b80e-890280fd0894o%40googlegroups.com.

chotkery

unread,
Jun 10, 2020, 11:49:43 AM6/10/20
to Packer
Hi Megan,

Thank you for the swift reply! I will create a bug report in github now.

Regards,
Ch.

середа, 10 червня 2020 р. 18:22:00 UTC+3 користувач Megan Marsh написав:
To unsubscribe from this group and stop receiving emails from it, send an email to packe...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages