apify-cli icon indicating copy to clipboard operation
apify-cli copied to clipboard

`apify actor get-input` doesn't decrypt input

Open oklinov opened this issue 10 months ago • 2 comments

Run

apify actor get-input should output:

{"secret":"my secret","url":"https://www.apify.com/"}

Got:

{"secret":"ENCRYPTED_VALUE:SpuCoqPHFDNAw+m8lRcjxgDzmR/1wxdDDtRWrLKkyNqXmbivbjH62zl2Qed3mcVb6aUAg0kw9VnepclnTh+2Hc1b3U/X4ew8w+LxRfR1gz1MAH4cG1d9WU2KA4VtbEf3MbgAP6+Niurp3eJveqFsgrvSBgRfDIuzTaT2FzqnKNbwFnST4JkmdgwVvh5cc5H02ytqvLh+QBwIWDMNt7WREztPSjkreiYum13OOHTA9OalVhZ7ENcl0FQ2IYSR6kbTgwBvqiXLbi+v7Hb5j7vo0APFwDud0t0OoHg0au4BYh7aRnFBixMMCw1gN9izkGK7xVR7jsCKz1rNBlxJn7dupg==:TzXWaP7j57wJytR2hRRZbjWKdv2gkZEYYA==","url":"https://www.apify.com/"}

oklinov avatar Feb 25 '25 19:02 oklinov

@vladfrangu please verify how this works on SDK level, I think the secrets are automatically decoded there, so the behaviour with CLI should be most likely the same. But its something to confirm first (with someone from the platform team I guess).

B4nan avatar Mar 03 '25 10:03 B4nan

Sounds good, I'm a bit worried about how we'd test this locally 😅 but I don't think it'd matter much, right? I think we handle it in SDK already so I can just inspire from there

vladfrangu avatar Mar 03 '25 10:03 vladfrangu