diff --git a/pkg/identity/ciprovider/principal.go b/pkg/identity/ciprovider/principal.go index 5ccebc520..5bf1d5cda 100644 --- a/pkg/identity/ciprovider/principal.go +++ b/pkg/identity/ciprovider/principal.go @@ -55,7 +55,9 @@ func applyTemplateOrReplace(path string, data map[string]string, defaultData map if strings.Contains(path, "{{") { var doc bytes.Buffer - t := template.New("") + // This option forces to having the claim that is required + // for the template + t := template.New("").Option("missingkey=error") p, err := t.Parse(path) if err != nil { panic(err)