Skip to content

Sensitive data injection fails for TF field paths containing wildcards #589

@marinamihaela711

Description

@marinamihaela711

What happened?

When a managed resource uses a sensitive secret reference inside a list item (e.g. spec.forProvider.options[0].configurationSecretRef), Upjet may attempt to inject secret data into Terraform state using a TF path that contains a wildcard (e.g. options[*].configuration.<key>).

This fails with an error similar to:

cannot set string as terraform attribute for fieldpath "options[*].configuration.<key>": options is not an object

How can we reproduce it?

  1. Run an Upjet-based provider (e.g. provider-auth0).

  2. Create a Connection that sets spec.forProvider.options[0].configurationSecretRef (or any secret ref under options).

  3. Reconcile the resource.

  4. Observe reconcile failing when Upjet tries to inject secret data into Terraform using a wildcard TF path like options[*].configuration., resulting in the error mentioned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions