ytsaurus / ytsaurus

YTsaurus is a scalable and fault-tolerant open-source big data platform.
https://ytsaurus.tech
Apache License 2.0
1.88k stars 134 forks source link

Secure_vault is exposed in command of an operation #780

Open Krock21 opened 2 months ago

Krock21 commented 2 months ago

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 UI

Screenshot 2024-08-14 at 14 37 21

There are multiple ways to solve it, either on server or client(CLI) side

savnadya commented 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

denvr commented 2 months ago

I think we should still show full command, but with masked values in secure_vault