Environment Setup

Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or

Already have an account? Sign In »

Time
4 hours 53 minutes
Difficulty
Beginner
CEU/CPE
5
Video Transcription
00:00
welcome to a new module on hash core vault. Really be talking about secrets storage. In this particular lesson, we're gonna do environment set up. But before I get into the nuances of the environment set up, we have some exciting things that are gonna come down the pipe in this overworking module. We're gonna get evolved instance running locally.
00:18
We're gonna take a look at the key Value secrets engine,
00:21
and we're gonna explore how to manage vault via the sea. Ally, there's an http based AP I and A Web. You I So we're going to start transitioning and getting really hands on using the product in this particular lesson. However, we wanna make sure we get your system set up
00:40
so you have the latest version of vault
00:42
installed and running. First, I'm going to cover the installation process on a Windows environment. And then the second part I'm gonna cover installing vault on a Mac environment, and the process I go through it would be very applicable if you want to be running vault on a limits environment
00:58
as we go through these lab activities, we're not talking about setting a vault in a production capacity So go ahead and jump around in the video to the particular operating system you're working on.
01:08
For the next few minutes, I'm gonna walk through the process of installing vault on a Windows machine.
01:14
You can see I have my browser up and open to vault project dot io multi main website Right in our face. There is a download download here, and there's a download in the upper corner. Let's click the download in the main part of the page. It brings us to the vault download page
01:30
pre selected for our platform, which is Windows gonna proceed to download the binaries, which are all included in a ZIP file.
01:40
And then let's go ahead and open the zip file.
01:45
So what the download has is just a single execute herbal, pre compiled toe work in the Windows environment.
01:51
Now I've downloaded in a zip file. I need to put it somewhere.
01:55
You have a lot of options in this tutorial. I'm gonna go ahead and I'm gonna put the zip file in
02:00
in program files directory.
02:05
And to do that, I'm gonna make the folder to which this is gonna go,
02:20
and then I'm just gonna manually make these cause vote doesn't really have a nice installer. But I do want to keep with the Windows
02:28
convention
02:29
of putting stuff in program files and kind of organizing it by application.
02:49
And then I'm gonna drag and drop the execute herbal into the directory program files hashtag or vault been that I created.
02:57
Now, this is good. It has the binaries in the right spot, but we still have another step in that. If I go to the command shell, the vault binary itself is not apparent on the system path. And so we need to go through the process of adding that to the system path.
03:15
There's waste a lot of different ways to go about doing this. I'm gonna stick with the
03:20
simple, gooey method. Since we are on a Windows machine opened up control panel,
03:27
we're gonna go to
03:29
system and system settings,
03:40
editing system, environment, variables,
03:45
an environment variable we want to modify is path. But we're going to do it on a system wide basis.
03:53
So here we can.
03:54
I had a new path,
03:58
which will be
04:04
what we have selected here.
04:09
Okay,
04:11
Don't.
04:13
Okay, Okay. Now, even though I have launched a window. The changes I made to the path variable aren't going to take effect until I launch a new console window. We're gonna constant launch another console window
04:26
just to make sure all of this works.
04:28
Vault.
04:31
And there we go. Vault 131 installed on Windows platform.
04:38
For the next few minutes, I'm gonna walk through installing vault on a Mac OS. The process I'm using is can be very much modelled. If you're installing vault on Olynyk server as well here, I'm on the vault website vault project that I Oh, we have some download options. Upper like straight center.
04:55
Clicking on either is gonna break you to the vault binary download page. We're going to download just a single binary file. They've pre compiled it for variety of different platforms. Mac OS X is our situation, so I'm going to download launching the download gives me a zip file.
05:14
So want to create a directory to store the downloaded vault binaries? You can see by the name of the zip file. I downloaded version 131 of vault. I'm gonna go ahead and I'm gonna make a directory in opt. That's gonna be a place to put this binary file. And then, of course, I need to unzip
05:33
the binary that we just downloaded as well. So even on zip that
05:40
and then we're gonna move
05:43
the vault excusable
05:47
into that directory that we just created.
05:55
Okay?
05:56
And now we still don't have vault on our path. And you can see So what I like to do in this circumstances create a SIM link in user local bin that points to the binary residing in the opt directory.
06:14
Everybody has their own conventions. This is one that I follow
06:18
very influenced by the file system hierarchy standard in Lennox. You can definitely take a peek at that. If you ever confused about Lennox directories and subdirectories and how files and content on Lenox machines is organized,
06:41
our source is gonna be
06:47
and their destination usually.
07:02
Okay, we can see we have it pointing not quite to the right directory. They're
07:10
Excuse me to the right file.
07:13
So do you clean up?
07:29
Go which butts? And there we are. So we have put vault version
07:38
131 into user local bin, which is a symbol ing pointing to the actual binaries which are an opt vault 131 and it's all on our path. So I don't have to worry about manipulating the path variable for my user account or any other user accounts on this machine
07:56
before calling it a day on the vault installed process, though, I want to set up in an auto complete utility, which will be helpful as we're exploring the vault command line in subsequent
08:07
modules of this training. This is only applicable if you're using Bash CSH or Fish Command shells. So Windows users. I didn't include this because it's not gonna work in your world.
08:20
Um,
08:22
you can see if I run vault. There's a variety of commands which many of way haven't gotten into. But if I run this dash auto complete
08:31
dash install,
08:33
um, it's gonna go through a little bit of a process and set things up for me,
08:39
and it updates my Bashar. See, I was fiddling around with this a little bit earlier before the recording. You see, it already updated this for me, but this is very helpful when we're running vault the to get a bearing on these different sub commands that you can see up here.
08:56
So I can do. For example, there's a vault list is the sub command vault ally, and then I hit the tab. Keen. It automatically expands out the fact that it's vault list
09:03
that will be helpful as we move along. This wraps up for installing on Mac should be very applicable when you're installing Balto Analytics. So what did we learn in this video? We found the latest version of vault located it on the Hash E Corp vault project that I owe website
09:20
you installed on your system. Whether it be a Windows links or Mac,
09:24
we added it to your path, using Windows, the path variable on. Then, on the Mac and Lennox environment, we set up the auto complete capabilities and ultimately, Rance a few basic commands to ensure that the installation was successful. So I look forward to the upcoming videos and modules because we're going to really start
09:45
learning a lot more about this product and seeing it truly in action.
Up Next