Skip to content

OpenTofu stops asking for TouchID after a while and hangs when running plan #341

@sondr3

Description

@sondr3

Your environment

❯ tofu -version
OpenTofu v1.11.5
on darwin_arm64
+ provider registry.opentofu.org/1password/onepassword v3.2.1
+ provider registry.opentofu.org/hashicorp/local v2.7.0
+ provider registry.opentofu.org/hetznercloud/hcloud v1.60.1
+ provider registry.opentofu.org/linode/linode v3.9.0
+ provider registry.opentofu.org/ovh/ovh v2.11.0
+ provider registry.opentofu.org/poseidon/ct v0.14.0
1Password for Mac 8.12.6 (81206031)

OS:

macos 26.2 (25C56)

Terraform Version:

OpenTofu v1.11.5

What happened?

  1. Run tofu plan a few times, it asks for TouchID to read a data "onepassword_item" "foo" {} block
  2. Unsure if it happens after my screen locks or just a set time-out, but wait a bit
  3. Now it gets stuck and loops forever waiting for the onepassword_item
trace logs
2026-03-01T20:33:46.900+0100 [TRACE] dag/walk: vertex "data.onepassword_item.foo (expand)" is waiting for "provider[\"registry.opentofu.org/1password/onepassword\"]"
2026-03-01T20:33:46.900+0100 [TRACE] dag/walk: vertex "data.ct_config.hetzner (expand)" is waiting for "data.onepassword_item.foo (expand)"
2026-03-01T20:33:46.900+0100 [TRACE] dag/walk: vertex "hcloud_server.this (expand)" is waiting for "hcloud_ssh_key.this (expand)"
2026-03-01T20:33:46.900+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/1password/onepassword\"] (close)" is waiting for "data.onepassword_item.foo (expand)"

What did you expect to happen?

The TouchID dialog to pop up

Steps to reproduce

I can't really easily share this, but this is essentially what's looping

data "onepassword_item" "foo" {
  vault = "123456"
  uuid  = "abcdefg"
}

resource "hcloud_ssh_key" "this" {
  public_key = data.onepassword_item.foo.foo
}

resource "hcloud_server" "this" {
  ssh_keys           = [hcloud_ssh_key.foo.id]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working as expected. Has never worked before. When it has, use "regression" instead.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions