Skip to main content
This article covers both HashiCorp Vault connectors. The standard connector is read-only and authenticates with a static token. The HashiCorp Vault (Multi-Auth) connector adds provisioning and two more authentication methods, Username & Password and AppRole.
The HashiCorp Vault (Multi-Auth) connector is in Early Access. Contact your Lumos team to have it enabled for your domain.

After this article

You’ll be able to connect HashiCorp Vault to Lumos to bring Vault entities, identity groups, and policies into your access visibility. With the HashiCorp Vault (Multi-Auth) connector you can also create, deactivate, reactivate, and delete entities and assign or unassign identity groups and policies from Lumos.

Capabilities

Custom attributes: the Multi-Auth connector syncs entity metadata as custom attributes.

Required plan and roles

  • Vault access: creating a token requires authentication with administrator privileges in Vault, so a Vault administrator creates the credential. The person who connects in Lumos only needs that credential and the Vault hostname.
  • Lumos role: an Admin in Lumos. Only Admins can connect integrations (see Lumos roles).

Read-only access vs provisioning

Is read-only possible? Yes. The standard HashiCorp Vault connector is read-only. The HashiCorp Vault (Multi-Auth) connector can provision; to keep it read-only, give its credential a policy with only read and list on the paths below. What full provisioning requires. The HashiCorp Vault (Multi-Auth) connector, authenticated with a static token, a Vault username and password, or an AppRole (Role ID and Secret ID), whose policy matches the Multi-Auth policy in Phase 1. Lumos deletes only entities, so delete is needed on identity/entity/* alone. Watch out for. Connecting checks that Lumos can reach Vault and that the credential authenticates (the standard connector reads sys/health, and Multi-Auth looks up its own token). It doesn’t check the policy paths, so a policy missing a path shows up as a failed or incomplete sync rather than at Connect. With AppRole, Lumos logs in and obtains a short-lived token for every sync. Optionally set Email Metadata Field to the entity metadata key that holds each user’s email, and Namespace if you use Vault Enterprise namespaces.

Instructions

Phase 1: Prepare Vault credentials
  1. Log in to your HashiCorp Vault instance as an administrator.
  2. Gather Token
    1. The token to use for authentication with the Vault UI or REST API. Management of tokens is automatically available in the API at ‘/auth/token’ endpoints, but token creation requires authentication with administrator privileges. Contact your Vault administrator to obtain a token. The connector card asks for a policy that allows the following actions:
      The standard connector only reads from Vault (it sends GET and LIST requests), so for it read and list on these paths are enough. For the HashiCorp Vault (Multi-Auth) card, which provisions, use this policy instead. Lumos reads auth/token/lookup-self to validate the credential, so a policy without it fails at Connect. Lumos also creates entities with POST /identity/entity:
      For more information, see HashiCorp’s documentation on Vault policies.
  3. Gather Hostname The hostname of the HashiCorp Vault’s REST API. This is the URL Lumos uses to connect to the Vault API. You can find this in Vault server configuration under ‘Api Address’. For example, if the API address is ‘https://vault.example.com:8200’, the hostname is ‘vault.example.com:8200’. Don’t include the http protocol.
Phase 2: Connect in Lumos
  1. Find the HashiCorp Vault or HashiCorp Vault (Multi-Auth) card in your Lumos integrations (reconnect an existing card or add a new one).
  2. Enter the Hostname from Phase 1, without https://.
  3. Enter the credential. On the standard card, paste it in Token. On the Multi-Auth card, choose the method and enter the Token, the Username and Password, or the Role ID and Secret ID.
  4. Click Connect. Lumos saves the connection only if it can reach Vault and the credential authenticates.
Connecting or reconnecting the integration starts a sync right away, and your Vault entities, groups, and policies appear in Lumos when it finishes. After that, Lumos syncs on its regular integration sync schedule. To refresh sooner, see Triggering Syncs Deep Dive.

Troubleshooting

Connect fails right away. Check the Hostname. Lumos adds https:// and /v1 itself, so enter only the host and port (for example vault.example.com:8200). A hostname that includes https:// doesn’t resolve. Connect fails with a valid hostname. The credential didn’t authenticate. Confirm the token hasn’t expired or been revoked, or for AppRole that the Role ID and Secret ID are current, then reconnect. Connected, but entities, groups, or policies are missing. The credential’s policy is missing one of the paths above. Add the missing path with at least read and list, then run a sync. If the connection still fails, contact Lumos Support at support@lumos.com with the error shown on the card.