Skip to content

Empty doadmin password for new postgres cluster #750

@csandanov

Description

@csandanov

Hi,

I've recently noticed that I can no longer get doadmin user password when creating a new database server.

client := godo.NewClient(oauth2.NewClient(ctx, tokenSource))

client.Databases.Create(ctx, &godo.DatabaseCreateRequest{
		Name:       "testname",
		EngineSlug: "pg",
		Version:    "16",
		SizeSlug:   "db-s-1vcpu-1gb",
		Region:     "nyc1",
		NumNodes:   1,
	})

When the database server status is online I check database.Connection.Password and it's always empty. At the same time I can get the password from UI and using doctl.

My go version: go version go1.23.0 darwin/arm64
Tried with the latest sdk github.com/digitalocean/godo v1.128.0 but also didn't work with the old one. It used to work before.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions