Book Image

Hands-On Continuous Integration and Delivery

By : Jean-Marcel Belmont
Book Image

Hands-On Continuous Integration and Delivery

By: Jean-Marcel Belmont

Overview of this book

Hands-On Continuous Integration and Delivery starts with the fundamentals of continuous integration (CI) and continuous delivery (CD) and where it fits in the DevOps ecosystem. You will explore the importance of stakeholder collaboration as part of CI/CD. As you make your way through the chapters, you will get to grips with Jenkins UI, and learn to install Jenkins on different platforms, add plugins, and write freestyle scripts. Next, you will gain hands-on experience of developing plugins with Jenkins UI, building the Jenkins 2.0 pipeline, and performing Docker integration. In the concluding chapters, you will install Travis CI and Circle CI and carry out scripting, logging, and debugging, helping you to acquire a broad knowledge of CI/CD with Travis CI and CircleCI. By the end of this book, you will have a detailed understanding of best practices for CI/CD systems and be able to implement them with confidence.
Table of Contents (18 chapters)

Best practices in password and secrets storage

As we have seen throughout the chapters covering Jenkins, Travis CI, and CircleCI, each continuous integration server has a way to store secure information such as passwords, API keys, and secrets. It is dangerous to run certain actions in the CI server, such as execution tracing with Bash by using the set -x option in Bash. It is better to either use the CI server's functionality to securely store passwords and secrets, such as the context settings for each project in CircleCI ,which cannot be seen by anyone other than a project owner. You can also use a tool such as Vault (https://www.vaultproject.io/intro/index.html) to securely store your passwords and that can be retrieved using a RESTful API or use something like the Amazon Key Management Service (https://aws.amazon.com/secrets-manager/). We will briefly look at using...