News for hackers. Stuff that matters.
Re:An Interactive HashiCorp Vault Shell by dennis-tra on Tuesday October 08, 2019 @06:55AM (#21190837)
Nice work, I once built a terminal UI for Vault. Did not get any attention at all. Works wonders for me:

https://github.com/hashicorp/vault/pull/6108

Re:An Interactive HashiCorp Vault Shell by olalonde on Tuesday October 08, 2019 @09:05AM (#21191803)
I feel bad for you, they didn't even leave a comment on the PR :(
Re:An Interactive HashiCorp Vault Shell by boeroboy on Tuesday October 08, 2019 @09:46AM (#21192217)
I already wrote FUSE clients for all of Hashicorp's products actually.

https://github.com/jboero/hashifuse

Re:An Interactive HashiCorp Vault Shell by fishi0x01 on Tuesday October 08, 2019 @01:22PM (#21194620)
It covers the whole stack. Nice! Will try it. Thanks for sharing
Re:An Interactive HashiCorp Vault Shell by boeroboy on Tuesday October 08, 2019 @09:47AM (#21192229)
Also K8s (experimental)
Re:An Interactive HashiCorp Vault Shell by kiney on Tuesday October 08, 2019 @05:25PM (#21197434)
That's really cool. Will try it out.
Re:An Interactive HashiCorp Vault Shell by lingrino on Tuesday October 08, 2019 @09:47AM (#21192232)
Very cool! I have a very similar (non-interactive) project for copy/move/search on folders. It's something I think should be added to the vault core but there doesn't seem to be much interest there.

https://github.com/lingrino/vaku

Re:An Interactive HashiCorp Vault Shell by fishi0x01 on Tuesday October 08, 2019 @01:20PM (#21194604)
This looks amazing! Nice parallel worker approach :)

Thank you for sharing

Re:An Interactive HashiCorp Vault Shell by boardwaalk on Tuesday October 08, 2019 @09:42AM (#21192177)
It seems, to me, like a normal command line tool that has the operations you want would integrate better with workflows. Here you can use “-c” but then you’d have to deal with quoting and such. Seems like a big impedance mismatch to pay for “working directory” functionality.

... I don’t have a super tree of Vault secrets though (it’s one level, actually).

Re:An Interactive HashiCorp Vault Shell by fishi0x01 on Tuesday October 08, 2019 @01:29PM (#21194702)
You are right, it is nothing fancy indeed.

The "-c" is mainly intended for automation if needed.

Main motivation behind this project is that I am currently working with rather large secret trees and will have to move them around for upcoming refactors. I could also write scripts for that with the vault client of course .. but it felt to me easier and more flexible on the long-run to have a shell-like approach to work with. In my case, the refactor will include a shift from KV1 to KV2, which is also covered by that tool.

Further, I saw this as an opportunity to do some coding :)

Re:An Interactive HashiCorp Vault Shell by aargh_aargh on Tuesday October 08, 2019 @04:37AM (#21190036)
Cool, but why not FUSE?
Re:An Interactive HashiCorp Vault Shell by eikenberry on Tuesday October 08, 2019 @04:42AM (#21190059)
Isn't FUSE mostly *nix specific? At first glance this seems to be platform agnostic.
Re:An Interactive HashiCorp Vault Shell by jasonjayr on Tuesday October 08, 2019 @06:10AM (#21190515)
https://github.com/billziss-gh/winfsp

https://dokan-dev.github.io/

A few options exist for Windows already, allowing FUSE filesytem code an easy path to run on Windows. I've recently used winfsp + it's sshfs port, and it works pretty well.

Re:An Interactive HashiCorp Vault Shell by fishi0x01 on Tuesday October 08, 2019 @05:16AM (#21190230)
Good point. Main targets are Mac and Unix. MS should be compatible too, but some of the deps don't test if they are really working on MS.

Afaik Mac and Unix should be supported by FUSE, so it seems like a viable option.

Re:An Interactive HashiCorp Vault Shell by fishi0x01 on Tuesday October 08, 2019 @05:11AM (#21190212)
Haven't thought about it tbh. But that is an interesting idea!

Are there any reasonable go libraries for FUSE that you can recommend?

Re:An Interactive HashiCorp Vault Shell by 4ad on Tuesday October 08, 2019 @05:46AM (#21190370)