Time
4 hours 53 minutes
Difficulty
Beginner
CEU/CPE
5

Video Transcription

00:00
Let's begin our journey and the vault
00:02
by understanding the domain in which it operates the problems that the product is trying to solve.
00:10
Vault is a secrets manager,
00:13
but when we talk about secrets, we're not talking about the kind of secrets that you whisper in somebody's here.
00:19
We're talking about credentials, things that give you access. Authorization.
00:25
Two different computer systems, such as user name and password, AP I tokens, database credentials,
00:33
even private keys and certain other certificates.
00:36
There's a real challenges in this environment when we talk about sacred management such as controlling, who do we give these secrets to? Do we give these to other human beings to people?
00:48
But we also need to consider controlling, giving these to service accounts, principals and other applications that need these secrets to do what they're supposed to dio.
00:57
We have additional challenges of updating secrets and keeping track of changes that occur. Of course, there may be problems
01:04
compromise. We suspect there's compromise and we want to revoke a secret. We want to invalidate it.
01:10
When did track who is using these different secrets having some audit, logging around it as a benefit of tracking who was using the secret.
01:18
We know when something's changed. We can broadcast events, so these people who rely on the secrets become aware of the change that's taken place. I mentioned a type of secret called Keys,
01:30
and this in the world of encryption keys are just a real quarter stone to the way modern cryptography works. They relies heavily on keys. We're gonna talk a lot about keys when we talk about vault storing keys as well as how vault itself were lies on and uses keys. So I want to spend a little bit of time reviewing
01:49
keys and how they pertain to encryption.
01:52
Specifically there. Two general categories of encryption algorithms that rely on keys. First, we have symmetric encryption. It's a real well known technique where you have plain text on the left.
02:07
You want to encrypt it, so you use your secret key.
02:09
It is then transferred in. The cipher text is delivered to your recipient, and then they can decrypt that cipher text using their secret key. And now they see your message in plain text. This is a good approach when you say one encrypt information going to disk before it actually gets stored to disk.
02:30
And you know you're gonna be able to hold on to that secret key,
02:32
Um, and kind of use it and been both ways for the encryption operation and the decryption Operation Blowfish, a SRC four deaths thes are encryption algorithms that follow the symmetric encryption mindset where the same secret key is used by both parties involved in the communication.
02:51
But there's a big disadvantage to this
02:53
in that distributing that secret key in a secure manner to both parties and all parties involved can be very difficult. So enter the concept of asymmetric encryption. Also referred to his public key cryptography. Asymmetric encryption uses a key pair, so
03:13
all parties involved
03:15
have a public key and a private key. And there's a special relationship between that public he and the private key such that if I encrypt a message using a public key, it can only be decrypted using the associate ID Private key.
03:30
Conversely, if a message is encrypted using a private key, it can only be decrypted using the corresponding public.
03:39
So let's take a simple example where Bob and Alice want to send a message to each other, and it's a secure message and they want it encrypted in transit, and they didn't have the opportunity to use a shared key. So symmetric encryption is out is not an option for them.
03:54
They're gonna take the asymmetric encryption approach. Now. Each Bob and Alice each have their own public private pair of keys. Neither of them are going to give anybody else
04:05
access to the private key, but they're each going to exchange their own public e. So if you imagine Alice is on the left, she gets Bob's public key,
04:15
and she has a message she wants to send a bobble, were on the right. She will encrypt that message using Bob's Public Key.
04:24
As a result, that encrypted message can only be decrypted
04:29
by Bob using Bob's private key. If he wants to send a message back to Alice, he will do the converse. He will take the message he wants to send. He will encrypt it using Alice's public key. He will send that to Alice, and it'll be in cipher texts when he's when he's sending it to her.
04:47
And then she will decrypt it
04:49
using her private key. So that's the essence of asymmetric encryption, very common algorithms that that leverage this method R R s a. D s, a elliptic curve techniques p k CS. It is very prevalent on the Internet, as you can imagine, because the concept of having a shared key
05:09
and trying to go symmetric encryption
05:11
it is difficult, right? You want to be able to give these public keys and you're doing it over the Internet. You can't trust who's listening and he's dropping. So public keys get exchanged in handshaking process using TLS. And that's where
05:25
Bob and Alice are going to exchange their public keys. And then they'll follow the process that I was just describing, often
05:30
to then
05:31
exchange a a symmetric encryption key that then they can use for further communication. Andi, they've done the handoff between each other and a very secure manner.
05:46
So we define the secrets
05:48
we've talked about. The nuances of keys and their role in cryptography is a secret. What is hashtag or vault, too?
05:57
First and foremost, it is centralized secrets storage. So it's job is to keep the secrets themselves, secure distribution, persistence all the above.
06:08
Another major pillar of hashtag, or vault, is generating secrets. This is preferred to his dynamic secrets, and we'll get deeper into this. But if you could imagine, it's being able to create unique credentials for different clients, right, so so that
06:24
you have a customer. A. They get a certain token and customer be gets a different token,
06:29
so that if there's ever a problem with customer be, you can invalidate that individuals token. Or that entities token and customer A doesn't need any updates because there was no compromise of their token right. And being able to dynamically distribute thes and set lease periods for shorter life spans
06:48
is a very powerful thing. And it's all about minimizing the blast radius when some some secrets are leaked and there's compromise so you can renew, refresh and change the secret without affecting everything else in the entire system. Right?
07:05
Um, finally, we have encryption as a service, so encryption itself is very difficult. I gave an overview of
07:15
symmetric encryption, asymmetric encryption, and it got a little dicey talking about public keys, private keys, and we didn't even get into the nuances of the math. And in the the exponential math and the module lists and all these things that go on behind the scenes to really get that cryptography, and so it's very difficult for a lot of developers to get it right.
07:34
So what vault conduce you
07:36
is perform encryption for you. So you call vault server as a service, and it will actually do the encryption for you and provide it. And that way you're reducing the margin of air that can be introduced by programmers either incorrectly
07:51
implementing an encryption algorithm or just incorrectly using an encryption library.
07:58
Um, and it reduces the transferring of foreign keys. So if you have programs, for example, that need to do symmetric encryption or even asymmetric those programs themselves, if they themselves are going to be doing the encryption, they need to have the keys in their hand. But if you delegate the encryption and the decryption process is off the vault,
08:18
the keys actually don't need to leave vault.
08:20
So we'll be talking about all three of these in much greater detail in the coming modules.
08:26
But just to summarize what we learned here,
08:28
we talked about what is the secret. We even talked about the difficulties associated with managing secrets.
08:35
We did a review of symmetric encryption versus asymmetric encryption and how encryption keys themselves play such an important role in that paradigm.
08:45
And then we touched on the three main pillars a vault.

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