Skip to content

feat(secrets): expose created and updated timestamps in secrets list (fixes #5281) - #5306

Open
siddiqueirshad wants to merge 1 commit into
superfly:masterfrom
siddiqueirshad:feat/issue-5281-secrets-created-updated-dates
Open

siddiqueirshad wants to merge 1 commit into
superfly:masterfrom
siddiqueirshad:feat/issue-5281-secrets-created-updated-dates

Conversation

@siddiqueirshad

Copy link
Copy Markdown

Summary

Fixes #5281

When listing secrets with fly secrets list --json, created_at and updated_at dates returned by the backend API (fly.AppSecret) were previously dropped because SecretWithStatus only copied Name and Digest.

This PR:

  • Adds CreatedAt and UpdatedAt (json:"created_at,omitempty", json:"updated_at,omitempty") to SecretWithStatus and secretBasic.
  • Updates buildSecretRows and buildRowsWithoutStatus to propagate CreatedAt and UpdatedAt from fly.AppSecret.
  • Adds unit tests ensuring buildRowsWithoutStatus preserves timestamps and SecretWithStatus serializes created_at and updated_at to JSON as expected.

Test Plan

  • Ran go test -v ./internal/command/secrets - all existing and new tests pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(secrets): Expose created/updated dates

1 participant