Sandboxes now support new TTL with respect to updatedAt.
The feature works as expected, but there is currently no way to get the correct sandbox TTL/expiration time or even calculate it, because the API and CLI only expose the createdAt attribute of a sandbox, but not the updatedAt timestamp attribute.
The Dashboard UI, API, and CLI signadot sandbox list/signadot sandbox get show erroneous TTL information not respecting the offsetFrom if it's set to updatedAt.
To Reproduce
Environment:
signadot-operator v0.13.3
signadot-cli v0.5.0
OS: MacOS (could be any)
Create a sandbox with TTL duration: <any> and offsetFrom: updatedAt;
Update the sandbox (e.g., adding a new fork, changing the image);
Use signadot sandbox get SANDBOX_NAME and check the TTL info is being calculated from createdAt;
Expected behavior
API and CLI expose the updatedAt attribute of a sandbox, the same way it exposes createdAt.
CLI commands also show updatedAt besides just createdAt (e.g., sandbox list)
sandbox get shows the correct TTL if sandbox offsetFrom is updatedAt
Observed behavior
This sandbox was created with a 1d TTL and should be marked for deletion in 10 hours, but it shows ~1hr
Describe the bug In a recent release:
The feature works as expected, but there is currently no way to get the correct sandbox TTL/expiration time or even calculate it, because the API and CLI only expose the
createdAt
attribute of a sandbox, but not theupdatedAt
timestamp attribute.The Dashboard UI, API, and CLI
signadot sandbox list
/signadot sandbox get
show erroneousTTL
information not respecting theoffsetFrom
if it's set toupdatedAt
.To Reproduce Environment:
duration: <any>
andoffsetFrom: updatedAt
;signadot sandbox get SANDBOX_NAME
and check the TTL info is being calculated fromcreatedAt
;Expected behavior
updatedAt
attribute of a sandbox, the same way it exposescreatedAt
.updatedAt
besides justcreatedAt
(e.g.,sandbox list
)sandbox get
shows the correct TTL if sandboxoffsetFrom
isupdatedAt
Observed behavior
This sandbox was created with a
1d
TTL and should be marked for deletion in 10 hours, but it shows ~1hrCLI
Dashboard
Additional context Code path for CLI: https://github.com/signadot/cli/blob/1f243c1a7aacf8cf57f4f70b0fba60888819e14f/internal/command/sandbox/printers.go#L83C43-L116