Skip to content

Issue: Base secret fields data type are not correct #29

@anujydv

Description

@anujydv

I utilized the SDK to perform the CRUD operations, but the BaseSecret response consistently returns an error, even though the logs indicate that the requests were successful.

Upon examining the API response for https://<host>/api/v3/secrets/raw/<secret-name>, it appears that the createdAt and updatedAt fields are missing, which is causing issues with the SDK's functionality.

API Response:

{
    "secret": {
        "id": "5fa666d5-25f0-4730-95bb-0ec9d04e6faa",
        "_id": "5fa666d5-25f0-4730-95bb-0ec9d04e6faa",
        "workspace": "800f9a45-2ac4-4b5c-8ea0-ca368127fe65",
        "environment": "staging",
        "version": 1,
        "type": "shared",
        "secretKey": "secret_name",
        "secretValue": "my-secret-value",
        "secretComment": "Client user credentials"
    }
}

Error due to existing BaseSecret model:

TypeError: __init__() missing 2 required positional arguments: 'createdAt' and 'updatedAt'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions