Learning about Harhicorp Boundary.
Requirements:
- Docker
- Docker-compose
- Start boundary
make local-docker
- Stop boundary
make local-docker-stop
- Run terraform to create boundary resources
cd terraform
terraform apply
- Clean boundary
make local-docker-down
- Check admin password
./boundary_printh.sh
- Login via UI
a) Go to URL: http://localhost:9200
b) Use admin
creds from point 1
- Login via CLI (using pass from point 1)
boundary authenticate password -auth-method-id=${auth_method_id} -login-name=admin -password=${password}
- Login to Postgresql DB
docker exec -it ${docker_postgresql_id} /bin/bash -c "psql -U admin -d postgres"
- Checking config
docker exec -it ${docker_postgresql_id} /bin/bash -c "cat /var/lib/postgresql/data/pg_hba.conf"
- Login as admin
/boundary_admin_login.sh
- Check auth-method-ids for org
boundary auth-methods list -recursive
- Login to org as admin
boundary authenticate password --auth-method-id=ampw_jTTFgLyHG3 --login-name=bms -password=password
- Check ID of scope
core_infra
for which target systems are defined
boundary scopes list -recursive
- List available target systems for a scope
boundary targets list -scope-id=p_QLeGM4fxVt
- Login to target system
a) Make a HTTP request to Nginx
boundary connect -target-id ttcp_p0xw32kiiA --listen-port 8888 -exec curl -- localhost:8888
b) connect to Postgres database (db: bms, password: pass)
boundary connect -target-id ttcp_xziBUbWQsN --listen-port 5532 -exec psql -- -U bms_admin -d bms -p 5532 -h localhost
- Install
brew install hashicorp-boundary-desktop
- Start boundary
boundary dev
- Login as dev admin
boundary authenticate password -auth-method-id=ampw_1234567890 -login-name=admin -password=password