Scaffold the ghp Vault secrets engine Terraform provider #1
Reference in New Issue
Block a user
Delete Branch "benvin/scaffold-ghp-provider"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The ghp Vault secrets engine ('vault-plugin-secrets-ghp', mounted at
ghp) mints short-lived scoped ghp tokens, but its mount, config, and roles had no Terraform surface. This provider gives one so the engine can be driven declaratively fromterraform-vault, mirroringterraform-provider-giteavaultsecret.Changes
ghpvaultsecret, sourcegit.unkin.net/unkin/ghpvaultsecret) withVAULT_ADDR/VAULT_TOKENfallback.ghpvaultsecret_secret_backend: mount the engine and write itsconfig—base_url(defaulthttps://ghp.unkin.net), write-onlyadmin_token, write-onlyca_cert,tls_skip_verify,request_timeout_seconds. Read never returns the sensitive fields, so they are preserved in state without drift.ghpvaultsecret_secret_role:token_type(agent/proxy),installation_id,app_record_id,repositories,scopes,session_prefix,ttl,max_ttl; validate that agent roles setinstallation_id.gofmt,go vet,go build, andgo test -raceall pass locally.