generated from hashicorp/terraform-provider-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for http observability on vault_cluster resource (#671)
* Added fields and validation for http observability provider * Added tests for http observability * Noted http observability provider improvement in changelog * Ran go generate * renamed missingParamsError to invalidProviderConfigError * updated http_bearer_token, http_basic_user, and http_basic_password to specifiy that only basic or bearer authentication can be provided at any given time * Specified allowed values for http_codec * validate that http_codec should only be "JSON" or "NDJSON" values * validated httpMethod so ensure that its value is either POST, PUT, or PATCH * added strings.toUpper for httpMethod and httpCodec * updated http_basic_user and http_basic_password description * separated http validation into separate function * added comment to validateHTTPAuth * changed validateHttpAuth to validateHTTPAuth * return httpConfigError last in validateHttpAuth * renamed missingParamError to invalidProviderConfigError from newrelic branch * Ran 'go generate' * removed httpConfigError from validateHTTPAuth function * Made sure that httpBasicAuth is only set when the user provides authentication * fixed remaining minor changes * made order of http and newrelic provider fields consistent across both files * added changelog file * Added HTTP back into emptyConfig * Removed 660 from changelog
- Loading branch information
1 parent
35e91c4
commit e2a9e8e
Showing
6 changed files
with
411 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:improvement | ||
Add custom http endpoints as an observability provider for streaming audit logs and metrics from HCP Vault clusters. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.