Skip to content

Expand the enum of status in check_external_connection in Account API #9665

@shirady

Description

@shirady

Environment info

  • NooBaa Version: 5.23
  • Platform: Doesn't matter

Actual behavior

  1. Currently, the API of check_external_connection does not contain an enum for the case where the user / service account has permission issue with the list buckets, and it uses this list:
    properties: {
    status: {
    type: 'string',
    enum: [
    'SUCCESS',
    'TIMEOUT',
    'INVALID_ENDPOINT',
    'INVALID_CREDENTIALS',
    'NOT_SUPPORTED',
    'TIME_SKEW',
    'UNKNOWN_FAILURE'
    ]
    },

    Note: In GCP and GCP WIF (STS) we return the INVALID_CREDENTIALS status for this case.

Expected behavior

  1. Expand this list with the enum related to the permissions.

Steps to reproduce

  1. Create the details for the client to test without permission for list buckets
  2. Test the API and check the status

More information - Screenshots / Logs / Other output

In this link, you can see the exact steps that were done for GCP WIF (STS) to test the permission and the API of check_external_connection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions