Skip to content

ServiceBinding secret briefly contains attribute.credentials instead of flattened keys #633

@Noel-Ch

Description

@Noel-Ch

After a ServiceBinding is created, the connection secret temporarily contains a raw attribute.credentials key with the full JSON blob, instead of the expected flattened individual keys (clientid, clientsecret, sm_url, etc.).

This happens because flattenSecretData is called in the Observe path but not in the Create path. Since the controller uses synchronous TF apply (useAsync=false), Create returns connection details immediately — unflattened. The secret is corrected on the next reconcile when Observe runs, but any consumer reading the secret in between sees the wrong format.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/lowFeature needs improvement, not urgent

    Type

    Projects

    Status

    Refinement

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions