Open Krock21 opened 2 months ago
Hi! Yes, it's not a good idea to pass secrets via command line. You can use YT_SPEC environment to specify secure vault. Example: https://github.com/ytsaurus/ytsaurus/blob/main/yt/python/yt/wrapper/tests/test_misc.py#L207
I think we should still show full command, but with masked values in secure_vault
Running a command like
yt map --spec '{secure_vault={my_secret=secret}}' --src '//tmp/a' --dst '//tmp/b' --input-format yson --output-format yson cat
exposes secure_vault in specification.command field of the operation in UIThere are multiple ways to solve it, either on server or client(CLI) side