Implement HashiCorp Boundary for identity-aware zero trust infrastructure access management with dynamic credential brokering, session recording, and Vault integration.
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Une commande directe contourne le prompt de vérification. Examinez la source avant de l'exécuter.
Implement HashiCorp Boundary for identity-aware zero trust infrastructure access management with dynamic credential brokering, session recording, and Vault integration.
HashiCorp Boundary is an identity-aware proxy that provides secure, zero trust access to infrastructure resources without traditional VPNs or direct network access. Boundary operates on a default-deny model -- users start with no access and must be explicitly granted permissions for specific resources. When integrated with HashiCorp Vault, Boundary can dynamically broker credentials, ensuring users never see or manage underlying secrets. This eliminates credential sprawl and enables just-in-time access with automatic credential revocation when sessions end. Boundary supports session recording for audit compliance, OIDC/LDAP authentication, and manages access through a hierarchical scope model of organizations and projects.
When to Use
When deploying or configuring implementing zero trust with hashicorp boundary capabilities in your environment
When establishing security controls aligned to compliance requirements
When building or improving security architecture for this domain
When conducting security assessments that require this implementation
Common Misconfigurations & Verification
Boundary only enforces zero trust if the target host cannot be reached except through a worker. Check for these:
Target reachable directly. If users can SSH/RDP/connect to the host's real IP (10.0.x.x) over the network, Boundary's credential brokering and session recording are optional - lock host firewalls/security groups so only Boundary workers reach the target port.
Wildcard grants. A role with ids=*;type=target;actions=authorize-session hands every user every target, defeating default-deny least privilege.
Static long-lived credentials instead of Vault brokering, so secrets persist after the session and never rotate.
Session recording enabled on the target but storage_bucket_id missing or unwritable, so nothing is actually captured.
Static AEAD keys in the controller HCL rather than Vault Transit KMS.
How to confirm: from a user host, attempt to connect to the target's real IP/port directly (bypassing boundary connect) and confirm it is refused. Authorize a session as a low-privilege managed group and verify it can reach only its scoped target, not others. Start a session, then confirm a recording actually lands in the storage bucket and that brokered Vault credentials are revoked when the session ends.
Prerequisites
HashiCorp Boundary server (self-hosted or HCP Boundary)
# SRE team role - full production access
resource "boundary_role" "sre_production" {
name = "sre-production-access"
scope_id = boundary_scope.production.id
grant_strings = [
"ids=*;type=target;actions=list,read,authorize-session",
"ids=*;type=session;actions=list,read,cancel",
"ids=*;type=host;actions=list,read",
]
principal_ids = [
boundary_managed_group.sre_team.id
]
}
# Dev team role - limited access
resource "boundary_role" "dev_staging" {
name = "dev-staging-access"
scope_id = boundary_scope.production.id
grant_strings = [
"ids=${boundary_target.ssh_production.id};type=target;actions=read,authorize-session",
]
principal_ids = [
boundary_managed_group.dev_team.id
]
}
Connecting to Targets
# Authenticate via OIDC
boundary authenticate oidc \
-auth-method-id amoidc_xxxxx
# List available targets
boundary targets list -scope-id p_xxxxx
# Connect to SSH target (credentials injected by Vault)
boundary connect ssh \
-target-id ttcp_xxxxx
# Connect to database (credentials brokered by Vault)
boundary connect postgres \
-target-id ttcp_xxxxx \
-dbname production
# Use Boundary Desktop client for GUI access# Download from: https://developer.hashicorp.com/boundary/install
Session Recording and Auditing
# List session recordings
boundary session-recordings list \
-scope-id p_xxxxx
# Download session recording for review
boundary session-recordings download \
-id sr_xxxxx \
-output recording.cast
# Play back with asciinema
asciinema play recording.cast