The Correct Way to Handle Credentials in a Jenkins Pipeline

  Рет қаралды 99,350

CloudBeesTV

CloudBeesTV

Күн бұрын

Пікірлер: 17
@CloudBeesTV
@CloudBeesTV 4 жыл бұрын
Timecodes ⏱: 0:00 Intro 0:19 Overview 0:34 environment directive 1:37 example pipeline 2:13 String interpolation 3:56 Interpolation of sensitive environment variables 5:32 Example pipelines 8:51 Conclusion Information referenced in this video: environment directive for declarative pipeline www.jenkins.io/doc/book/pipeline/syntax/#environment Interpolation of sensitive environment variables www.jenkins.io/doc/book/pipeline/jenkinsfile/#interpolation-of-sensitive-environment-variables
@BramMertens
@BramMertens 2 жыл бұрын
This is useful for using credentials but I'm hoping you could add another video on using credentials scope (i.e. user/system) and domain. Specifically how to define and use credentials for a single (non-admin) user.
@Beokabatuka
@Beokabatuka 3 жыл бұрын
This is a good summary of the basics, but what happens when we want to use parameters or other environment variables within the same shell string? Single quotes resolves the warning message and passes the secrets securely, but it breaks every other type of string interpolation. How can we do both at the same time?
@marcm7533
@marcm7533 3 жыл бұрын
Extremely clear and precise!
@grigorytrenin8430
@grigorytrenin8430 3 жыл бұрын
Even if you use single quotes, a shell will perform variable interpolation and will run curl process with exposed credentials. So you will be able to see them in OS process list even if you use single quotes. So how can single quotes be much more secure? You will see the credentials in OS process list regardless of what kind of quotes you use.
@allanfernandes1982
@allanfernandes1982 3 жыл бұрын
Thank you for the video. Helped me a lot.
@prasadkancharlaautomation2874
@prasadkancharlaautomation2874 3 жыл бұрын
Thank you for the video, this helped to understand about each KIND of credentials use, also do you have any video on how to use WITHCREDENTIALS syntax? how & what to use in it.? would be helpful if you can post
@fatihcamgoz
@fatihcamgoz 2 жыл бұрын
Great explanation! Liked and subbed.
@ivanudovichenko9439
@ivanudovichenko9439 2 жыл бұрын
Thank you for sharing!
@niranjanhettiwatte9535
@niranjanhettiwatte9535 Жыл бұрын
I did not see any difference between the use of single and double quotes. Both were showing ****. Just the warning was missing in the single quote.
@ramnarasimha4760
@ramnarasimha4760 Жыл бұрын
How to pass aws access and secret key in Jenkins pipeline for running aws-describe instance command
@UK-sl8gu
@UK-sl8gu 3 ай бұрын
agent label linux crashed my pipeline but neverthless adding this label for my built-in-node in nodes fixed it again.
@CorporalAdrianShephard
@CorporalAdrianShephard Жыл бұрын
If the credential has a dollar sign in it? Why it isn't handled?
@toniasanzo8509
@toniasanzo8509 2 жыл бұрын
I think the single-quote pattern was updated from '$CRED' to '%CRED%'
@marcm7533
@marcm7533 3 жыл бұрын
Thank you very much!
@ByronBrummer
@ByronBrummer Жыл бұрын
Nope, wrong. All you've done is silenced the warning in Jenkins, you haven't changed the actual security posture at all. What you did is move variable expansion from Groovy to the shell executing curl, but both forms will still toss the raw credentials to exec() and thus show up bright as day in a ps process listing by any user on the system. If you must use curl with basic auth credentials, use a netrc file and make sure you lock down its file permissions properly.
@RahulMishra-k5s
@RahulMishra-k5s 3 ай бұрын
Jenkins is soooo frustrating
Getting Started With Shared Libraries in Jenkins
23:23
CloudBeesTV
Рет қаралды 84 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
What Is an Input in Jenkins?
12:35
CloudBeesTV
Рет қаралды 13 М.
Jenkins Multibranch Pipeline With Git Tutorial
29:54
CloudBeesTV
Рет қаралды 86 М.
Using Conditionals in Jenkins Declarative Pipeline
10:13
CloudBeesTV
Рет қаралды 8 М.
How to Add Git Credentials in Jenkins
12:13
CloudBeesTV
Рет қаралды 54 М.
How to Use Environment Variables in Jenkins
8:33
CloudBeesTV
Рет қаралды 19 М.
How to design a modern CI/CD Pipeline
9:59
DevOps Journey
Рет қаралды 183 М.
Using Resource Files From a Jenkins Shared Library
13:58
CloudBeesTV
Рет қаралды 32 М.
Jenkins Multibranch PipeLine
9:03
Ranjit Swain
Рет қаралды 16 М.
Complete Jenkins Pipeline Tutorial | Jenkinsfile explained
35:06
TechWorld with Nana
Рет қаралды 803 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН