forked from camptocamp/terraform-provider-pass
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Hi! Thank you for forking this repo and adding the macOS support, it's really helpful!
Would you be interested to accept a patch implementing a way of specifying a mount point?
Here's an example of my idea:
terraform {
required_providers {
pass = {
source = "mecodia/pass"
}
}
}
# [...]
+provider "pass" {
+ mount = "work-secrets"
+}this, in turn, would allow the user to only specify the key in said mountpoint:
data "pass_password" "my_github_password" {
- path = "work-secrets/github/password"
+ path = "github/password"
}which in my opinion would come in handy when you use a lot of secrets:
- allows you to shorten the repetitive
patha bit over multiple resources/data sources - helps in avoiding a misconfiguration in situations where the same path is present in both root and custom mounts.
From technical perspective I was thinking on implementing it like so:
- adding a variable to the
passProviderstate struct - checking if specified mount point is present at the provider initialization
- prefixing every
pathwith thepassProvider.mountin resources and data sources
Let me know what do you think about it :) cheers
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels