Skip to content

fix: preserve object storage secret keys in table output - #944

Open
pcbeingused333 wants to merge 2 commits into
linode:devfrom
pcbeingused333:fix/object-storage-key-truncation
Open

pcbeingused333 wants to merge 2 commits into
linode:devfrom
pcbeingused333:fix/object-storage-key-truncation

Conversation

@pcbeingused333

Copy link
Copy Markdown

Fixes #825

📝 Description

What does this PR do and why is this change necessary?

The default table renderer uses ellipsis when a value exceeds the terminal width. For object-storage keys-create, this can discard part of the secret key that is only returned at creation time.

Add action-specific table and ASCII table output overrides that enable the existing nontruncating renderer. Long keys fold across lines, preserving every character. Other actions retain their existing output behavior.

✔️ How to Test

What are the steps to reproduce the issue or verify the changes?

Run linode-cli object-storage keys-create --label <label> in a narrow terminal and check that secret_key is shown in full, folded across lines.

How do I run the relevant unit/integration tests?

LINODE_CLI_TEST_MODE=1 XDG_CONFIG_HOME=$(mktemp -d) pytest tests/unit/test_overrides.py tests/unit/test_output.py

The tests render through the response dispatch at a terminal width of 28 columns, checking complete key creation output and unchanged truncation for key listing. No live API call was made.

This change was prepared with AI assistance (Codex).

@pcbeingused333
pcbeingused333 requested review from a team as code owners November 9, 2026 01:41
@pcbeingused333
pcbeingused333 requested review from mawilk90 and zliang-akamai and removed request for a team November 9, 2026 01:41

This branch has not been deployed

No deployments
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.

[Bug]: object-storage keys-create not displaying keys on small terminals

1 participant