First target website (localhost)

At some point a token has to be created for a PKI worker – one of these had to be done:

  • the worker started up and created its own token, and you then took that token to the admin GUI and approved the worker
  • you created the worker in the admin GUI before starting the worker process, and then took the configuration generated and started the worker with it

I think something else must have happened there though because you’re getting errors that don’t fit with the worker having not registered with the control plane yet. My best advice at this point is probably to start over from scratch. I wouldn’t mix OSS and HCP deployments either – start with one, make sure it works, then reset and go through the other. (Remember that the worker version needs to match the control plane version, and if you want to use the HCP-only features, your worker needs to be the Enterprise build for HCP Boundary 0.13, not the OSS build.)

Thanks for the feedback after i start from the scratch only using HCP Boundary i got error while following this guideline Access HCP Boundary | Boundary | HashiCorp Developer at the command boundary authenticate i got this error


can you help me with it ?

You need to install the pass app in order to use the default keyring for Linux or disable this behavior by setting -keyring-type to none.

Source: CLI | Boundary | HashiCorp Developer

Thank you for the reply after i install pass i got error code 1


can you help me with that and i have a question about your answer is there any side effect of setting -keyring-type to none and how to do it ?

Hi Gundar,

This is a flag you need to add to the end of the boundary authenticate command. You can validate details such as this with the -h or -help option like so:

boundary authenticate -h

Which then provides options available within the command:

  -keyring-type=<string>
      The type of keyring to use. Defaults to "auto" which will use the
      Windows credential manager, OSX keychain, or cross-platform password
      store depending on platform. Set to "none" to disable keyring
      functionality. Available types, depending on platform, are: "wincred",
      "keychain", "pass", and "secret-service". The default is auto. This can
      also be specified via the BOUNDARY_KEYRING_TYPE environment variable.

pass is a password manager that stores sensitive values in a password store. For info on the pass utility you can use the command man pass. Similarly if you want to know what the keyring function is, its man page can be accessed with man keyrings. Essentially, it is a way to cache security data/credentials/keys.

If you are not familiar with GPG, I would not recommend utilising it here unless there is a specific requirement.

Thank you for the reply but if i didn’t add the token the next step didn’t show BOUNDARY_ADMIN
below is the image from the tutorials


What makes the error exit status 1 in the previous pictures ?

BOUNDARY_ADMIN is in fact irrelevant for that tutorial.

The only thing you need to do is to export the variable BOUNDARY_TOKEN with the value of the token printed on the screen by boundary authenticate -keyring-type none (security tip: do not post your token publicly!)

Then follow the tutorial and append -token env://BOUNDARY_TOKEN to every shown boundary command.

3 Likes

Hello Gundar,

Hope you are doing well!

Actually, the BOUNDARY_ADMIN is an environment variable which holds the username you have defined as Admin upon creating the HCP Boundary cluster.

For further information you can refer to this guide (point 7).

Hope my reply is helpful to you!

1 Like

Thank you for the reply @macmiranda and @martinhristov90 right now i have problem with the worker for HCP Boundary. My target is Ubuntu machine inside of my vmware esxi. I use the config on the admin ui.
image

resulting with this error


any idea why this is happen ? i read in the document if i use cluster_id i didn’t need to specify the initial upstream.

Are you using the HCP-specific Boundary worker binary?

Nope i’m using the one in the admin ui

After i try to download the file in How-to Install HCP-specific Boundary Worker Binary – HashiCorp Help Center i got this error


should i delete the boundary file before installing that ?

Yes, but keep in mind what @omkensey said:

I’m not an HCP Boundary user by the way, so I’m basically researching on my own, something you could do as well.

Okay i understand for now thanks for the help so far. I will play with the OSS Boundary for now. Thank you @omkensey @macmiranda @conor-mccullough @martinhristov90 for the help from the beginning it help me a lot for understanding problem that i encountered.