Skip to content

Feature Request: Support Password Recipe for Database Category using 1password cli #208

Open
@codezninja

Description

@codezninja

Summary

Trying to create a database category in terraform one password item. But when using password_receipe the generated doesn't have any value. Here's a simple example I would expect the password field to generate a password

resource "onepassword_item" "test" {
  vault    = data.onepassword_vault.this.uuid
  category = "database"
  title    = "Test PSQL Login"

  password_recipe {
    length  = 64
    symbols = false
  }
}

Use cases

Using category database since the item being created is to access a database

Proposed solution

n/a

Is there a workaround to accomplish this today?

  1. Use random password generate in terraform to generate password
  2. Save password using password attribute on item instead

References & Prior Work

n/a

Versions

Terraform v1.10.3
on darwin_arm64
+ provider registry.terraform.io/1password/onepassword v2.1.2
+ provider registry.terraform.io/cyrilgdn/postgresql v1.25.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions