Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ BUG ] - Problem while removing subprotocols from service #25

Open
raphaelbkt opened this issue Jun 12, 2024 · 1 comment
Open

[ BUG ] - Problem while removing subprotocols from service #25

raphaelbkt opened this issue Jun 12, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@raphaelbkt
Copy link

raphaelbkt commented Jun 12, 2024

Hi,

To sum up: if I generate Terraform code for a service with the subprotocols empty (I tried for RDP), for a service that had previously a non empty subprotocol list, I have this strange behaviour:

  • the terraform plan lists the changes to be made,
  • the Terraform apply applies the changes
  • BUT in the Bastion the services appear to still have earlier sub protocols available.
    If I relaunch Terraform it wants to apply the same changes indefinitely.

However if I only leave RDP_SMARTCARD in the list of subprotocols everything is ok: the changes are really applied to the bastion.

To Reproduce
Generate a service with a non empty RDP sub protocol list

resource "wallix-bastion_device_service" "avdp0-d3-ws-dsh-it-1562-h_rdp" {

    device_id         = wallix-bastion_device.avdp0-d3-ws-dsh-it-1562-h.device_name

    service_name      = wallix-bastion_connection_policy.rdp.connection_policy_name

    connection_policy = wallix-bastion_connection_policy.rdp.connection_policy_name

    port              = "3389"

    protocol          = "RDP"

    subprotocols      = [ "RDP_CLIPBOARD_UP","RDP_CLIPBOARD_DOWN","RDP_CLIPBOARD_FILE","RDP_DRIVE","RDP_SMARTCARD" ]

    global_domains    = [ wallix-bastion_domain.xxx.domain_name ]
}

Apply the Terraform code.
Check in the bastion interface that the service has the configured rights (ok).

Then modify the code of the service to empty subprotocol list:

resource "wallix-bastion_device_service" "avdp0-d3-ws-dsh-it-1562-h_rdp" {

    device_id         = wallix-bastion_device.avdp0-d3-ws-dsh-it-1562-h.device_name

    service_name      = wallix-bastion_connection_policy.rdp.connection_policy_name

    connection_policy = wallix-bastion_connection_policy.rdp.connection_policy_name

    port              = "3389"

    protocol          = "RDP"

    subprotocols      = [  ]

    global_domains    = [ wallix-bastion_domain.xxx.domain_name ]
}

Apply the Terraform: it seems to apply but the service in GUI still list old subprotocols:
RDP_CLIPBOARD_UP","RDP_CLIPBOARD_DOWN","RDP_CLIPBOARD_FILE","RDP_DRIVE","RDP_SMARTCARD

If you apply the Terraform again it wants to remake all changes in sub protocol.

Expected behavior
The service in the bastion should have all subprotocols cleared

Desktop (please complete the following information):
Wallix AdminBastion version 10.0.5
Wallix Terraform provider 0.13

Additional context
I have the setup to test if needed.
At least I am available to explain and maybe show the problem.

Thanks

@raphaelbkt raphaelbkt added the bug Something isn't working label Jun 12, 2024
@bsimonWallix bsimonWallix self-assigned this Jun 12, 2024
@bsimonWallix
Copy link
Collaborator

Hello @raphaelbkt
Thanks for the report.
I will investigate this issue.

Best regards,

@bsimonWallix bsimonWallix changed the title Problem while removing subprotocols from service [ BUG ] - Problem while removing subprotocols from service Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants