Releases: hashicorp/consul-terraform-sync
Releases · hashicorp/consul-terraform-sync
v0.7.1
v0.7.0
0.7.0 (September 8, 2022)
BREAKING CHANGES:
- Changed default value of
service_name
in service registration configuration fromConsul-Terraform-Sync
toconsul-terraform-sync
[GH-946]
FEATURES:
- (Enterprise Only) Support for high availability redundancy [GH-1015]
- Support for Terraform v1.2 [GH-917]
IMPROVEMENTS:
- Add
openssh
command to Docker image to support git over ssh for Terraform modules [GH-940] - Upgrade Go to version 1.18 [GH-951]
- Support for CTS running as a daemon without an initial configured task [GH-986]
- Enhanced logging for watcher events providing greater insight on changes to Consul [GH-895]
- (Enterprise Only) Add automatic retries for failed Terraform Cloud requests [GH-448]
BUG FIXES:
- Fix issue where endpoint response objects represent configuration in a working form (e.g. with defaults, transformations, etc.), rather than responding with the configuration exactly as configured [GH-1000]
- Fix issue where Terraform driver requests to the Terraform CLI leaked go-routines which could lead to "error from kill" entries in logs [GH-849]
v0.7.0-beta1
prepare for beta release
v0.6.0
0.6.0 (May 25, 2022)
KNOWN ISSUES:
- Terraform driver requests to the Terraform CLI leaks go-routines which can lead to "error from kill" entries in logs [GH-849]
FEATURES:
- Support for CLI autocompletion [GH-775]
- Support for retrieving CTS health through the API [GH-850]
- Support for retrieving information about all existing tasks through the API [GH-770]
- Support for automatically registering CTS with Consul as a service with a health check [GH-860]
- (Enterprise Only) Official support for HCP Consul
- (Enterprise Only) Support for creating workspaces configured with Terraform Cloud agents [GH-772]
- (Enterprise Only) Support for automatically retrieving a license from the configured Consul Enterprise or HCP Consul backend [GH-810]
IMPROVEMENTS:
- Update fallback version of Terraform to 1.1.8 [GH-802]
- Update API request logging from INFO to DEBUG to reduce noise in logs [GH-738]
- Support starting up CTS with new
start
command [GH-866] - (Enterprise Only) Use fallback version of Terraform if determining latest compatible version from Terraform Cloud fails.
- (Enterprise Only) Add
terraform_version
totask.terraform_cloud_workspace
, which was introduced as part of support for Terraform Cloud agents [GH-790]
BUG FIXES:
- (Enterprise Only) Fix issue where created TFC tasks not using specified Terraform version [GH-792]
- (Enterprise Only) Fix issue where fetching compatible Terraform version from TFC not using TLS configurations [GH-795]
- Fix issue where Task Status API response's
provider
field was returning provider name instead of provider id, which includes provider name and alias [GH-798] - Fix issue where the main function for running the CTS binary was only using a logger with default settings [GH-789]
- Fix issue where
syslog.enabled
was not automatically set to true when othersyslog
configs were configured [GH-815] - Fix issue where deleting task run events used a read-lock instead of write-lock [GH-787]
- Fix issue where restarting Consul while CTS was running could cause the first service change to be ignored [GH-884]
DEPRECATIONS:
- (Enterprise Only) Deprecate
terraform_version
task configuration in favor ofterraform_cloud_workspace.terraform_version
task configuration [GH-790] - (Enterprise Only) Deprecate
license_path
configuration in favor oflicense.path
configuration [GH-810] - Deprecate starting CTS as a daemon using no CLI command in favor of starting CTS as a daemon using the new
start
command [GH-866]
v0.6.0-beta1
0.6.0-beta1 (May 11, 2022)
KNOWN ISSUES:
- Terraform driver requests to the Terraform CLI leaks go-routines which can lead to "error from kill" entries in logs [GH-849]
FEATURES:
- Support for CLI autocompletion [GH-775]
- Support for retrieving CTS health through the API [GH-850]
- Support for retrieving information about all existing tasks through the API [GH-770]
- Support for automatically registering CTS with Consul as a service with a health check [GH-860]
- (Enterprise Only) Official support for HCP Consul
- (Enterprise Only) Support for creating workspaces configured with Terraform Cloud agents [GH-772]
- (Enterprise Only) Support for automatically retrieving a license from the configured Consul Enterprise or HCP Consul backend [GH-810]
IMPROVEMENTS:
- Update fallback version of Terraform to 1.1.8 [GH-802]
- Update API request logging from INFO to DEBUG to reduce noise in logs [GH-738]
- Support starting up CTS with new
start
command [GH-866] - (Enterprise Only) Use fallback version of Terraform if determining latest compatible version from Terraform Cloud fails.
- (Enterprise Only) Add
terraform_version
totask.terraform_cloud_workspace
, which was introduced as part of support for Terraform Cloud agents [GH-790]
BUG FIXES:
- (Enterprise Only) Fix issue where created TFC tasks not using specified Terraform version [GH-792]
- (Enterprise Only) Fix issue where fetching compatible Terraform version from TFC not using TLS configurations [GH-795]
- Fix issue where Task Status API response's
provider
field was returning provider name instead of provider id, which includes provider name and alias [GH-798] - Fix issue where the main function for running the CTS binary was only using a logger with default settings [GH-789]
- Fix issue where
syslog.enabled
was not automatically set to true when othersyslog
configs were configured [GH-815] - Fix issue where deleting task run events used a read-lock instead of write-lock [GH-787]
DEPRECATIONS:
- (Enterprise Only) Deprecate
terraform_version
task configuration in favor ofterraform_cloud_workspace.terraform_version
task configuration [GH-790] - (Enterprise Only) Deprecate
license_path
configuration in favor oflicense.path
configuration [GH-810] - Deprecate starting CTS as a daemon using no CLI command in favor of starting CTS as a daemon using the new
start
command [GH-866]
v0.5.2
0.5.2 (March 15, 2022)
BUG FIXES:
- Fix issue where triggering a task while task is running is ignored and can cause locked state [GH-732]
- Fix issue where re-creating a task using the task creation API/CLI after Consul restart can result in an error [GH-701]
- Fix issue where creating a task with the same name as a deleted task, where the deleted task includes a
condition "schedule"
, can leave CTS in a bad state [GH-715]
v0.5.1
v0.5.0
0.5.0 (February 23, 2022)
KNOWN ISSUES: See the linked GitHub issues for details on any workarounds
- Re-creating a task using the task creation API/CLI after Consul restart can result in an error. [GH-701]
- Creating a task with the same name as a deleted task, where the deleted task includes a
condition "schedule"
, can leave CTS in a bad state [GH-715] - Creating a task with multiple module inputs using JSON requires specific JSON format. [GH-714]
- (Enterprise Only) Regression with Terraform Cloud driver's
required_providers
configuration which leads the driver to potentially attempt to retrieve an incorrect provider source and version [GH-728]
BREAKING CHANGES:
- Stop monitoring and including non-passing service instances in
terraform.tfvars
by default. CTS should only monitor passing service instances unless configured otherwise. [GH-430] - Removed
driver.terraform.working_dir
configuration option that was deprecated in v0.3.0. Use top-levelworking_dir
to configure parent directory for all tasks ortask.working_dir
to configure per task. [GH-548] - Require that
condition "catalog-services"
block'sregexp
field be configured instead of relying on previous default behavior. [GH-574] - Change default value of
source_includes_var
field from false to true for all types ofcondition
blocks. [GH-578]
FEATURES:
- Support for deleting an existing task through the API and CLI. [GH-522]
- Support for creating a task through the API and CLI. [GH-522]
- Support for retrieving information about an existing task through the API. [GH-681]
- Support for
-auto-approve
option to skip interactive approval prompts in the CLI. [GH-576]
IMPROVEMENTS:
- Tasks will now trigger only after the
min
time of thebuffer_period
configuration has transpired. Previously tasks would trigger immediately, once, before honoring the minimum buffer period time. [GH-642] - Support configuring a task's
condition "services"
andsource_input "services"
blocks with query parameters:datacenter
,namespace
,filter
, andcts_user_defined_meta
. [GH-357] - Support new
names
field for configuring a task'scondition "services"
andsource_input "services"
blocks as an optional alternative toregexp
to list monitored services by name. [GH-561] - Support
source_includes_var
field for a task'scondition "services"
block. [GH-584] - Expand
source_input
block usage to dynamic tasks and support multiplesource_input
blocks per task. [GH-607] - Initialize disabled tasks, which allows for earlier validation of a task. [GH-625]
DEPRECATIONS:
- (Enterprise Only) Deprecate
workspace_prefix
for the Terraform Cloud driver that adds unexpected-
character added between the prefix and task name. Use the newworkspaces.prefix
option instead. [GH-442]- If the
workspace_prefix
option is in use by CTS v0.3.x or v0.4.x for the Terraform Cloud driver, visit GH-442 for upgrade guidelines.
- If the
- Deprecate
port
CLI option. Usehttp-addr
option instead. [GH-617] - Deprecate
services
field in task configuration. Usecondition "services"
orsource_input "services"
instead. [GH-669] - Deprecate
service
block in configuration. To replace usage, first upgrade the associated task configservices
field to acondition "services"
orsource_input "services"
. Then move theservice
block fields into the newcondition
orsource_input
block. [GH-670] - Deprecate
source
field in task configuration. Renamesource
tomodule
in configuration. [GH-566] - Deprecate
source_input
block in task configuration. Renamesource_input
tomodule_input
in configuration. [GH-567] - Deprecate
source_includes_var
field in task configuration'scondition
block. Renamesource_includes_var
touse_as_module_input
in configuration. [GH-568] - Deprecate non-status, config-related information from the Task Status API's response payload. Use the Get Task API instead to retrieve the deprecated information. [GH-569]
BUG FIXES:
- Fix CLI client enable task command timing out when buffer period is enabled [GH-516]
- Fix Services condition when configured with regex and Catalog Services condition to use cached indexes for Consul API blocking queries. [GH-529]
- (Enterprise Only) Fix task not triggering after re-enabled when running with the TFC driver.
v0.4.3
0.4.3 (January 14, 2022)
SECURITY:
- Upgrade Go to address CVE-2021-44716 and CVE-2021-44717
FEATURES:
- Support for Terraform v1.1 [GH-588]
BUG FIXES:
- Fix issue where enabling a task can display an EOF error in terminal even though task is enabled. [GH-516]
v0.3.1
0.3.1 (January 14, 2022)
SECURITY:
- Upgrade Go to address CVE-2021-44716 and CVE-2021-44717
FEATURES:
- Support for Terraform v1.1 [GH-588]