You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.
We're currently using the secrethub-http-proxy as an HTTP state backend now, but preferably we'd like to write a custom state backend.
However, seeing as state backends aren't pluggable yet we will have to create a fork of the Terraform project and add our state there. For people to actually be able to use the backend though, we'd have to get it merged back into the Terraform project and included in the next release.
If you want us to push this native backend through, please take a moment to +1 👍 this issue and we'll prioritize it on the roadmap.
Implementation details
Technically speaking, it shouldn't be too difficult a task:
Looking at the patterns other backends use, we would then create a small wrapper around the secrethub-go/pkg/secrethub.Clientinterface that implements the Terraform specific logic, similar to the httpClienttype and have our secrethub.Backend type use that.
We're currently using the secrethub-http-proxy as an HTTP state backend now, but preferably we'd like to write a custom state backend.
However, seeing as state backends aren't pluggable yet we will have to create a fork of the Terraform project and add our state there. For people to actually be able to use the backend though, we'd have to get it merged back into the Terraform project and included in the next release.
If you want us to push this native backend through, please take a moment to +1 👍 this issue and we'll prioritize it on the roadmap.
Implementation details
Technically speaking, it shouldn't be too difficult a task:
backend/remote-state/secrethub
: https://github.com/hashicorp/terraform/tree/master/backend/remote-statebackend.Backend
interface. For inspiration, check out the S3 and HTTP implementations:secrethub-go/pkg/secrethub.Client
interface that implements the Terraform specific logic, similar to thehttpClient
type and have oursecrethub.Backend
type use that.Get
,Update
,Delete
functions is actually already done in the proxy for the HTTPGET
,UPDATE
, andDELETE
handler functions.The text was updated successfully, but these errors were encountered: