maxlaverse / terraform-provider-bitwarden

Terraform Bitwarden provider to read, create, or update logins, secure notes, folders, org-collections in your Bitwarden Vaults
https://registry.terraform.io/providers/maxlaverse/bitwarden
Mozilla Public License 2.0
67 stars 10 forks source link

[FEATURE] Content support for attachments #146

Closed chrthal closed 21 hours ago

chrthal commented 3 months ago

Hi @maxlaverse , It would be nice to just provide the content of a file like a generated string without providing a path. Like when creating a file https://registry.terraform.io/providers/hashicorp/local/latest/docs/resources/file

maxlaverse commented 3 months ago

Hi @chrthal That's essentially to not have to use the resource you linked right, but support the upload of in-memory attachments out of the box ? I would be a bit worried about files laying around on the disk if the provider/Terraform crashes. It would be nice if the cli allowed us to pass attachment from stdin instead of requiring them to be on disk.

chrthal commented 3 months ago

Yeah, that's what I thought at first, but I haven't had a look at the cli documentation....

For me, the thing is that I run it in a pipeline so that the files are recreated on each run.

maxlaverse commented 1 month ago

Hi! I've implemented experimental support for using the provider without requiring the Bitwarden CLI to be installed. If you have the opportunity, please give it a try! Talking directly to the API would open up the possibility of creating attachment without storing them on disk first.

maxlaverse commented 21 hours ago

Released in v0.12.0