News for hackers. Stuff that matters.
Re:Vault 0.10 released by jlgaddis on Wednesday April 11, 2018 @09:19AM (#16810790)
What happened to the old Unix philosophy about doing nothing on success (a.k.a. "Rule of Silence")?

That is:

  $ vault kv undelete -versions=2 secret/my-secret
  Success! Data written to: secret/undelete/my-secret
should instead be:

  $ vault kv undelete -versions=2 secret/my-secret
  $
Also, the screenshots on the Vault OSS UI Introduction page [0] are completely unintelligible.

[0]: https://www.hashicorp.com/resources/vault-oss-ui-introductio...

Re:Vault 0.10 released by jrs95 on Wednesday April 11, 2018 @09:27AM (#16810846)
For your average user I think this is confusing and not good UX.

Since a lot of people using this tool will be developers with MacBooks and not hardcore *nix users, it’s probably a good choice to ignore that convention.

Re:Vault 0.10 released by otp124 on Wednesday April 11, 2018 @09:32AM (#16810880)
> For your average user I think this is confusing and not good UX.

I disagree, as the average vault user is likely someone familiar with Unix (though there is a Windows binary). Here is an example that I just ran on my machine.. very silent.

  $ mkdir source
  $ cd source
  $ touch file
  $ rm file
  $
Re:Vault 0.10 released by onmai-xyz on Wednesday April 11, 2018 @11:22AM (#16812036)

  $ rm file 
  $ echo $?
  $ 0
Silent, unless you go looking. The return value of the last executed command is available as $?.

I picked this up at http://www.rsync.net/resources/howto/remote_commands.html for running commands over ssh and not seeing the console output.

Re:Vault 0.10 released by emddudley on Wednesday April 11, 2018 @10:34AM (#16811443)
Confirming success is only necessary when users do not trust the program (due to bugs, confusing UI/API, etc.). They will seek reassurance that their actions are successful. However, if users trust the program then no confirmation is needed.

We should be creating stable and predictable programs so that we can maintain users' trust. Otherwise we have to introduce hand-holding which degrades everyone's experience through extra cognitive overhead and user interaction.

Re:Vault 0.10 released by dalore on Wednesday April 11, 2018 @11:50AM (#16812331)
And yet a lot of unix tools also have a -q quiet mode to not output anything unless an error.

cron adopts this philosophy in that you get an email if there is any output at all.

There is a tool called chronic which you can use as a wrapper which captures stdout and only ouput if the return code is an error:

  $ chronic vault kv undelete -versions=2 secret/my-secret
  $