Skip to content

[TASK] SubaccountApiCredential throw an error when secret contains only three keys #444

@Lasserich

Description

@Lasserich

For a SubaccountApiCredential to work, it has to create a secret containing four keys.

The key client_secret is only being returned during an initial CREATE against the BTP CLI. Subsequent GET requests fail to retrieve this key.

This is an issue when you have an orphaned/already existing ApiCredential on BTP side, causing the SubaccountApiCredential to look healthy but actually it is not, because the client_secret could not be returned.

Therefore when creating a secret using the SubaccountApiCredential its controller should check, whether the secret to be created contains four keys and if not, raise an error message like
"can not read client_secret from source, please delete external resource and re-create Crossplane resource".

ref

Metadata

Metadata

Assignees

No one assigned

    Labels

    BTPBTP Provider

    Type

    Projects

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions