Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
codezninja opened this issue Dec 30, 2024 · 7 comments

Comments

@codezninja
Copy link

codezninja commented Dec 30, 2024

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
@moward98
Copy link

Hi @codezninja, in order for us to better understand this issue, can you please share how you're attempting to create this database item? Is it via a Connect server, with a service account, or locally using biometrics?

@codezninja
Copy link
Author

codezninja commented Dec 30, 2024

locally using biometrics

Hi @moward98 so I'm using op locally using biometrics. Versions of op cli is 2.30.3

@moward98
Copy link

Unfortunately this is currently the expected functionality since the CLI can only generate passwords for the password field within Login or Password items.

@codezninja
Copy link
Author

Ahh ic!! Is there a repo to make that feature request then for cli to add support for that?

@moward98
Copy link

moward98 commented Jan 2, 2025

Please feel free to open an issue as a feature request here: https://github.com/1Password/terraform-provider-onepassword/issues

@codezninja
Copy link
Author

codezninja commented Jan 6, 2025

Please feel free to open an issue as a feature request here: 1Password/terraform-provider-onepassword/issues

@moward98 since that is this same repo that this current feature request is in. Can I just update the title to add that support to 1password cli?

@codezninja codezninja changed the title Support Password Recipe for Database Category Feature Request: Support Password Recipe for Database Category using 1password cli Jan 6, 2025
@moward98
Copy link

moward98 commented Jan 6, 2025

@codezninja Yes that's fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants