Skip to content

Commit

Permalink
Merge pull request #115 from Venafi/readme
Browse files Browse the repository at this point in the history
feat(makefile): Updated README.md to include new supported attributes
  • Loading branch information
rvelaVenafi authored Sep 26, 2023
2 parents eda68b6 + 2b85c67 commit bfb4bd1
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 14 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## 0.17.0 (September 25, 2023)
Added support for client certificate as authentication method. Two attributes were added for this purpose:
p12_cert_filename (filename of the pkcs12 bundle) and p12_cert_password (password of the pkcs12 bundle)
Added support for client certificate as authentication method. Two attributes were added for this purpose: p12_cert_filename (filename of the pkcs12 bundle) and p12_cert_password (password of the pkcs12 bundle)
Added support for client_id attribute to allow users to customize which application is requesting tokens

## 0.16.1 (October 7, 2022)
Added support for nickname attribute to override certificate object name at TPP.
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ collect_artifacts:
cp -rv $(DIST_DIR)/* artifacts

release:
go install github.com/tcnksm/ghr
go install github.com/tcnksm/ghr@latest
ghr -prerelease -n $$RELEASE_VERSION $$RELEASE_VERSION artifacts/

clean:
Expand Down
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,16 +185,19 @@ for Terraform version 0.11 and below.

The `venafi` provider has the following options:

| Property | Type | Description | Env. Variable |
| -------------- | ------ | ------------------------------------------------------------ | ------------ |
| `api_key` | [String](https://www.terraform.io/docs/extend/schemas/schema-types.html#typestring) | Venafi as a Service API key | VENAFI_API |
| `access_token` | [String](https://www.terraform.io/docs/extend/schemas/schema-types.html#typestring) | Trust Protection Platform access token for the "hashicorp-terraform-by-venafi" API Application | VENAFI_TOKEN |
| `tpp_username` | [String](https://www.terraform.io/docs/extend/schemas/schema-types.html#typestring) | **[DEPRECATED]** Trust Protection Platform WebSDK username, use `access_token` if possible | VENAFI_USER |
| `tpp_password` | [String](https://www.terraform.io/docs/extend/schemas/schema-types.html#typestring) | **[DEPRECATED]** Trust Protection Platform WebSDK password, use `access_token` if possible | VENAFI_PASS |
| `trust_bundle` | [String](https://www.terraform.io/docs/extend/schemas/schema-types.html#typestring) | Text file containing trust anchor certificates in PEM format, generally required for Trust Protection Platform | |
| `url` | [String](https://www.terraform.io/docs/extend/schemas/schema-types.html#typestring) | Venafi service URL (e.g. "https://tpp.venafi.example") | VENAFI_URL |
| `zone` | [String](https://www.terraform.io/docs/extend/schemas/schema-types.html#typestring) | Policy folder for TPP or Application name and Issuing Template API Alias for VaaS (e.g. "Business App\Enterprise CIT") | VENAFI_ZONE |
| `dev_mode` | [Boolean](https://www.terraform.io/docs/extend/schemas/schema-types.html#typebool) | When "true", the provider operates without connecting to TPP or VaaS | VENAFI_DEVMODE |
| Property | Type | Description | Env. Variable |
|---------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------|---------------------|
| `api_key` | [String](https://www.terraform.io/docs/extend/schemas/schema-types.html#typestring) | Venafi as a Service API key | VENAFI_API |
| `access_token` | [String](https://www.terraform.io/docs/extend/schemas/schema-types.html#typestring) | Trust Protection Platform access token for the "hashicorp-terraform-by-venafi" API Application | VENAFI_TOKEN |
| `client_id` | [String](https://www.terraform.io/docs/extend/schemas/schema-types.html#typestring) | ID of the application that will request tokens. Not necessary when `access_token` provided. If not provided, defaults to `hashicorp-terraform-by-venafi` | VENAFI_CLIENT_ID |
| `p12_cert_filename` | [String](https://www.terraform.io/docs/extend/schemas/schema-types.html#typestring) | Filename of PKCS#12 keystore containing a client certificate, private key, and chain certificates to authenticate to Venafi Platform | VENAFI_P12_CERTIFICATE |
| `p12_cert_password` | [String](https://www.terraform.io/docs/extend/schemas/schema-types.html#typestring) | Password for the PKCS#12 keystore declared in `p12_cert_filename` | VENAFI_P12_PASSWORD |
| `tpp_username` | [String](https://www.terraform.io/docs/extend/schemas/schema-types.html#typestring) | **[DEPRECATED]** Trust Protection Platform WebSDK username, use `access_token` if possible | VENAFI_USER |
| `tpp_password` | [String](https://www.terraform.io/docs/extend/schemas/schema-types.html#typestring) | **[DEPRECATED]** Trust Protection Platform WebSDK password, use `access_token` if possible | VENAFI_PASS |
| `trust_bundle` | [String](https://www.terraform.io/docs/extend/schemas/schema-types.html#typestring) | Text file containing trust anchor certificates in PEM format, generally required for Trust Protection Platform | |
| `url` | [String](https://www.terraform.io/docs/extend/schemas/schema-types.html#typestring) | Venafi service URL (e.g. "https://tpp.venafi.example") | VENAFI_URL |
| `zone` | [String](https://www.terraform.io/docs/extend/schemas/schema-types.html#typestring) | Policy folder for TPP or Application name and Issuing Template API Alias for VaaS (e.g. "Business App\Enterprise CIT") | VENAFI_ZONE |
| `dev_mode` | [Boolean](https://www.terraform.io/docs/extend/schemas/schema-types.html#typebool) | When "true", the provider operates without connecting to TPP or VaaS | VENAFI_DEVMODE |

>:pushpin: **NOTE**: The indicated environment variables can be used to specify
values for provider settings rather than including them in a configuration
Expand Down
2 changes: 1 addition & 1 deletion website/docs/index.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ for Venafi as a Service or policy folder for Venafi Platform.
* `p12_cert_password` - (Optional, string) Password for the PKCS#12 keystore declared in `p12_cert_filename`
* `trust_bundle` - (Optional, string) PEM trust bundle for Venafi Platform server certificate (e.g. "${file("bundle.pem")}" ).
* `dev_mode` - (Optional, boolean) When "true" will test the provider without connecting to Venafi Platform or Venafi as a Service.
* `client_id` - (Optional, string) ID of the application that will request a token. Note necessary when `access_token` provided. If not provided, defaults to `hashicorp-terraform-by-venafi`
* `client_id` - (Optional, string) ID of the application that will request a token. Not necessary when `access_token` provided. If not provided, defaults to `hashicorp-terraform-by-venafi`

## Environment Variables

Expand Down

0 comments on commit bfb4bd1

Please sign in to comment.