-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
error running terraform plan:
user@local:~/foo$ terraform plan
╷
│ Error: [ERROR] Failed to fetch secret from keyring path Login/terraform/githubpat
│
│ with data.keyring_secret.github_pat,
│ on main.tf line 1, in data "keyring_secret" "github_pat":
│ 1: data "keyring_secret" "github_pat" {
After looking at https://github.com/zalando/go-keyring it seems like either the contract has drifted or the instructions were a bit off. I found I had to change the way I was storing the secret for the plugin to correctly find it:
secret-tool store --label='not-relevant' service terraform username githubpat
Wasn't sure how to amend the documentation since it seems like there's an assumption about what the label is although in practice I don't think that's necessary.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels