[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71CQ60NRFQ8M2YYF5VJ0BB6":3,"skill-same:01M71CQ60NRFQ8M2YYF5VJ0BB6":89},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":62,"commitSha":63,"skillDirectory":64,"forksCount":14,"repositoryHtmlUrl":65,"repositoryHomepageUrl":6,"ownerHtmlUrl":66,"ownerBlogUrl":6,"ownerDescription":67,"updatedAt":68,"install":69,"resources":82},"01M71CQ60NRFQ8M2YYF5VJ0BB6","zerotrust-boundary-extract",null,"Implement HashiCorp Boundary for identity-aware zero trust infrastructure access management with dynamic credential brokering, session recording, and Vault integration.","DCx7C5\u002Fai-marketplace","DCx7C5","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42419559?v=4","01M71C01G2AZV3NTNGWAWSHJPP","DC","01M71C01GQW6G50S2BYMS7PP3E",0,"MIT","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fzerotrust\u002Fboundary\u002Fextract\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"boundary","extract","zerotrust boundary extract","infrastructure","sonnet","identity","zero trust","t1003","read","zero-trust","session-recording","privileged-access","just-in-time","just-in-time-access","architecture","Bash","access","cybersecurity","time","recording","2026-11-10 10:12:30",false,"---\nname: zerotrust-boundary-extract\ndescription: Implement HashiCorp Boundary for identity-aware zero trust infrastructure access management with dynamic credential brokering, session recording, and Vault integration.\ndomain: cybersecurity\nsubdomain: zero-trust-architecture\ntags:\n- zero-trust\n- hashicorp\n- boundary\n- privileged-access\n- vault\n- identity-aware-proxy\n- session-recording\n- just-in-time-access\nnist_csf:\n- PR.AA-01\n- PR.AA-05\n- PR.IR-01\n- GV.PO-01\nmodel: sonnet\nmaxTurns: 20\ntools: [Read, Bash, Glob, Grep]\nmitre_attack:\n- T1003\ncapec: []\n---\n\n# Implementing Zero Trust with HashiCorp Boundary\n\n## Overview\n\nHashiCorp 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\u002FLDAP authentication, and manages access through a hierarchical scope model of organizations and projects.\n\n\n## When to Use\n\n- When deploying or configuring implementing zero trust with hashicorp boundary capabilities in your environment\n- When establishing security controls aligned to compliance requirements\n- When building or improving security architecture for this domain\n- When conducting security assessments that require this implementation\n\n## Prerequisites\n\n- HashiCorp Boundary server (self-hosted or HCP Boundary)\n- HashiCorp Vault (for credential brokering)\n- Identity provider supporting OIDC (Okta, Azure AD, Auth0)\n- PostgreSQL database for Boundary's backend\n- TLS certificates for secure communication\n- Understanding of PKI and X.509 certificate management\n\n## Architecture\n\n```\n                    Identity Provider (OIDC)\n                           |\n                    Authentication\n                           |\n                  +--------+--------+\n                  |   Boundary      |\n                  |   Controller    |\n                  |  (Control Plane)|\n                  +--------+--------+\n                           |\n              +------------+------------+\n              |                         |\n     +--------+--------+      +--------+--------+\n     | Boundary Worker |      | Boundary Worker |\n     | (Data Plane)    |      | (Data Plane)    |\n     +--------+--------+      +--------+--------+\n              |                         |\n     +--------+--------+      +--------+--------+\n     |  Target Hosts   |      |  Target Hosts   |\n     |  (SSH, RDP,     |      |  (Databases,    |\n     |   K8s, HTTP)    |      |   APIs)         |\n     +-----------------+      +-----------------+\n\n     Vault (Credential Brokering)\n     - Dynamic database credentials\n     - SSH certificate signing\n     - Credential libraries\n```\n\n## Installation and Configuration\n\n### Boundary Server Setup\n\n```bash\n# Install Boundary\ncurl -fsSL https:\u002F\u002Fapt.releases.hashicorp.com\u002Fgpg | sudo apt-key add -\nsudo apt-add-repository \"deb [arch=amd64] https:\u002F\u002Fapt.releases.hashicorp.com $(lsb_release -cs) main\"\nsudo apt-get update && sudo apt-get install boundary\n\n# Initialize the database\nboundary database init \\\n  -config=\u002Fetc\u002Fboundary\u002Fcontroller.hcl\n\n# Start the controller\nboundary server -config=\u002Fetc\u002Fboundary\u002Fcontroller.hcl\n```\n\n### Controller Configuration\n\n```hcl\n# \u002Fetc\u002Fboundary\u002Fcontroller.hcl\ncontroller {\n  name = \"boundary-controller-1\"\n  description = \"Primary Boundary Controller\"\n  database {\n    url = \"postgresql:\u002F\u002Fboundary:password@localhost:5432\u002Fboundary?sslmode=require\"\n  }\n  public_cluster_addr = \"boundary.example.com\"\n}\n\nlistener \"tcp\" {\n  address = \"0.0.0.0:9200\"\n  purpose = \"api\"\n  tls_cert_file = \"\u002Fetc\u002Fboundary\u002Ftls\u002Fcert.pem\"\n  tls_key_file  = \"\u002Fetc\u002Fboundary\u002Ftls\u002Fkey.pem\"\n}\n\nlistener \"tcp\" {\n  address = \"0.0.0.0:9201\"\n  purpose = \"cluster\"\n  tls_cert_file = \"\u002Fetc\u002Fboundary\u002Ftls\u002Fcert.pem\"\n  tls_key_file  = \"\u002Fetc\u002Fboundary\u002Ftls\u002Fkey.pem\"\n}\n\nkms \"aead\" {\n  purpose = \"root\"\n  aead_type = \"aes-gcm\"\n  key = \"sP1fnF5Xz85RrXM...\"  # Use Vault Transit in production\n  key_id = \"global_root\"\n}\n\nkms \"aead\" {\n  purpose = \"worker-auth\"\n  aead_type = \"aes-gcm\"\n  key = \"8fZBjCUfN0TzjEG...\"\n  key_id = \"global_worker-auth\"\n}\n\nkms \"aead\" {\n  purpose = \"recovery\"\n  aead_type = \"aes-gcm\"\n  key = \"8fZBjCUfN0TzjEG...\"\n  key_id = \"global_recovery\"\n}\n```\n\n### Worker Configuration\n\n```hcl\n# \u002Fetc\u002Fboundary\u002Fworker.hcl\nworker {\n  name = \"boundary-worker-1\"\n  description = \"Worker in production VPC\"\n  public_addr = \"worker1.example.com\"\n\n  controllers = [\n    \"boundary.example.com:9201\"\n  ]\n\n  tags {\n    type = [\"production\"]\n    region = [\"us-east-1\"]\n  }\n}\n\nlistener \"tcp\" {\n  address = \"0.0.0.0:9202\"\n  purpose = \"proxy\"\n}\n\nkms \"aead\" {\n  purpose = \"worker-auth\"\n  aead_type = \"aes-gcm\"\n  key = \"8fZBjCUfN0TzjEG...\"\n  key_id = \"global_worker-auth\"\n}\n```\n\n## Terraform Configuration\n\n### Scope and Auth Configuration\n\n```hcl\n# main.tf - Boundary resources via Terraform\nterraform {\n  required_providers {\n    boundary = {\n      source  = \"hashicorp\u002Fboundary\"\n      version = \"~> 1.1\"\n    }\n  }\n}\n\nprovider \"boundary\" {\n  addr             = \"https:\u002F\u002Fboundary.example.com:9200\"\n  recovery_kms_hcl = file(\"recovery_kms.hcl\")\n}\n\n# Organization scope\nresource \"boundary_scope\" \"org\" {\n  scope_id                 = \"global\"\n  name                     = \"production-org\"\n  description              = \"Production organization scope\"\n  auto_create_admin_role   = true\n  auto_create_default_role = true\n}\n\n# Project scope\nresource \"boundary_scope\" \"production\" {\n  name                     = \"production\"\n  description              = \"Production infrastructure project\"\n  scope_id                 = boundary_scope.org.id\n  auto_create_admin_role   = true\n  auto_create_default_role = true\n}\n\n# OIDC Auth Method (Okta example)\nresource \"boundary_auth_method_oidc\" \"okta\" {\n  scope_id               = boundary_scope.org.id\n  name                   = \"okta\"\n  description            = \"Okta OIDC authentication\"\n  issuer                 = \"https:\u002F\u002Fcompany.okta.com\u002Foauth2\u002Fdefault\"\n  client_id              = var.okta_client_id\n  client_secret          = var.okta_client_secret\n  signing_algorithms     = [\"RS256\"]\n  api_url_prefix         = \"https:\u002F\u002Fboundary.example.com:9200\"\n  claims_scopes          = [\"groups\"]\n  account_claim_maps     = [\"oid=sub\"]\n  is_primary_for_scope   = true\n}\n\n# Managed group for auto-assignment\nresource \"boundary_managed_group\" \"sre_team\" {\n  auth_method_id = boundary_auth_method_oidc.okta.id\n  name           = \"sre-team\"\n  description    = \"SRE team members from Okta\"\n  filter         = \"\\\"sre-team\\\" in \\\"\u002Ftoken\u002Fgroups\\\"\"\n}\n\nresource \"boundary_managed_group\" \"dev_team\" {\n  auth_method_id = boundary_auth_method_oidc.okta.id\n  name           = \"dev-team\"\n  description    = \"Development team from Okta\"\n  filter         = \"\\\"dev-team\\\" in \\\"\u002Ftoken\u002Fgroups\\\"\"\n}\n```\n\n### Host Catalogs and Targets\n\n```hcl\n# Static host catalog for known infrastructure\nresource \"boundary_host_catalog_static\" \"production_servers\" {\n  name     = \"production-servers\"\n  scope_id = boundary_scope.production.id\n}\n\nresource \"boundary_host_static\" \"web_server\" {\n  name            = \"web-server-1\"\n  host_catalog_id = boundary_host_catalog_static.production_servers.id\n  address         = \"10.0.1.10\"\n}\n\nresource \"boundary_host_static\" \"db_server\" {\n  name            = \"db-server-1\"\n  host_catalog_id = boundary_host_catalog_static.production_servers.id\n  address         = \"10.0.2.20\"\n}\n\n# Host set grouping\nresource \"boundary_host_set_static\" \"web_servers\" {\n  name            = \"web-servers\"\n  host_catalog_id = boundary_host_catalog_static.production_servers.id\n  host_ids        = [boundary_host_static.web_server.id]\n}\n\nresource \"boundary_host_set_static\" \"db_servers\" {\n  name            = \"database-servers\"\n  host_catalog_id = boundary_host_catalog_static.production_servers.id\n  host_ids        = [boundary_host_static.db_server.id]\n}\n\n# SSH target\nresource \"boundary_target\" \"ssh_production\" {\n  name         = \"ssh-production-servers\"\n  description  = \"SSH access to production servers\"\n  type         = \"ssh\"\n  scope_id     = boundary_scope.production.id\n  default_port = 22\n\n  host_source_ids = [\n    boundary_host_set_static.web_servers.id\n  ]\n\n  session_max_seconds          = 3600  # 1 hour max session\n  session_connection_limit     = 1\n  enable_session_recording     = true\n  storage_bucket_id            = boundary_storage_bucket.sessions.id\n\n  injected_application_credential_source_ids = [\n    boundary_credential_library_vault_ssh_certificate.ssh_cert.id\n  ]\n}\n\n# Database target with Vault credential brokering\nresource \"boundary_target\" \"postgres_production\" {\n  name         = \"postgres-production\"\n  description  = \"PostgreSQL production database\"\n  type         = \"tcp\"\n  scope_id     = boundary_scope.production.id\n  default_port = 5432\n\n  host_source_ids = [\n    boundary_host_set_static.db_servers.id\n  ]\n\n  session_max_seconds      = 1800  # 30 min max\n  session_connection_limit = 5\n\n  brokered_credential_source_ids = [\n    boundary_credential_library_vault.postgres_creds.id\n  ]\n}\n```\n\n### Vault Integration for Credential Brokering\n\n```hcl\n# Vault credential store\nresource \"boundary_credential_store_vault\" \"vault\" {\n  name        = \"vault-store\"\n  scope_id    = boundary_scope.production.id\n  address     = \"https:\u002F\u002Fvault.example.com:8200\"\n  token       = var.vault_token\n  namespace   = \"production\"\n}\n\n# Dynamic database credentials from Vault\nresource \"boundary_credential_library_vault\" \"postgres_creds\" {\n  name                = \"postgres-dynamic-creds\"\n  credential_store_id = boundary_credential_store_vault.vault.id\n  path                = \"database\u002Fcreds\u002Freadonly\"\n  http_method         = \"GET\"\n  credential_type     = \"username_password\"\n}\n\n# SSH certificate signing via Vault\nresource \"boundary_credential_library_vault_ssh_certificate\" \"ssh_cert\" {\n  name                = \"ssh-certificate\"\n  credential_store_id = boundary_credential_store_vault.vault.id\n  path                = \"ssh-client-signer\u002Fsign\u002Fproduction\"\n  username            = \"admin\"\n  key_type            = \"ed25519\"\n  key_bits            = 256\n  extensions = {\n    \"permit-pty\" = \"\"\n  }\n}\n\n# Session recording storage\nresource \"boundary_storage_bucket\" \"sessions\" {\n  name        = \"session-recordings\"\n  scope_id    = \"global\"\n  plugin_name = \"aws\"\n  bucket_name = \"boundary-session-recordings\"\n  attributes_json = jsonencode({\n    \"region\"                      = \"us-east-1\"\n    \"disable_credential_rotation\" = true\n  })\n  secrets_json = jsonencode({\n    \"access_key_id\"     = var.aws_access_key\n    \"secret_access_key\" = var.aws_secret_key\n  })\n}\n```\n\n### Role-Based Access Control\n\n```hcl\n# SRE team role - full production access\nresource \"boundary_role\" \"sre_production\" {\n  name          = \"sre-production-access\"\n  scope_id      = boundary_scope.production.id\n  grant_strings = [\n    \"ids=*;type=target;actions=list,read,authorize-session\",\n    \"ids=*;type=session;actions=list,read,cancel\",\n    \"ids=*;type=host;actions=list,read\",\n  ]\n  principal_ids = [\n    boundary_managed_group.sre_team.id\n  ]\n}\n\n# Dev team role - limited access\nresource \"boundary_role\" \"dev_staging\" {\n  name          = \"dev-staging-access\"\n  scope_id      = boundary_scope.production.id\n  grant_strings = [\n    \"ids=${boundary_target.ssh_production.id};type=target;actions=read,authorize-session\",\n  ]\n  principal_ids = [\n    boundary_managed_group.dev_team.id\n  ]\n}\n```\n\n## Connecting to Targets\n\n```bash\n# Authenticate via OIDC\nboundary authenticate oidc \\\n  -auth-method-id amoidc_xxxxx\n\n# List available targets\nboundary targets list -scope-id p_xxxxx\n\n# Connect to SSH target (credentials injected by Vault)\nboundary connect ssh \\\n  -target-id ttcp_xxxxx\n\n# Connect to database (credentials brokered by Vault)\nboundary connect postgres \\\n  -target-id ttcp_xxxxx \\\n  -dbname production\n\n# Use Boundary Desktop client for GUI access\n# Download from: https:\u002F\u002Fdeveloper.hashicorp.com\u002Fboundary\u002Finstall\n```\n\n## Session Recording and Auditing\n\n```bash\n# List session recordings\nboundary session-recordings list \\\n  -scope-id p_xxxxx\n\n# Download session recording for review\nboundary session-recordings download \\\n  -id sr_xxxxx \\\n  -output recording.cast\n\n# Play back with asciinema\nasciinema play recording.cast\n```\n\n## Dynamic Host Catalogs\n\n```hcl\n# AWS dynamic host catalog - auto-discovers EC2 instances\nresource \"boundary_host_catalog_plugin\" \"aws_catalog\" {\n  scope_id    = boundary_scope.production.id\n  name        = \"aws-production\"\n  plugin_name = \"aws\"\n\n  attributes_json = jsonencode({\n    \"region\"                      = \"us-east-1\"\n    \"disable_credential_rotation\" = true\n  })\n\n  secrets_json = jsonencode({\n    \"access_key_id\"     = var.aws_access_key\n    \"secret_access_key\" = var.aws_secret_key\n  })\n}\n\nresource \"boundary_host_set_plugin\" \"web_tier\" {\n  host_catalog_id = boundary_host_catalog_plugin.aws_catalog.id\n  name            = \"web-tier\"\n  attributes_json = jsonencode({\n    \"filters\" = [\n      \"tag:Environment=production\",\n      \"tag:Tier=web\"\n    ]\n  })\n}\n```\n\n## Security Best Practices\n\n1. **Use Vault KMS for key management** instead of static AEAD keys in production\n2. **Enable session recording** for all privileged access targets\n3. **Set session time limits** appropriate to the resource sensitivity\n4. **Use OIDC managed groups** for automatic role assignment from IdP\n5. **Deploy multi-hop workers** for accessing resources across network boundaries\n6. **Rotate Vault tokens** used by credential stores regularly\n7. **Enable audit logging** on both controllers and workers\n8. **Use credential injection** (SSH certificates) over brokering when possible\n9. **Implement least-privilege grants** -- avoid wildcard permissions\n10. **Review session recordings** regularly for compliance and incident response\n\n## References\n\n- [HashiCorp Boundary Documentation](https:\u002F\u002Fdeveloper.hashicorp.com\u002Fboundary\u002Fdocs)\n- [Boundary and Vault Integration](https:\u002F\u002Fdeveloper.hashicorp.com\u002Fboundary\u002Fdocs\u002Fconcepts\u002Fcredential-management)\n- [From Zero to Hero with Boundary](https:\u002F\u002Fwww.hashicorp.com\u002Fen\u002Fblog\u002Ffrom-zero-to-hero-hashicorp-boundary)\n- [Boundary Terraform Provider](https:\u002F\u002Fregistry.terraform.io\u002Fproviders\u002Fhashicorp\u002Fboundary\u002Flatest\u002Fdocs)\n- [Zero Trust with Vault, Consul, and Boundary](https:\u002F\u002Fwww.hashicorp.com\u002Fen\u002Fresources\u002Fzero-trust-security-with-hashicorp-vault-consul-and-boundary)\n","# Implementing Zero Trust with HashiCorp Boundary\n\n## Overview\n\nHashiCorp 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\u002FLDAP authentication, and manages access through a hierarchical scope model of organizations and projects.\n\n\n## When to Use\n\n- When deploying or configuring implementing zero trust with hashicorp boundary capabilities in your environment\n- When establishing security controls aligned to compliance requirements\n- When building or improving security architecture for this domain\n- When conducting security assessments that require this implementation\n\n## Prerequisites\n\n- HashiCorp Boundary server (self-hosted or HCP Boundary)\n- HashiCorp Vault (for credential brokering)\n- Identity provider supporting OIDC (Okta, Azure AD, Auth0)\n- PostgreSQL database for Boundary's backend\n- TLS certificates for secure communication\n- Understanding of PKI and X.509 certificate management\n\n## Architecture\n\n```\n                    Identity Provider (OIDC)\n                           |\n                    Authentication\n                           |\n                  +--------+--------+\n                  |   Boundary      |\n                  |   Controller    |\n                  |  (Control Plane)|\n                  +--------+--------+\n                           |\n              +------------+------------+\n              |                         |\n     +--------+--------+      +--------+--------+\n     | Boundary Worker |      | Boundary Worker |\n     | (Data Plane)    |      | (Data Plane)    |\n     +--------+--------+      +--------+--------+\n              |                         |\n     +--------+--------+      +--------+--------+\n     |  Target Hosts   |      |  Target Hosts   |\n     |  (SSH, RDP,     |      |  (Databases,    |\n     |   K8s, HTTP)    |      |   APIs)         |\n     +-----------------+      +-----------------+\n\n     Vault (Credential Brokering)\n     - Dynamic database credentials\n     - SSH certificate signing\n     - Credential libraries\n```\n\n## Installation and Configuration\n\n### Boundary Server Setup\n\n```bash\n# Install Boundary\ncurl -fsSL https:\u002F\u002Fapt.releases.hashicorp.com\u002Fgpg | sudo apt-key add -\nsudo apt-add-repository \"deb [arch=amd64] https:\u002F\u002Fapt.releases.hashicorp.com $(lsb_release -cs) main\"\nsudo apt-get update && sudo apt-get install boundary\n\n# Initialize the database\nboundary database init \\\n  -config=\u002Fetc\u002Fboundary\u002Fcontroller.hcl\n\n# Start the controller\nboundary server -config=\u002Fetc\u002Fboundary\u002Fcontroller.hcl\n```\n\n### Controller Configuration\n\n```hcl\n# \u002Fetc\u002Fboundary\u002Fcontroller.hcl\ncontroller {\n  name = \"boundary-controller-1\"\n  description = \"Primary Boundary Controller\"\n  database {\n    url = \"postgresql:\u002F\u002Fboundary:password@localhost:5432\u002Fboundary?sslmode=require\"\n  }\n  public_cluster_addr = \"boundary.example.com\"\n}\n\nlistener \"tcp\" {\n  address = \"0.0.0.0:9200\"\n  purpose = \"api\"\n  tls_cert_file = \"\u002Fetc\u002Fboundary\u002Ftls\u002Fcert.pem\"\n  tls_key_file  = \"\u002Fetc\u002Fboundary\u002Ftls\u002Fkey.pem\"\n}\n\nlistener \"tcp\" {\n  address = \"0.0.0.0:9201\"\n  purpose = \"cluster\"\n  tls_cert_file = \"\u002Fetc\u002Fboundary\u002Ftls\u002Fcert.pem\"\n  tls_key_file  = \"\u002Fetc\u002Fboundary\u002Ftls\u002Fkey.pem\"\n}\n\nkms \"aead\" {\n  purpose = \"root\"\n  aead_type = \"aes-gcm\"\n  key = \"sP1fnF5Xz85RrXM...\"  # Use Vault Transit in production\n  key_id = \"global_root\"\n}\n\nkms \"aead\" {\n  purpose = \"worker-auth\"\n  aead_type = \"aes-gcm\"\n  key = \"8fZBjCUfN0TzjEG...\"\n  key_id = \"global_worker-auth\"\n}\n\nkms \"aead\" {\n  purpose = \"recovery\"\n  aead_type = \"aes-gcm\"\n  key = \"8fZBjCUfN0TzjEG...\"\n  key_id = \"global_recovery\"\n}\n```\n\n### Worker Configuration\n\n```hcl\n# \u002Fetc\u002Fboundary\u002Fworker.hcl\nworker {\n  name = \"boundary-worker-1\"\n  description = \"Worker in production VPC\"\n  public_addr = \"worker1.example.com\"\n\n  controllers = [\n    \"boundary.example.com:9201\"\n  ]\n\n  tags {\n    type = [\"production\"]\n    region = [\"us-east-1\"]\n  }\n}\n\nlistener \"tcp\" {\n  address = \"0.0.0.0:9202\"\n  purpose = \"proxy\"\n}\n\nkms \"aead\" {\n  purpose = \"worker-auth\"\n  aead_type = \"aes-gcm\"\n  key = \"8fZBjCUfN0TzjEG...\"\n  key_id = \"global_worker-auth\"\n}\n```\n\n## Terraform Configuration\n\n### Scope and Auth Configuration\n\n```hcl\n# main.tf - Boundary resources via Terraform\nterraform {\n  required_providers {\n    boundary = {\n      source  = \"hashicorp\u002Fboundary\"\n      version = \"~> 1.1\"\n    }\n  }\n}\n\nprovider \"boundary\" {\n  addr             = \"https:\u002F\u002Fboundary.example.com:9200\"\n  recovery_kms_hcl = file(\"recovery_kms.hcl\")\n}\n\n# Organization scope\nresource \"boundary_scope\" \"org\" {\n  scope_id                 = \"global\"\n  name                     = \"production-org\"\n  description              = \"Production organization scope\"\n  auto_create_admin_role   = true\n  auto_create_default_role = true\n}\n\n# Project scope\nresource \"boundary_scope\" \"production\" {\n  name                     = \"production\"\n  description              = \"Production infrastructure project\"\n  scope_id                 = boundary_scope.org.id\n  auto_create_admin_role   = true\n  auto_create_default_role = true\n}\n\n# OIDC Auth Method (Okta example)\nresource \"boundary_auth_method_oidc\" \"okta\" {\n  scope_id               = boundary_scope.org.id\n  name                   = \"okta\"\n  description            = \"Okta OIDC authentication\"\n  issuer                 = \"https:\u002F\u002Fcompany.okta.com\u002Foauth2\u002Fdefault\"\n  client_id              = var.okta_client_id\n  client_secret          = var.okta_client_secret\n  signing_algorithms     = [\"RS256\"]\n  api_url_prefix         = \"https:\u002F\u002Fboundary.example.com:9200\"\n  claims_scopes          = [\"groups\"]\n  account_claim_maps     = [\"oid=sub\"]\n  is_primary_for_scope   = true\n}\n\n# Managed group for auto-assignment\nresource \"boundary_managed_group\" \"sre_team\" {\n  auth_method_id = boundary_auth_method_oidc.okta.id\n  name           = \"sre-team\"\n  description    = \"SRE team members from Okta\"\n  filter         = \"\\\"sre-team\\\" in \\\"\u002Ftoken\u002Fgroups\\\"\"\n}\n\nresource \"boundary_managed_group\" \"dev_team\" {\n  auth_method_id = boundary_auth_method_oidc.okta.id\n  name           = \"dev-team\"\n  description    = \"Development team from Okta\"\n  filter         = \"\\\"dev-team\\\" in \\\"\u002Ftoken\u002Fgroups\\\"\"\n}\n```\n\n### Host Catalogs and Targets\n\n```hcl\n# Static host catalog for known infrastructure\nresource \"boundary_host_catalog_static\" \"production_servers\" {\n  name     = \"production-servers\"\n  scope_id = boundary_scope.production.id\n}\n\nresource \"boundary_host_static\" \"web_server\" {\n  name            = \"web-server-1\"\n  host_catalog_id = boundary_host_catalog_static.production_servers.id\n  address         = \"10.0.1.10\"\n}\n\nresource \"boundary_host_static\" \"db_server\" {\n  name            = \"db-server-1\"\n  host_catalog_id = boundary_host_catalog_static.production_servers.id\n  address         = \"10.0.2.20\"\n}\n\n# Host set grouping\nresource \"boundary_host_set_static\" \"web_servers\" {\n  name            = \"web-servers\"\n  host_catalog_id = boundary_host_catalog_static.production_servers.id\n  host_ids        = [boundary_host_static.web_server.id]\n}\n\nresource \"boundary_host_set_static\" \"db_servers\" {\n  name            = \"database-servers\"\n  host_catalog_id = boundary_host_catalog_static.production_servers.id\n  host_ids        = [boundary_host_static.db_server.id]\n}\n\n# SSH target\nresource \"boundary_target\" \"ssh_production\" {\n  name         = \"ssh-production-servers\"\n  description  = \"SSH access to production servers\"\n  type         = \"ssh\"\n  scope_id     = boundary_scope.production.id\n  default_port = 22\n\n  host_source_ids = [\n    boundary_host_set_static.web_servers.id\n  ]\n\n  session_max_seconds          = 3600  # 1 hour max session\n  session_connection_limit     = 1\n  enable_session_recording     = true\n  storage_bucket_id            = boundary_storage_bucket.sessions.id\n\n  injected_application_credential_source_ids = [\n    boundary_credential_library_vault_ssh_certificate.ssh_cert.id\n  ]\n}\n\n# Database target with Vault credential brokering\nresource \"boundary_target\" \"postgres_production\" {\n  name         = \"postgres-production\"\n  description  = \"PostgreSQL production database\"\n  type         = \"tcp\"\n  scope_id     = boundary_scope.production.id\n  default_port = 5432\n\n  host_source_ids = [\n    boundary_host_set_static.db_servers.id\n  ]\n\n  session_max_seconds      = 1800  # 30 min max\n  session_connection_limit = 5\n\n  brokered_credential_source_ids = [\n    boundary_credential_library_vault.postgres_creds.id\n  ]\n}\n```\n\n### Vault Integration for Credential Brokering\n\n```hcl\n# Vault credential store\nresource \"boundary_credential_store_vault\" \"vault\" {\n  name        = \"vault-store\"\n  scope_id    = boundary_scope.production.id\n  address     = \"https:\u002F\u002Fvault.example.com:8200\"\n  token       = var.vault_token\n  namespace   = \"production\"\n}\n\n# Dynamic database credentials from Vault\nresource \"boundary_credential_library_vault\" \"postgres_creds\" {\n  name                = \"postgres-dynamic-creds\"\n  credential_store_id = boundary_credential_store_vault.vault.id\n  path                = \"database\u002Fcreds\u002Freadonly\"\n  http_method         = \"GET\"\n  credential_type     = \"username_password\"\n}\n\n# SSH certificate signing via Vault\nresource \"boundary_credential_library_vault_ssh_certificate\" \"ssh_cert\" {\n  name                = \"ssh-certificate\"\n  credential_store_id = boundary_credential_store_vault.vault.id\n  path                = \"ssh-client-signer\u002Fsign\u002Fproduction\"\n  username            = \"admin\"\n  key_type            = \"ed25519\"\n  key_bits            = 256\n  extensions = {\n    \"permit-pty\" = \"\"\n  }\n}\n\n# Session recording storage\nresource \"boundary_storage_bucket\" \"sessions\" {\n  name        = \"session-recordings\"\n  scope_id    = \"global\"\n  plugin_name = \"aws\"\n  bucket_name = \"boundary-session-recordings\"\n  attributes_json = jsonencode({\n    \"region\"                      = \"us-east-1\"\n    \"disable_credential_rotation\" = true\n  })\n  secrets_json = jsonencode({\n    \"access_key_id\"     = var.aws_access_key\n    \"secret_access_key\" = var.aws_secret_key\n  })\n}\n```\n\n### Role-Based Access Control\n\n```hcl\n# SRE team role - full production access\nresource \"boundary_role\" \"sre_production\" {\n  name          = \"sre-production-access\"\n  scope_id      = boundary_scope.production.id\n  grant_strings = [\n    \"ids=*;type=target;actions=list,read,authorize-session\",\n    \"ids=*;type=session;actions=list,read,cancel\",\n    \"ids=*;type=host;actions=list,read\",\n  ]\n  principal_ids = [\n    boundary_managed_group.sre_team.id\n  ]\n}\n\n# Dev team role - limited access\nresource \"boundary_role\" \"dev_staging\" {\n  name          = \"dev-staging-access\"\n  scope_id      = boundary_scope.production.id\n  grant_strings = [\n    \"ids=${boundary_target.ssh_production.id};type=target;actions=read,authorize-session\",\n  ]\n  principal_ids = [\n    boundary_managed_group.dev_team.id\n  ]\n}\n```\n\n## Connecting to Targets\n\n```bash\n# Authenticate via OIDC\nboundary authenticate oidc \\\n  -auth-method-id amoidc_xxxxx\n\n# List available targets\nboundary targets list -scope-id p_xxxxx\n\n# Connect to SSH target (credentials injected by Vault)\nboundary connect ssh \\\n  -target-id ttcp_xxxxx\n\n# Connect to database (credentials brokered by Vault)\nboundary connect postgres \\\n  -target-id ttcp_xxxxx \\\n  -dbname production\n\n# Use Boundary Desktop client for GUI access\n# Download from: https:\u002F\u002Fdeveloper.hashicorp.com\u002Fboundary\u002Finstall\n```\n\n## Session Recording and Auditing\n\n```bash\n# List session recordings\nboundary session-recordings list \\\n  -scope-id p_xxxxx\n\n# Download session recording for review\nboundary session-recordings download \\\n  -id sr_xxxxx \\\n  -output recording.cast\n\n# Play back with asciinema\nasciinema play recording.cast\n```\n\n## Dynamic Host Catalogs\n\n```hcl\n# AWS dynamic host catalog - auto-discovers EC2 instances\nresource \"boundary_host_catalog_plugin\" \"aws_catalog\" {\n  scope_id    = boundary_scope.production.id\n  name        = \"aws-production\"\n  plugin_name = \"aws\"\n\n  attributes_json = jsonencode({\n    \"region\"                      = \"us-east-1\"\n    \"disable_credential_rotation\" = true\n  })\n\n  secrets_json = jsonencode({\n    \"access_key_id\"     = var.aws_access_key\n    \"secret_access_key\" = var.aws_secret_key\n  })\n}\n\nresource \"boundary_host_set_plugin\" \"web_tier\" {\n  host_catalog_id = boundary_host_catalog_plugin.aws_catalog.id\n  name            = \"web-tier\"\n  attributes_json = jsonencode({\n    \"filters\" = [\n      \"tag:Environment=production\",\n      \"tag:Tier=web\"\n    ]\n  })\n}\n```\n\n## Security Best Practices\n\n1. **Use Vault KMS for key management** instead of static AEAD keys in production\n2. **Enable session recording** for all privileged access targets\n3. **Set session time limits** appropriate to the resource sensitivity\n4. **Use OIDC managed groups** for automatic role assignment from IdP\n5. **Deploy multi-hop workers** for accessing resources across network boundaries\n6. **Rotate Vault tokens** used by credential stores regularly\n7. **Enable audit logging** on both controllers and workers\n8. **Use credential injection** (SSH certificates) over brokering when possible\n9. **Implement least-privilege grants** -- avoid wildcard permissions\n10. **Review session recordings** regularly for compliance and incident response\n\n## References\n\n- [HashiCorp Boundary Documentation](https:\u002F\u002Fdeveloper.hashicorp.com\u002Fboundary\u002Fdocs)\n- [Boundary and Vault Integration](https:\u002F\u002Fdeveloper.hashicorp.com\u002Fboundary\u002Fdocs\u002Fconcepts\u002Fcredential-management)\n- [From Zero to Hero with Boundary](https:\u002F\u002Fwww.hashicorp.com\u002Fen\u002Fblog\u002Ffrom-zero-to-hero-hashicorp-boundary)\n- [Boundary Terraform Provider](https:\u002F\u002Fregistry.terraform.io\u002Fproviders\u002Fhashicorp\u002Fboundary\u002Flatest\u002Fdocs)\n- [Zero Trust with Vault, Consul, and Boundary](https:\u002F\u002Fwww.hashicorp.com\u002Fen\u002Fresources\u002Fzero-trust-security-with-hashicorp-vault-consul-and-boundary)\n",{"name":5,"tags":44,"capec":48,"model":23,"tools":49,"domain":36,"maxTurns":53,"nist_csf":54,"subdomain":59,"description":7,"mitre_attack":60},[28,45,19,30,46,47,29,32],"hashicorp","vault","identity-aware-proxy",[],[50,34,51,52],"Read","Glob","Grep",20,[55,56,57,58],"PR.AA-01","PR.AA-05","PR.IR-01","GV.PO-01","zero-trust-architecture",[61],"T1003","main","a91f1293287ffa9f4f1b8f486cd6e835a1568c84","skills\u002Fcloud\u002Fzerotrust\u002Fboundary\u002Fextract","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace","https:\u002F\u002Fgithub.com\u002FDCx7C5","#Python","2026-09-01 11:21:00",{"source":8,"skillName":5,"commands":70,"prompt":80,"zipAvailable":81},[71,74,77],{"tool":72,"command":73},"npx","npx skills add DCx7C5\u002Fai-marketplace --skill zerotrust-boundary-extract",{"tool":75,"command":76},"bunx","bunx skills add DCx7C5\u002Fai-marketplace --skill zerotrust-boundary-extract",{"tool":78,"command":79},"pnpm","pnpm dlx skills add DCx7C5\u002Fai-marketplace --skill zerotrust-boundary-extract","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fzerotrust\u002Fboundary\u002Fextract\u002FSKILL.md",true,[83],{"path":84,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":87,"sourceHtmlUrl":88},"index.json","REFERENCE","参考文档",657,"https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fzerotrust\u002Fboundary\u002Fextract\u002Findex.json",[90,100,125,146,166,188],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":94,"licenseFileUrl":95,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":99},"01M73MDK3NT5XHNYTQ5P5172V9","devel-jb-algorithmic-art","- Embed algorithms inline in the HTML artifact (don't create separate .","Apache-2.0","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":39},"01M71HAPZ01KQ30RKTB0FFSQ05","services-wmi-persistence-detect","Detect WMI event subscription persistence by enumerating ActiveScriptEventConsumer, CommandLineEventConsumer, and permanent subscriptions in the WMI repository.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fpersistence\u002Fdetect\u002FSKILL.md",[],[107,108,109,110,111,112,113,36,114,115,116,117,118,119,120,121,122,123,124],"services","detect","services wmi persistence detect","wmi","persistence","process-forensics","process","forensics","t1546.003","event-subscription","subscription","repository","commandline-consumer","subscriptions","event","activescript","cm","de",{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":39},"01M71HAK6JTTTS229T17WJMMCG","services-wmi-exec-exploit","Perform lateral movement across Windows networks using WMI-based remote execution techniques including Impacket wmiexec.py, CrackMapExec, and native WMI commands for stealthy post-exploitation during red team engagements.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fexec\u002Fexploit\u002FSKILL.md",[],[132,110,133,107,134,135,34,136,137,36,138,139,140,141,142,27,143,144,124,145],"exec","services wmi exec exploit","exploit","across","analysis","team","traffic","remote","crackmapexec","Impacket","lateral-movement","lateral movement","command","native",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":39},"01M71HAG6MHKNQV8KDZKMT4886","registry-artifact-extract","Extract and analyze Windows Registry hives to uncover user activity, installed software, autostart entries, and evidence of system compromise.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fregistry\u002Fartifact\u002Fextract\u002FSKILL.md",[],[20,153,154,155,156,23,157,158,159,160,27,124,161,162,136,163,34,36,164,165],"registry artifact extract","registry","artifact","digital-forensics","regripper","windows-registry","evidence-collection","software","uncover","analyze","collection","artifact-analysis","activity",{"skillNo":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":170,"categories":171,"keywords":172,"publishedAt":39},"01M71HACR4A8XTWTTSXK4124AA","processes-token-impersonate-detect","Detect Windows token impersonation and privilege abuse including SeImpersonatePrivilege exploitation via Potato attacks and token stealing techniques.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Ftoken\u002Fimpersonate\u002Fdetect\u002FSKILL.md",[],[173,174,175,108,36,176,123,177,178,179,112,124,180,181,182,183,184,185,186,187],"processes","token","processes token impersonate detect","techniques","escalation","windows","attacks","via","impersonation","potato","exploitation","printspoofer","token-impersonation","seimpersonate","privilege-escalation",{"skillNo":189,"name":190,"nameZh":6,"description":191,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":192,"categories":193,"keywords":194,"publishedAt":39},"01M71HAABSB4Z6QFSXEG00R4RK","processes-thread-injection-detect","Detect Windows thread injection techniques including CreateRemoteThread, QueueUserAPC, NtCreateThreadEx, and thread hijacking via process memory analysis.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Fthread\u002Finjection\u002Fdetect\u002FSKILL.md",[],[195,173,196,108,197,198,113,124,180,199,200,201,136,112,36,176,202,123,203,178],"thread","injection","processes thread injection detect","thread-injection","nt-api","apc-injection","api","process-injection","memory"]