Using ACL Tokens in a Consul Cluster

30 minutes
  • 3 Learning Objectives

About this Hands-on Lab

For this hands-on lab, you are required to bootstrap the ACL on the provided server (which is in development mode). Then set the token from the bootstrap in order to perform commands. The Consul Agent already has the ACL stanza setup.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Log in to the Provided Servers
  1. Log in to the server using the credentials provided.
  2. You will receive an error when you performing consul commands due to ACL’s being enabled.

    Note: It may take several minutes after the lab has started before Consul is ready for use.

Bootstrap the ACL and Obtain Management Token
  1. Create a bootstrap token to obtain management token.
Use Management (Bootstrap) Token with Consul Members Command
  1. Use whatever method is appropriate to obtain the information provided by the Consul members command.
  2. List the Consul members.

(Note: If you get no response or there is an error, then you are not using the management token.)

Additional Resources

A vendor has installed Consul and enabled ACL's on the agent by adding the ACL stanza into the configuration file. They have not created a management token. You will need to bootstrap the ACL system to obtain the global management token using the provided server and Consul agent. Confirm Consul availability by using the token generated during the bootstrap command. You will receive an error performing Consul commands until the Management token is set in the environment or part of a Consul command.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?