diff --git a/.markdownlint.yml b/.markdownlint.yml index 9fc43b1..b56b08e 100644 --- a/.markdownlint.yml +++ b/.markdownlint.yml @@ -1,4 +1,5 @@ MD013: code_blocks: false - line_length: 100 + line_length: 200 MD014: false +MD034: false diff --git a/CHANGELOG.md b/CHANGELOG.md index 934229d..8c3091a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,199 +5,199 @@ ENHANCEMENTS: -* release now with golang 1.21 -* resource/**wallix-bastion_user**: update the password when has changed in config to not empty value and `force_change_pwd` isn't true (instead of no-op on password when update resource) +- release now with golang 1.21 +- resource/**wallix-bastion_user**: update the password when has changed in config to not empty value and `force_change_pwd` isn't true (instead of no-op on password when update resource) BUG FIXES: -* reduced compute and memory usage to prepare the JSON payload when creating or updating resource +- reduced compute and memory usage to prepare the JSON payload when creating or updating resource ## 0.11.0 (September 26, 2023) FEATURES: -* add `wallix-bastion_local_password_policy` data source +- add `wallix-bastion_local_password_policy` data source ## 0.10.0 (July 27, 2023) FEATURES: -* add `wallix-bastion_connection_message` resource +- add `wallix-bastion_connection_message` resource BUG FIXES: -* reduce CRUD operations time (reuse HTTP/TCP connections instead of using a new for each request to API) +- reduce CRUD operations time (reuse HTTP/TCP connections instead of using a new for each request to API) ## 0.9.1 (May 15, 2023) BUG FIXES: -* force a resource replacement when `private_key` change on `wallix-bastion_device_localdomain_account_credential` and `wallix-bastion_domain_account_credential` resources (update doesn't work with generated keys) +- force a resource replacement when `private_key` change on `wallix-bastion_device_localdomain_account_credential` and `wallix-bastion_domain_account_credential` resources (update doesn't work with generated keys) ## 0.9.0 (March 03, 2023) ENHANCEMENTS: -* resource/**wallix-bastion_profile**: add `dashboards` argument (not compatible with API v3.3) +- resource/**wallix-bastion_profile**: add `dashboards` argument (not compatible with API v3.3) BUG FIXES: -* fix not detecting that an account's credentials have been deleted while it still exists with resource ID but not linked to the account +- fix not detecting that an account's credentials have been deleted while it still exists with resource ID but not linked to the account ## 0.8.0 (February 24, 2023) FEATURES: -* add `wallix-bastion_configoption` data source +- add `wallix-bastion_configoption` data source ENHANCEMENTS: -* release now with golang 1.20 +- release now with golang 1.20 ## 0.7.0 (January 13, 2023) FEATURES: -* add `wallix-bastion_authdomain_ad` resource -* add `wallix-bastion_authdomain_azuread` resource -* add `wallix-bastion_authdomain_ldap` resource -* add `wallix-bastion_authdomain_mapping` resource -* add `wallix-bastion_externalauth_saml` resource +- add `wallix-bastion_authdomain_ad` resource +- add `wallix-bastion_authdomain_azuread` resource +- add `wallix-bastion_authdomain_ldap` resource +- add `wallix-bastion_authdomain_mapping` resource +- add `wallix-bastion_externalauth_saml` resource ENHANCEMENTS: -* release now with golang 1.19 -* optimize resource search when checking if it already exists before create or when importing -* resource/**wallix-bastion_externalauth_ldap**: add `passphrase` argument -* allow use `v3.8` to `api_version` provider argument +- release now with golang 1.19 +- optimize resource search when checking if it already exists before create or when importing +- resource/**wallix-bastion_externalauth_ldap**: add `passphrase` argument +- allow use `v3.8` to `api_version` provider argument BUG FIXES: -* resource/**wallix-bastion_\*domain** & resource/**wallix-bastion_\*credential**: fix missing requirement of `private_key` with `passphrase` argument -* resource/**wallix-bastion_externalauth_kerberos**: fix missing sensitive option on `keytab` -* resource/**wallix-bastion_externalauth_ldap**: fix missing sensitive option on `certificate` and `private_key` and can't be refresh +- resource/**wallix-bastion_\*domain*- & resource/**wallix-bastion_\*credential**: fix missing requirement of `private_key` with `passphrase` argument +- resource/**wallix-bastion_externalauth_kerberos**: fix missing sensitive option on `keytab` +- resource/**wallix-bastion_externalauth_ldap**: fix missing sensitive option on `certificate` and `private_key` and can't be refresh ## 0.6.1 (May 17, 2022) NOTES: -* use custom User-Agent when request API -* deps: bump terraform-plugin-sdk to v2.16.0 +- use custom User-Agent when request API +- deps: bump terraform-plugin-sdk to v2.16.0 ## 0.6.0 (February 25, 2022) FEATURES: -* add `wallix-bastion_version` data source +- add `wallix-bastion_version` data source ENHANCEMENTS: -* allow use `v3.6` to `api_version` provider argument +- allow use `v3.6` to `api_version` provider argument BUG FIXES: -* resource/**wallix-bastion_externalauth_kerberos**: add `keytab` argument required in latest version of WAB -* resource/**wallix-bastion_externalauth_radius**: `secret` argument can't be refresh in latest version of WAB -* resource/**wallix-bastion_externalauth_tacacs**: `secret` argument can't be refresh in latest version of WAB +- resource/**wallix-bastion_externalauth_kerberos**: add `keytab` argument required in latest version of WAB +- resource/**wallix-bastion_externalauth_radius**: `secret` argument can't be refresh in latest version of WAB +- resource/**wallix-bastion_externalauth_tacacs**: `secret` argument can't be refresh in latest version of WAB ## 0.5.0 (December 9, 2021) NOTES: -* upgrade golang version to release, so now requires macOS 10.13 High Sierra or later; Older macOS versions are no longer supported. +- upgrade golang version to release, so now requires macOS 10.13 High Sierra or later; Older macOS versions are no longer supported. ## 0.4.2 (December 9, 2021) BUG FIXES: -* resource/**wallix-bastion_connection_policy**: to avoid unnecessary update of resource, `authentication_methods` is now unordered -* resource/**wallix-bastion_application**: avoid large update plan output with unmodified `path` blocks in block set -* resource/**wallix-bastion_targetgroup**: avoid large update plan output with unmodified blocks in block sets +- resource/**wallix-bastion_connection_policy**: to avoid unnecessary update of resource, `authentication_methods` is now unordered +- resource/**wallix-bastion_application**: avoid large update plan output with unmodified `path` blocks in block set +- resource/**wallix-bastion_targetgroup**: avoid large update plan output with unmodified blocks in block sets ## 0.4.1 (October 18, 2021) ENHANCEMENTS: -* [docs] reformat arguments/attributes, add example usage & minor fix +- [docs] reformat arguments/attributes, add example usage & minor fix BUG FIXES: -* fix the potential double slash in url when calling Wallix API -* fix missing sensitive options for few arguments -* resource/**wallix-bastion_application_localdomain**, **wallix-bastion_device_localdomain**, **wallix-bastion_domain**: fix arguments requirement -* resource/**wallix-bastion_application**: fix panic with `global_domains` -* resource/**wallix-bastion_profile**: fix `default_target_group` is required in `target_groups_limitation` block -* resource/**wallix-bastion_domain**: fix `passphrase` can't refresh -* resource/**wallix-bastion_device_localdomain**: fix `passphrase` can't refresh +- fix the potential double slash in url when calling Wallix API +- fix missing sensitive options for few arguments +- resource/**wallix-bastion_application_localdomain**, **wallix-bastion_device_localdomain**, **wallix-bastion_domain**: fix arguments requirement +- resource/**wallix-bastion_application**: fix panic with `global_domains` +- resource/**wallix-bastion_profile**: fix `default_target_group` is required in `target_groups_limitation` block +- resource/**wallix-bastion_domain**: fix `passphrase` can't refresh +- resource/**wallix-bastion_device_localdomain**: fix `passphrase` can't refresh ## 0.4.0 (April 9, 2021) FEATURES: -* add `wallix-bastion_domain` data source +- add `wallix-bastion_domain` data source ## 0.3.3 (April 6, 2021) BUG FIXES: -* fix `global_domains` argument can be an attribute in `wallix-bastion_device_service` resource +- fix `global_domains` argument can be an attribute in `wallix-bastion_device_service` resource ## 0.3.2 (April 1, 2021) BUG FIXES: -* fix `device`/`service` or `application` needed with `domain_type`="global" on `session_accounts` in `wallix-bastion_targetgroup` resource -* fix `resources` argument can be an attribute in `wallix-bastion_domain_account` resource +- fix `device`/`service` or `application` needed with `domain_type`="global" on `session_accounts` in `wallix-bastion_targetgroup` resource +- fix `resources` argument can be an attribute in `wallix-bastion_domain_account` resource ## 0.3.1 (March 30, 2021) BUG FIXES: -* fix import user resource +- fix import user resource ## 0.3.0 (March 19, 2021) FEATURES: -* add `wallix-bastion_application` resource -* add `wallix-bastion_application_localdomain` resource -* add `wallix-bastion_application_localdomain_account` resource -* add `wallix-bastion_checkout_policy` resource -* add `wallix-bastion_cluster` resource -* add `wallix-bastion_connection_policy` resource -* add `wallix-bastion_externalauth_kerberos` resource -* add `wallix-bastion_externalauth_radius` resource -* add `wallix-bastion_externalauth_tacacs` resource -* add `wallix-bastion_profile` resource -* add `wallix-bastion_timeframe` resource +- add `wallix-bastion_application` resource +- add `wallix-bastion_application_localdomain` resource +- add `wallix-bastion_application_localdomain_account` resource +- add `wallix-bastion_checkout_policy` resource +- add `wallix-bastion_cluster` resource +- add `wallix-bastion_connection_policy` resource +- add `wallix-bastion_externalauth_kerberos` resource +- add `wallix-bastion_externalauth_radius` resource +- add `wallix-bastion_externalauth_tacacs` resource +- add `wallix-bastion_profile` resource +- add `wallix-bastion_timeframe` resource ## 0.2.0 (March 5, 2021) FEATURES: -* add `wallix-bastion_authorization` resource -* add `wallix-bastion_device`resource -* add `wallix-bastion_device_localdomain` resource -* add `wallix-bastion_device_localdomain_account` resource -* add `wallix-bastion_device_localdomain_account_credential` resource -* add `wallix-bastion_device_service` resource -* add `wallix-bastion_domain` resource -* add `wallix-bastion_domain_account` resource -* add `wallix-bastion_domain_account_credential` resource -* add `wallix-bastion_ldapdomain` resource -* add `wallix-bastion_ldapmapping` resource -* add `wallix-bastion_targetgroup` resource +- add `wallix-bastion_authorization` resource +- add `wallix-bastion_device`resource +- add `wallix-bastion_device_localdomain` resource +- add `wallix-bastion_device_localdomain_account` resource +- add `wallix-bastion_device_localdomain_account_credential` resource +- add `wallix-bastion_device_service` resource +- add `wallix-bastion_domain` resource +- add `wallix-bastion_domain_account` resource +- add `wallix-bastion_domain_account_credential` resource +- add `wallix-bastion_ldapdomain` resource +- add `wallix-bastion_ldapmapping` resource +- add `wallix-bastion_targetgroup` resource ENHANCEMENTS: -* remove Forcenew on `authentication_name` in `wallix-bastion_externalauth_ldap` resource, it's not necessary +- remove Forcenew on `authentication_name` in `wallix-bastion_externalauth_ldap` resource, it's not necessary BUG FIXES: -* typo in errors displayed -* remove log to debug in http request (possible secret could appear) -* `timeframes` and `restrictions` aren't ordered in `wallix-bastion_usegroup` resource -* do not reactivate `force_change_pwd` after creation and the password has changed in `wallix-bastion_user` resource +- typo in errors displayed +- remove log to debug in http request (possible secret could appear) +- `timeframes` and `restrictions` aren't ordered in `wallix-bastion_usegroup` resource +- do not reactivate `force_change_pwd` after creation and the password has changed in `wallix-bastion_user` resource ## 0.1.0 (February 9, 2021) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4fae7a5..364c0a4 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,18 +1,13 @@ # Contributing -When contributing to this repository, please first discuss the change you wish to make via issue, -email, or any other method with the owners of this repository before making a change. +When contributing to this repository, please first discuss the change you wish to make via issue,email,or any other method with the owners of this repository before making a change. Please note we have a code of conduct, please follow it in all your interactions with the project. ## Pull Request Process -1. Ensure any install or build dependencies are removed before the end of the layer when doing a - build. +1. Ensure any install or build dependencies are removed before the end of the layer when doing a build. 2. Update the README.md with details of changes impacting the usage of the provider. -3. Increase the version numbers in any examples files and the README.md to the new version that this - Pull Request would represent. +3. Increase the version numbers in any examples files and the README.md to the new version that this Pull Request would represent. 4. Any new resource or data-source endpoint need to be documented in /docs -5. You may merge the Pull Request in once you have the sign-off of two other developers, or if you - do not have permission to do that, you may request the second reviewer to merge it for you. - +5. You may merge the Pull Request in once you have the sign-off of two other developers, or if you do not have permission to do that, you may request the second reviewer to merge it for you. diff --git a/README.md b/README.md index b6ff7f9..a4b65ea 100644 --- a/README.md +++ b/README.md @@ -11,4 +11,5 @@ ### Special Thanks We would like to Greatly thanks: -* [Claranet](https://www.claranet.fr/) for their great work on this provider! \ No newline at end of file + +- [Claranet](https://www.claranet.fr) for their great work on this provider! diff --git a/SECURITY.md b/SECURITY.md index 27c040e..681204f 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -7,7 +7,6 @@ | > 0.12.0 | :white_check_mark: | | < 0.12.0 | :x: | - ## Reporting a Vulnerability Please report any security vulnerability to security-support@wallix.com diff --git a/bastion/provider_test.go b/bastion/provider_test.go index 9e0892b..2e5cfe2 100644 --- a/bastion/provider_test.go +++ b/bastion/provider_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - "github.com/claranet/terraform-provider-wallix-bastion/bastion" + "github.com/wallix/terraform-provider-wallix-bastion/bastion" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" ) diff --git a/bastion/resource_authdomain_ad_test.go b/bastion/resource_authdomain_ad_test.go index d3d35f0..78e3345 100644 --- a/bastion/resource_authdomain_ad_test.go +++ b/bastion/resource_authdomain_ad_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/claranet/terraform-provider-wallix-bastion/bastion" + "github.com/wallix/terraform-provider-wallix-bastion/bastion" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" ) diff --git a/bastion/resource_authdomain_ldap_test.go b/bastion/resource_authdomain_ldap_test.go index 2206ffa..57d04a2 100644 --- a/bastion/resource_authdomain_ldap_test.go +++ b/bastion/resource_authdomain_ldap_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/claranet/terraform-provider-wallix-bastion/bastion" + "github.com/wallix/terraform-provider-wallix-bastion/bastion" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" ) diff --git a/bastion/resource_authdomain_mapping_test.go b/bastion/resource_authdomain_mapping_test.go index 905c187..3fee086 100644 --- a/bastion/resource_authdomain_mapping_test.go +++ b/bastion/resource_authdomain_mapping_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - "github.com/claranet/terraform-provider-wallix-bastion/bastion" + "github.com/wallix/terraform-provider-wallix-bastion/bastion" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" ) diff --git a/bastion/resource_externalauth_saml_test.go b/bastion/resource_externalauth_saml_test.go index f5fb56d..581a6c2 100644 --- a/bastion/resource_externalauth_saml_test.go +++ b/bastion/resource_externalauth_saml_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - "github.com/claranet/terraform-provider-wallix-bastion/bastion" + "github.com/wallix/terraform-provider-wallix-bastion/bastion" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" ) diff --git a/bastion/resource_ldapdomain_test.go b/bastion/resource_ldapdomain_test.go index 3eda6cd..89828c4 100644 --- a/bastion/resource_ldapdomain_test.go +++ b/bastion/resource_ldapdomain_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/claranet/terraform-provider-wallix-bastion/bastion" + "github.com/wallix/terraform-provider-wallix-bastion/bastion" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" ) diff --git a/bastion/resource_ldapmapping_test.go b/bastion/resource_ldapmapping_test.go index 21b2402..c264615 100644 --- a/bastion/resource_ldapmapping_test.go +++ b/bastion/resource_ldapmapping_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/claranet/terraform-provider-wallix-bastion/bastion" + "github.com/wallix/terraform-provider-wallix-bastion/bastion" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" ) diff --git a/bastion/resource_profile_test.go b/bastion/resource_profile_test.go index 8780d77..e12085b 100644 --- a/bastion/resource_profile_test.go +++ b/bastion/resource_profile_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/claranet/terraform-provider-wallix-bastion/bastion" + "github.com/wallix/terraform-provider-wallix-bastion/bastion" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" ) diff --git a/go.mod b/go.mod index fc92366..8f8ee2b 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/claranet/terraform-provider-wallix-bastion +module github.com/wallix/terraform-provider-wallix-bastion go 1.20 diff --git a/main.go b/main.go index 0921a3e..62c42ba 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/claranet/terraform-provider-wallix-bastion/bastion" + "github.com/wallix/terraform-provider-wallix-bastion/bastion" "github.com/hashicorp/terraform-plugin-sdk/v2/plugin" )