Skip to content

Secrets Lookup Fails #4

@julianfig

Description

@julianfig

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions