Modifications require proper indentation

Advanced configuration modifications require proper indentation as otherwise the called functions might not work properly

Issue

When making any changes to the Advanced Settings in Immuta it is imperative that desired settings are indented properly.

Cause

If settings are not indented properly some functions will not work.

Resolution

Let's have a look at the following example, where the Unity Token Sync job was not running due to a customer certificate. In order for this to work we have to switch the variable verifyCert off, this was the starting configuration:

"advanced": {
  "plugins": {
    "awsKms": {
      "isKms": true,
      "keyId": "some-super-key-here",
      "plugin": "awsKms",
      "region": "eu-central-1"
    },
    "databricks": {
      "unityCatalog": {
        "verifyCert": false
      }
    }
  }
}

The issue here is the part that starts with "databricks". If we check carefully we see that the databricks part is indented under the plugins entry above. So in this case for custom certificates used in Databricks the verifyCert variable will be ignored. If you use custom certificates this could mean that the Unity Token Sync job will fail, and it will show that the verifyCert setting is set to true.

In order to fix this we need to amend the above code to this

"advanced": {
  "plugins": {
    "awsKms": {
      "isKms": true,
      "keyId": "some-super-key-here",
      "plugin": "awsKms",
      "region": "eu-central-1"
    },
"databricks": {
  "unityCatalog": {
    "verifyCert": false
      }
    }
  }
}

Right now databricks is correctly indented under advanced and the setting is now valid and the Unity Token Sync job would be running fine.

Last updated