Unable to login with default user/password when running Boundary with systemd

Hi,

I was trying to run Boundary with systemd. What I did was following this example:

Here is my configuration file:

disable_mlock = true

controller {
  name = "demo-controller-1"
  description = "A controller for a demo!"

  database {
      url = "postgres://postgres:password@localhost:5432?sslmode=disable"
  }
}

listener "tcp" {
  address = "0.0.0.0"
  purpose = "api"
  tls_disable = true
}

listener "tcp" {
  address = "*.*.*.*"
  purpose = "cluster"
  tls_disable = true
}

kms "aead" {
  purpose = "root"
  aead_type = "aes-gcm"
  key = "***"
  key_id = "global_root"
}

kms "aead" {
  purpose = "worker-auth"
  aead_type = "aes-gcm"
  key = "***"
  key_id = "global_worker-auth"
}

kms "aead" {
  purpose = "recovery"
  aead_type = "aes-gcm"
  key = "***"
  key_id = "global_recovery"
}

After running the installation script, I was able to connect to the login console.
However, I can’t login with default administrator credential(“admin:password”) and neither can I find configuration for them in the document.

Is there any way to configure the administrator credential in configuration file?
I appreciate all your helps.

Thank you.

You need to specify a boundary database, like

"postgres://postgres:password@localhost:5432/boundary?sslmode=disable"

Then init the databas

/usr/local/bin/boundary database init -config /etc/your-config-file.hcl

When the init complets, it’ll give you some generated credentials such as admin.

2 Likes

Yes, you are right.

After setting the right DB path, I am now able to get login credential when I do:

/usr/local/bin/boundary database init -config /etc/your-config-file.hcl

Thanks a lot for the prompt reply! @pentiumoverdrive

1 Like