Using Vault CLI behind socks proxy

538 views
Skip to first unread message

Alex Litvinenko

unread,
Sep 10, 2020, 5:24:35 AM9/10/20
to Vault
Hello,

My laptop does not have a direct access to Vault server thus I cannot do `vault login` from the terminal. However, it's possible to spin up a socks5 proxy via `ssh` and then to use `localhost:1337` as a proxy. Is it possible to make Vault cli client to use this proxy when connecting to the server?

Thanks,
Alex

avo...@gmail.com

unread,
Sep 10, 2020, 3:42:51 PM9/10/20
to Vault
yes, it is possible, instead of setting up ssh-socks proxy try to forward vault server port, and then set VAULT_ADDR pointing to the forwarded port

Alexandra Freeman

unread,
Sep 15, 2020, 10:23:57 PM9/15/20
to Vault

Hello and thank you for your email!

On June 3, 2019 HashiCorp launched Discuss, a forum to facilitate dialogue within the HashiCorp community. This format allows answers to be more readily searched and indexed, making it easier to find answers to existing questions and to share knowledge with each other.

The HashiCorp team will be shifting to interact with practitioners on the forum, and we will be phasing out the Google Groups; on September 15, inbound messages to this group will be disabled, and it will be used for outbound announcements only.

To prepare for this switch, please direct questions and conversations to the Vault discussion forum. We look forward to collaborating with you there!
Reply all
Reply to author
Forward
0 new messages