Time
4 hours 53 minutes
Difficulty
Beginner
CEU/CPE
5

Video Transcription

00:00
Welcome back to vault fundamentals.
00:04
In the last module we interacted with the product. We set it up, we saw running, We poked on it using a variety of methods and we stored secrets in the product
00:15
in this module, we're gonna take a step back from wearing the role as an individual that uses vault to store keys and take a look at the product more from an operators perspective or an architect's perspective specifically will look at the overall component architecture, design off vault itself.
00:32
We'll talk about data ceiling and unsealing process.
00:36
We're gonna cover build server configuration files, which an operator would be very interested in.
00:42
We're gonna talk about the different plug ins that are available by default with vault and explore the capabilities of those different kind of plug ins.
00:54
In this particular video, we're gonna walk through the vault architecture, step through each one of the big parts, and then we're gonna examine hands on the Dev Server itself and even review vaults. Ap I explorer Here we have an architecture diagram that was provided by ASCII Corp. It gives an overview
01:14
of the logical parts
01:15
that are running when you have the server process. A vault server up and listening, right? We know that it has an http AP I. We interacted with that using curl, using the command line interface and then indirectly when using the Web graphical user interface.
01:33
It was then subsequently making calls to evolved
01:36
using the http a p I
01:40
we didn't talk much about storage, and obviously this is like any kind of a database. The data itself needs to be persisted in stored in some some manner right beyond just temporary eso. Anything that goes in the storage back and whether that's a file system, whether that's in memory
02:00
or whether that's a cloud storage provider,
02:04
that it data has to be encrypted by vault
02:07
because logically recognizes in the design. All these parts here, where it's doing all these things, handling the secrets, handling configurations off the server itself, they all sit in a logical barrier. Think of it like a cryptographic steel around it. So any information and mike it
02:27
exposed involuntary in volatile memory or anything of that nature
02:30
goes to the storage back in. We want to make sure that it's encrypted,
02:36
therefore, keeping the overall security of the entire concept of using vault so that some snooper couldn't come in through a back door and just subvert all these layers Here, look at the storage information and derive and decrypt all the great secrets that we have gone
02:55
coming back to the top.
02:58
If we analyze how the incoming requests are handled, we have core,
03:01
and that has some very simple roles and responsibilities. And then, based on the incoming path, the rest path,
03:09
it's gonna route that request in different ways. Starting over here on the right. If those requests don't have some sort of an eye token, identify are associated with them, something that lets vault know who is the requester that's been identified or and particularly authenticated, then
03:27
first thing bolts going to do is say, you know what? You need to authenticate it.
03:30
I'm gonna. It exposes and makes available various methods to authenticate. And ultimately, as a result, if you successfully authenticate with whatever account you do, so the token store is gonna provide a token. And that token is like your session cookie that you use when you're interacting with vault
03:47
moving to the left. Incoming requests. We sent a lot of requests to dash secret
03:53
right? And the reason that all worked out in those prior examples is because the secret path was mounted and associated with the key value secret engine and you can. We could have taken that key value path and mounted it to a different location.
04:10
There's a lot of other secret engines that we're going to explore and use, and they'll be mounted at different locations. And so the path routing logic understands. How do I handle this incoming request by pass it off to an off method? Do I send it off to the secret engine? Or last minute at least? Do I need to send it off to the secret system? Back end areas?
04:30
This is where we have system information
04:32
configurations. We ran the example command of the curl enquiring for sys info that cysts slash path all gets routed over here, and there's a whole lot around the system back in. Of course, you have to be approaching vault authenticated as a user that has the rights and entitlement.
04:51
Have you read and even modify that system back and type information.
04:57
Other significant components. When we're looking at the logical architecture of Balt, our audit devices.
05:02
Every interaction that we performed in the last session reading a ticket, writing a ticket updating ticket, it was all logged. Those interactions get logged in,
05:15
put in piped out to an on the device to be just a simple file. There's a lot of other lot of devices that we're gonna look at. But the big point about this logical piece here
05:26
is that it provides those checks and balances so you can determine if there's bad behavior based on the logs and the activity logging the year. See? So we've hit on a lot of the big points when we look at the vault. Architecture Torque installer Token Store is where we have the authentication tokens
05:43
stored Policy Store manages and upholds the different policies Exploration manager, all secrets that vault itself dynamically generates.
05:51
It's going to give a particular least time so all of those things are going to expire, and so putting it all together. But I'd like to do now with our newfound knowledge of the overview of how vault is logically, Architected is come back to our death server and examine the set up, which is just a default set up that hashtag or put,
06:11
but examine it a little bit deeper.
06:13
So we can really bring some appreciation to how all these parts are applied Pulling from our last session. If you still have the vault server running, I would recommend that you you kill it and then just restarted here. I'm going to start a new instance of the vault server.
06:32
Of course,
06:33
in depth mode on. And then I'm gonna open another terminal which will be used for client access. Let's take a look at vault and
06:45
the server that we have opened running, we have have to get the token
06:53
is the root talking. Every time you start the vault server, restart the vault server. This tokens going to be a little bit different.
07:02
So here's the authentication method right, you see, is through the you I but we're doing a vault off. I'm gonna go ahead and sign in here. When we last looked at the u I, we were talking about this this little interaction here, um, this is the seal. I guess if you don't have an actual terminal that you can get to, you can run the CLI commands
07:21
via the Web interface through this command
07:26
Consul. What I want to run is a particular command called the A P I command and what that is doing here. Close this now. All said in the lower area, it brought up all sorts of details off how we're interacting with vault in the AP, eyes that are exposed on this particular instance of the Volzer
07:46
based on the different paths, right?
07:46
So in a sense, this is looking at that path routing component. And how does it determine where it's gonna author what Or forward, which kind of requests? We have the slash off and we see there being forwarded to two different token authentication engines, right? We look at secret. This is what we were interacting with before.
08:05
This is here's different details on the configurations of the secrets engine that keep a key value secrets, engine
08:13
data, secret data path, right? That was a path we used quite a bit.
08:16
There's some other concepts we haven't gotten into yet, but I wanted to introduce this. So if you ever have confusion and one kind of debug wire certain requests being handled in a particular manner, this is a great way to get a insight into how the path routing decision making is being done and
08:33
how those different requests are going to be sent and managed.
08:37
Jumping back to the client Consul, take a deeper look at the death server itself by running a few vault commands. I'm gonna run a new command called Vault Secrets
08:46
and you can see it has several sub commands enabled. Disable list move tuned. This is the command that were you use to actually enable and disable the secrets engines. So when we use the Dev engine what? Guess what? I forgot.
09:05
Export the vault address. So let me export. Set up that environment, variable.
09:11
Here we go. Now with the list out the secrets engines, we can see these were set up by default by the vault when it was on the dead version on Dhere is the different things in ways that the secrets are set up. We have cubbyhole. We have secret sash, which we've worked on before.
09:28
I'm gonna give this thing a little more space. The wrapping makes a little confusing.
09:33
Assists. This is going to be directing to the system in points for the box we were looking at over here right, the system back end. And then, of course, we have the authentication methods and token and so forth, which are not considered secrets, and so they're not listed out here. But if we look at, um,
09:52
vault off
09:54
list is giving us an overview Here, look, Here's the different routings for the different authentication walls. This point, the only one set up is token based authentication.
10:07
Let's take a look at vault policies. We mentioned that What are the policies?
10:13
The default Steph server is very simplistic. You have a default policy and route When it started up, we're gonna expand and create custom policies and get a little deeper and that. But hopefully you're seeing how all these concepts there's logical concepts that sit over here in the vault architecture diagram.
10:33
They map to different commands
10:35
that we can then analyze when we're looking at vault,
10:37
for example.
10:41
So get fault audit. We talked about audit.
10:45
So there No out of devices enabled on the death, sir.
10:48
So in a sense, it was a little misleading. Everything we did was being logged. It was just being logged to Devin. All right, we're gonna set up Samata devices in later sessions of this training. I hope you learned a little something. See how the parts come together. Obtained an appreciation for the architecture. Just to recap. We talked about
11:07
the vault architecture of the main parts, the pieces
11:11
we explored, the Web AP I specifically using that a P I Documentation Command and this kind of an interface to understand the path routing we looked. It ran a few different vault commands that you can use to assess the way different aspects of the architecture heart configured on a particular vault server.

Up Next

Vault Fundamentals

Learn how HashiCorp Vault can improve your security posture when it comes to storing sensitive passwords, maintaining confidential keys, implementing encryption, and establishing robust access management.

Instructed By

Instructor Profile Image
James Leone
Cloud, IoT & DevSecOps at Abbott
Instructor