-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
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
Labels
No labels