Skip to content

[UX2.0] configuration_group not handling encrypted variables properly #428

@tzarski0

Description

@tzarski0

When you configure any configuration group with encrypted filed as variable (e.g. aaa user password_variable). The first time you push the TF apply, it works. Right after when you do TF apply again, you see a diff although you didn't change anything:

  ~ resource "sdwan_configuration_group" "configuration_group" {
      ~ devices               = [
          ~ {
                id        = "C8K-3D1A8960-6E76-532C-DA93-50626FC5797E"
              ~ variables = [
                  - {
                      - name = "failsafe_password" -> null
                    },
                  + {
                      + name  = "failsafe_password"
                      + value = "cisco123"
                    },

It seems like when we GET variables from Manager, the Manager returns just name without value for encrypted field and this causes change in configuration. We should find a way to handle passwords without always showing diff if password didn't change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions