Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Add support for numeric sensitive fields #287

Open
Lax77 opened this issue Aug 1, 2022 · 0 comments
Open

Add support for numeric sensitive fields #287

Lax77 opened this issue Aug 1, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@Lax77
Copy link

Lax77 commented Aug 1, 2022

What problem are you facing?

Currently sensitive fields support is limited String, array of string or map of string.

When upgrading one of the provider that got built with terrajet, eg. provider-jet-datadog to v3.13.1 of terraform provider datadog ran into below issue.

panic: cannot generate crd for resource datadog_synthetics_test: cannot build types for Test: cannot build the Types: cannot infer type from schema of field options_list: cannot infer type from resource schema of element type of Test.OptionsList: cannot infer type from schema of field rum_settings: cannot infer type from resource schema of element type of Test.OptionsList.RumSettings: got type "*float64" for field "ClientTokenID", only types "string", "*string", []string, []*string, "map[string]string" and "map[string]*string" supported as sensitive

Above issue occurred as one of the resource introduced sensitive field of data type number and terrajet do not support numeric sensitive fields.

How could Terrajet help solve your problem?

Enhance NewSensitiveField to support numeric data type to be precise float64.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant