Vault on Kubernetes with PostgreSQL

  Рет қаралды 14,315

That DevOps Guy

That DevOps Guy

Күн бұрын

Пікірлер
@elchinefa9524
@elchinefa9524 Жыл бұрын
Nice job. I installed vault with helm and wanted to test it. I used your tutorial to connect posgresql to vault . Working perfect. I`d like to test it with mysql or some other as well. Thanks for the tutorial.
@anon0815de
@anon0815de 4 жыл бұрын
I've got the exact same Coffee Maker, and soon also a shiny new Vault in my Kubernetes Cluster
@rodrigito78
@rodrigito78 Жыл бұрын
Thanks!
@anthonyrussano
@anthonyrussano 2 күн бұрын
I wonder if this could be adapted to work with snowflake
@Alpha-kt6hc
@Alpha-kt6hc 2 жыл бұрын
Using it for AWS RDS and GCP Cloud Storage at the same time. Managing applications in AWS accessing the DB in GCP.
@inversemetric
@inversemetric 3 жыл бұрын
Seems like vault could be used to generate certificates to sign json web tokens
@adamstirk
@adamstirk 4 жыл бұрын
Interesting video, I’d liked to of seen you cover off what happens when the password expires.
@kumarpatil2815
@kumarpatil2815 2 жыл бұрын
Can you please guide us how can we rotate database secret for mongoDB and how to inject that into Spring boot service. I searched the whole internet but unable to find the solutions
@polmaksim
@polmaksim 4 жыл бұрын
Thank you for super great tutorials, just what I was waiting for. If You will have time, please make tutorial with Istio and Kubernetes. How to setup and configure correctly. Thank you.
@aperture47
@aperture47 3 жыл бұрын
I'd like to se automated ways to get secrets into the vault
@clavianusjuneardo27
@clavianusjuneardo27 3 жыл бұрын
Hi, thanks for the video! But I wonder, what if our application still running but the postgres credentials has been expired, what will happend to the executed queries? Thanks!
@MarcelDempers
@MarcelDempers 3 жыл бұрын
It would be important to adapt the application code in order to detect that the secret file changed on disk and reload + establish a new SQL connection. I would then play with the Vault settings to see if you can overlap the secret creation with the TTL in order to keep existing queries from finishing in time (drain old connections) and have all new queries go through the new connection with the new secret.
@clavianusjuneardo27
@clavianusjuneardo27 3 жыл бұрын
@@MarcelDempers it seems possible but would make a millisec downtime I think, since there'll be a transition period between old connection and new connection. But, thanks for the answer! Hope you make a video about the database static roles!
@MarcelDempers
@MarcelDempers 3 жыл бұрын
This is why you would drain old connections (let queries finish) and open new connection with the new secret. Having the old and new credential TTL overlap allows a smooth transition. Similar to how you drain web server traffic when doing a rolling deployment. I've worked with folks who have implemented this successfully with other databases so depends how you configure it
@clavianusjuneardo27
@clavianusjuneardo27 3 жыл бұрын
@@MarcelDempers Got it, many thanks!
@rayudu2080
@rayudu2080 4 жыл бұрын
Hey Hi. How are you. I need some help to auto unseal vault using shell script in kubernetes yaml files, can you please help me out, if you dont mind.
@WeekendVibesss
@WeekendVibesss 3 жыл бұрын
The perfect video which I was looking for .. thanks devops guy ❤️
@WeekendVibesss
@WeekendVibesss 3 жыл бұрын
Can you please send me repo without tls .. thanks for advance
@raghads3890
@raghads3890 4 жыл бұрын
great job man!! I really appreciate the effort
@rayudu2080
@rayudu2080 4 жыл бұрын
Hey Hi. i have facing some issue after vault configuration on ibm kubernetes cluster, i have given Key shares and Key threshold numbers after that i clicked on intilize i got this below issue "Error failed to initialize barrier: failed to persist keyring: mkdir /vault/data/core: permission denied", can you please help me out for this one
@MarcelDempers
@MarcelDempers 4 жыл бұрын
"mkdir /vault/data/core: permission denied" states your vault process cannot access its data folder. All volumes are mounted as root by default. In the video, we ensure ownership to the vault user with an init container and chmod'ing /vault/data
@rayudu2080
@rayudu2080 4 жыл бұрын
@@MarcelDempers Can you please let me know in which video you ensure ownership to the vault user with an init container
@MarcelDempers
@MarcelDempers 4 жыл бұрын
It might be in the first one of the Vault series kzbin.info/aero/PLHq1uqvAteVtq-NRX3yd1ziA_wJSBu3Oj
@rayudu2080
@rayudu2080 4 жыл бұрын
@@MarcelDempers Thanks a lot yar..
@rayudu2080
@rayudu2080 4 жыл бұрын
i need some thing else also, can we do unseal process via shell script is that possible to do.
@siamak.hatami
@siamak.hatami 2 жыл бұрын
Perfect. Thank you
@zakariabouataya7248
@zakariabouataya7248 Жыл бұрын
Thanks a lot !
@preethipriyankamalayala8751
@preethipriyankamalayala8751 3 жыл бұрын
great videos! can you please do a video on vault with Azure? Thank you so. much!!
@Printify3DSolutions
@Printify3DSolutions 4 жыл бұрын
Hi Bro!! Nice.
@chornsokun
@chornsokun 4 жыл бұрын
Noice!
@kkkant1547
@kkkant1547 3 жыл бұрын
Hello Thanks For the Video Can you please clarify my doubt Suppose that my application (stateless) is running on an EKS cluster and I'm running the RDS database that is connected to that Stateless application And I'm using java.properties file to defining the username and password Now it is not good practice to add the password in the plain text format inside java.properties How can I connect my stateless java application to the RDS database using vault?
@MarcelDempers
@MarcelDempers 3 жыл бұрын
Applications can only get their inputs from either environment variables or from files. For example, TLS certificates are stored on file and use Linux file permissions to secure it so only your application process is allowed to read that file. You can store your password in a Kubernetes secret if running in K8s and inject it into your java properties file at runtime or store the entire file as a K8s secret. Or resort to getting your credentials from ENV variables and not store it in the java properties file. Passwords are generally stored in configs, so it's not unusual to do so. If you are are concerned about it, there are ways to encrypt passwords before storing them in configs too. In this video, Vault simply automates the credential rotation and automates writing it to file. If you want to go one step further and not store your credential in file, you can use the Vault SDK and write Java code to pull the secrets from Vault and authenticate using K8s service account. Hope that helps
How to deploy Vault for Kubernetes in 2022 and inject secrets
30:30
That DevOps Guy
Рет қаралды 47 М.
Create Dynamic Database Credentials with Vault Secrets Operator
10:13
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
Kubernetes pod autoscaling for beginners
13:22
That DevOps Guy
Рет қаралды 32 М.
Simplify Kubernetes YAML with Kustomize
20:37
That DevOps Guy
Рет қаралды 78 М.
Should We Run Databases In Kubernetes? CloudNativePG (CNPG) PostgreSQL
19:10
ArgoCD [03], Harbor
51:02
Артур Крюков
Рет қаралды 3,6 М.
Service Mesh: What & Why ? - a new series
13:38
That DevOps Guy
Рет қаралды 37 М.
Making Kubernetes disappear with Shipa
30:54
That DevOps Guy
Рет қаралды 6 М.
Understanding StatefulSets in Kubernetes
28:44
That DevOps Guy
Рет қаралды 49 М.
How to use Vault Secrets Operator in Kubernetes
11:43
CookNCode
Рет қаралды 6 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН