Skip to content

Commit 2fab186

Browse files
committed
fix(azure-connection): Resources using client secret must be updated following export
With this change, the user will be notified that the client secret must be updated before the resource can be applied. When exported, the resource will be placed in the `.requires_attention` directory.
1 parent 00768a1 commit 2fab186

File tree

1 file changed

+9
-0
lines changed
  • dynatrace/api/builtin/hyperscalerauthentication/connections/azure/settings

1 file changed

+9
-0
lines changed

dynatrace/api/builtin/hyperscalerauthentication/connections/azure/settings/settings.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,12 @@ func (me *Settings) UnmarshalHCL(decoder hcl.Decoder) error {
106106
"type": &me.Type,
107107
})
108108
}
109+
110+
func (me *Settings) FillDemoValues() []string {
111+
// connections using client secret authentication must be modified before use
112+
if me.Type == Types.Clientsecret && me.ClientSecret != nil {
113+
me.ClientSecret.ClientSecret = "#######"
114+
return []string{"Please fill in the client secret"}
115+
}
116+
return []string{}
117+
}

0 commit comments

Comments
 (0)