Code Monkey home page Code Monkey logo

hashicorp-boundary's Introduction

hashicorp-boundary

Learning about Harhicorp Boundary.

Requirements:

  • Docker
  • Docker-compose

Local development

  1. Start boundary
make local-docker
  1. Stop boundary
make local-docker-stop
  1. Run terraform to create boundary resources
cd terraform
terraform apply
  1. Clean boundary
make local-docker-down

Login to boundary

  1. Check admin password
./boundary_printh.sh
  1. Login via UI

a) Go to URL: http://localhost:9200

b) Use admin creds from point 1

  1. Login via CLI (using pass from point 1)
boundary authenticate password -auth-method-id=${auth_method_id} -login-name=admin -password=${password}

Postgresql

  1. Login to Postgresql DB
docker exec -it ${docker_postgresql_id} /bin/bash -c  "psql -U admin -d postgres"
  1. Checking config
docker exec -it ${docker_postgresql_id} /bin/bash -c "cat /var/lib/postgresql/data/pg_hba.conf"

Login to target system via boundary

  1. Login as admin
/boundary_admin_login.sh
  1. Check auth-method-ids for org
boundary auth-methods list -recursive
  1. Login to org as admin
boundary authenticate password --auth-method-id=ampw_jTTFgLyHG3 --login-name=bms -password=password
  1. Check ID of scope core_infra for which target systems are defined
boundary scopes list -recursive
  1. List available target systems for a scope
boundary targets list -scope-id=p_QLeGM4fxVt
  1. 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

Boundary - installing locally using brew

  1. Install
brew install hashicorp-boundary-desktop
  1. Start boundary
boundary dev
  1. Login as dev admin
boundary authenticate password -auth-method-id=ampw_1234567890 -login-name=admin -password=password

Docs

hashicorp-boundary's People

Contributors

m-wrona avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.