Skip to content

OpenBao

OpenBao is our secrets manager for MKK. It's a fork of HashiCorp Vault and stores sensitive information like database credentials, API keys, and more.

Logging Into OpenBao

  1. Navigate to the OpenBao dashboard at https://bao-dev.mrkelleyskleaners.com

Login page

  1. Click the Method dropdown and switch from Token to OIDC

Switch login method

  1. Click Log In With OIDC Provider to authenticate with Authentik (use your standard credentials)

Authentik login

You're now logged in.

Dashboard Overview

The OpenBao dashboard is straightforward. You'll see the Secrets Engines section—we use the secret engine to store credentials.

Click the secret folder to view stored secrets or add new ones. (Please request permission before adding secrets.)

Note: Three environment folders exist (dev, local, prod) for our three environments. These are fully automated—no manual management needed.

Dashboard

Getting Your Access Token

  1. Click your profile button in the OpenBao sidebar
  2. Click Copy Token
  3. Save this token—you'll need it for the next step

Copy token

Setting Up Your Local Development Environment

1. Create a .env File

  • Copy /backend/envs/dev.env to your project root and rename it (e.g., local.env)
  • Paste your access token into the appropriate field in your .env file the field is BAO_TOKEN= it should be blank just paste it in no quotes
  • Do not edit or commit the original dev.env—it's version-controlled as an example

2. Configure IntelliJ

  1. Edit your run configuration:
  2. Click the run configuration dropdown at the top
  3. Select Edit Configurations
  4. (Repeat for the admin application if needed)

Edit configurations dropdown

  1. Add environment variables:
  2. Click the Environment variables field's dropdown button

Add environment variables

  1. Select your .env file:
  2. Click the folder icon and select the .env file you created
  3. Click Apply and OK

Environment variables input

You're all set! You can now run the backend.