Skip to content

Provider produced inconsistent result after apply - empty password #371

Description

@salbracco24

Your environment

Terraform 1P Provider Version: 3.3.1
Authenticated using Connect: Using Connect server credentials (connect_url + connect_token)
OS: Linux (Ubuntu)
Terraform Version: v1.15.5

What happened?

Provider is not able to configure a 1P item with an empty password

What did you expect to happen?

Provider configures a 1P item with an empty password

Steps to reproduce

main.tf:

provider "onepassword" {}

data "onepassword_vault" "deploy" {
  name = "deploy"
}

resource "onepassword_item" "database_credentials" {
  vault = data.onepassword_vault.deploy.uuid

  title      = "db_creds"
  category   = "database"

  type        = "postgresql"
  hostname    = "hostname"
  port        = "5432"
  database    = "db"
  username   = "username"
  password   = ""
  note_value = "IAM user, use an auth token as password."
}

Notes & Logs

terraform apply logs:

│ Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to onepassword_item.database_credentials, provider
│ "provider[\"registry.terraform.io/1password/onepassword\"]" produced an
│ unexpected new value: .password: inconsistent values for sensitive
│ attribute.
│ 
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵
Error: Process completed with exit code 1.

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