logoalt Hacker News

fsmvlast Tuesday at 10:42 PM4 repliesview on HN

One thing that makes me unsure about this proposal is the silent downgrading on unsupported platforms. People might think they're safe when they're not.

Go has the best support for cryptography of any language


Replies

alanfranztoday at 3:22 AM

I'd probably want some way to understand whether secret.Do is launched within a secret-supporting environment so that I'm able to show some user warning / force a user confirmation or generate_secrets_on_unsupported_platforms flag.

But, this is probably a net improvement over the current situation, and this is still experimental, so, changes can happen before it gets to GA.

fastest963last Wednesday at 3:29 AM

I'm not sure there's a realistic alternative. If you need to generate a key then it has to happen somehow on unsupported platforms. You can check Enabled() if you need to know and intend to do something different but I assume most of the time you run the same function either way you'd just prefer to opt into secret mode if it's available.

show 2 replies
samdoesnothinglast Tuesday at 11:46 PM

Does it? I'm not disputing you, I'm curious why you think so.

show 1 reply
oncallthrowyesterday at 4:54 PM

Meh, this is a defence in depth measure anyway

Edit: also, the supported platforms are ARM and x86. If your code isn’t running on one of those platforms, you probably know what you’re doing.

show 2 replies