idoavrah / terraform-tui

Terraform textual UI
https://pypi.org/project/tftui/
Apache License 2.0
973 stars 30 forks source link

[Feature Request] Ability to display sensitives values #71

Closed benriou closed 1 month ago

benriou commented 2 months ago

Would it be possible to allow displaying sensitive values for a given object ?

This could be allowed via a keystroke within the interface.

Thanks !

idoavrah commented 2 months ago

The terraform state show command doesn't expose sensitive values. However, it seems that terraform show -json does expose them. Although there's no single-resource version for this command, meaning it will take some time to process, I think that would be acceptable.

I'll test it out and implement it if possible. Stay tuned :)

idoavrah commented 2 months ago

Done, I just released v0.13.2. Hit x in the resource screen to expose the sensitive values. Enjoy 😄

benriou commented 1 month ago

Hello :) I just tested, it does not work :) Pressing X on the resource screen does not change value displayed ( "sensitive value")

CleanShot 2024-05-27 at 14 18 05@2x

idoavrah commented 1 month ago

It works on my machine 😉

I just noticed that it doesn't work with an uppercase 'X', could it be that your CAPS LOCK is on?

idoavrah commented 1 month ago

@benriou Found the problem. It didn't work on root resources, only inside modules.

Fixed in v0.13.3

benriou commented 1 month ago

It works perfectly. Thanks.