Skip to content

Number of API Keys increasing over time #805

@vburckhardt

Description

@vburckhardt

reset api key creates a number api key, but does not delete the old one. This means that there is a risk that the account is going to bump into the limits. 20 API Keys per identity by default https://cloud.ibm.com/docs/account?topic=account-cloudaccess#iam_limits

note that the previous script that was checking the presence of an existing api key had issues:

  1. Only looking at the first 100 api key
  2. Only looking at user api key, so a new api key is created very time that the resource is created when triggering the logic from an api key

IAM_URL="https://private.$IBMCLOUD_IAM_API_ENDPOINT/v1/apikeys?account_id=$ACCOUNT_ID&scope=account&pagesize=100&type=user&sort=name"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions