Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Google Cloud Platform icon
Labs

Implement a Logging Solution for HashiCorp Vault

As part of this hands-on lab, you will be required to configure HashiCorp logging, and set up log file syncing with a remote server.

Google Cloud Platform icon
Labs

Path Info

Level
Clock icon Intermediate
Duration
Clock icon 1h 0m
Published
Clock icon Oct 23, 2020

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Enable HashiCorp Vault Logs

    1. In the Vault Server, retrieve the vault keys.
    2. Unseal the vaults.
    3. Log in with the Initial Root Token.
    4. Enable logs.
    5. Access the logs.
  2. Challenge

    Enable Key-Based SSH Authentication to a Backup Server

    1. In the Vault Server, generate a new key.
    2. Copy the new ssh-rsa key.
    3. In the Client Server, add the key to the authorized_keys file.
    4. Save the file.
    5. Open the sshd_config file.
    6. Enable key-based authentication by uncommenting the PubKeyAuthentication Yes line.
    7. Save the file.
    8. Apply the changes.
  3. Challenge

    Use Rsync to Create Log Backups on the Vault Server

    1. In the Vault Server, make a new directory.
    2. Create a test file in the directory.
    3. Populate the file with generic data.
    4. Using rsync, sync the test file between the two servers.
    5. In the Vault Server, configure a trigger for file sync.
    6. Add the cloud_user to the incron.allow file.
    7. Save the file.
    8. Create a directory on the Client server to hold the logs.
    9. In the Vault Server, update the log permissions.
    10. In the Vault Server, create a new job.
    11. In the new file, paste the following.
    12. In the Vault Server, enable a kv secrets engine.
    13. In the Client server, run the command to test the setup.

    Note: You can find the Vault Server domain by running cat Domain.

    1. Generate a GET request and check if the logs have been synced.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

What's a lab?

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.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.

Start learning by doing today

View Plans