diff --git a/CHANGELOG.md b/CHANGELOG.md index 99bf07b..2b7ccb3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,56 +1,5 @@ -### Version 3.5.0 - -## Features - -#### Resgroup -- Add data source rg_affinity_group_computes -- Add data source rg_affinity_groups_get -- Add data source rg_affinity_groups_list -- Add data source rg_audits -- Add data source rg_list -- Add data source rg_list_computes -- Add data source rg_list_deleted -- Add data source rg_list_lb -- Add data source rg_list_pfw -- Add data source rg_list_vins -- Add data source rg_usage -- Update data source rg -- Update block 'qouta' to change resource limits -- Add block 'access' to access/revoke rights for rg -- Add block 'def_net' to set default network in rg -- Add field 'enable' to disable/enable rg -- Add processing of input parameters (account_id, gid, ext_net_id) when creating and updating a resource - -#### Kvmvm -- Update data source decort_kvmvm -- Add data source decort_kvmvm_list -- Add data source decort_kvmvm_audits -- Add data source decort_kvmvm_get_audits -- Add data source decort_kvmvm_get_console_url -- Add data source decort_kvmvm_get_log -- Add data source decort_kvmvm_pfw_list -- Add data source decort_kvmvm_user_list -- Update block 'disks' in the resource decort_kvmvm -- Add block 'tags' to add/delete tags -- Add block 'port_forwarding' to add/delete pfws -- Add block 'user_access' to access/revoke user rights for comptue -- Add block 'snapshot' to create/delete snapshots -- Add block 'rollback' to rollback in snapshot -- Add block 'cd' to insert/Eject cdROM disks -- Add field 'pin_to_stack' to pin compute to stack -- Add field 'pause' to pause/resume compute -- Add field 'reset' to reset compute -- Add the ability to redeploy the compute when changing the image_id -- Add field 'data_disks' to redeploy compute -- Add field 'auto_start' to redeploy compute -- Add field 'force_stop' to redeploy compute -- Add warnings in Create resource decort_kvmvm -- Add processing of input parameters (rg_id, image_id and all vins_id's in blocks 'network') when creating and updating a resource +### Version 3.5.1 ## Bug Fix -- When deleting the 'quote' block, the limits are not set to the default value -- Block 'disks' in resource decort_kvmvm breaks the state -- Import decort_resgroup resource breaks the state -- Import decort_kvmvm resource breaks the state -- If the boot_disk_size is not specified at creation, further changing it leads to an error +- Authentication via jwt token does not work diff --git a/internal/controller/controller.go b/internal/controller/controller.go index 19c9806..84f5344 100644 --- a/internal/controller/controller.go +++ b/internal/controller/controller.go @@ -243,7 +243,7 @@ func (config *ControllerCfg) validateJWT(jwt string) (bool, error) { Validate JWT against DECORT controller. JWT can be supplied as argument to this method. If empty string supplied as argument, JWT will be taken from config attribute. DECORT controller URL will always be taken from the config attribute assigned at instantiation. - Validation is accomplished by attempting API call that lists accounts for the invoking user. + Validation is accomplished by attempting API call that lists account for the invoking user. */ if jwt == "" { if config.jwt == "" { @@ -256,7 +256,7 @@ func (config *ControllerCfg) validateJWT(jwt string) (bool, error) { return false, fmt.Errorf("validateJWT method called, but no OAuth2 URL provided.") } - req, err := http.NewRequest("POST", config.controller_url+"/restmachine/cloudapi/accounts/list", nil) + req, err := http.NewRequest("POST", config.controller_url+"/restmachine/cloudapi/account/list", nil) if err != nil { return false, err } @@ -297,7 +297,7 @@ func (config *ControllerCfg) validateLegacyUser() (bool, error) { params.Add("password", config.legacy_password) params_str := params.Encode() - req, err := http.NewRequest("POST", config.controller_url+"/restmachine/cloudapi/users/authenticate", strings.NewReader(params_str)) + req, err := http.NewRequest("POST", config.controller_url+"/restmachine/cloudapi/user/authenticate", strings.NewReader(params_str)) if err != nil { return false, err }