Aller au contenu principal

Credentials, identifiers and resource boundaries

Resource model​

A developer account owns or joins workspaces. A workspace contains databases. A database has engine credentials, users, backups, schedules and metrics. The workspace owner’s plan controls resource quotas; some features also check the acting developer’s plan.

A Redis “database” is a logical namespace on a shared Redis service. Its ACL limits keys to a prefix; it is not a dedicated Redis server or a freely selectable database number. Use database 0 from the supplied URI and the exact returned key_prefix.

Use the right credential​

CredentialUsed forWhere it belongs
Dashboard login/sessionHuman account and resource managementSigned-in Lordbase browser session
Developer access token (lb_pat_…)Scoped management API automationYour server-side automation secret store
Database username/passwordNative PostgreSQL, Redis or MongoDB connectionsYour application server’s secret configuration

The management API uses Authorization: Bearer for token authentication. Do not substitute a database password or a SyAuth credential. Native drivers use database credentials and do not send Lordbase management headers.

Keep these identifiers separate​

ValueExample/shapeMeaning
workspace_idUUIDWorkspace resource; required in editor query strings
database_idUUIDResource ID in management URLs
db_name / connection databaseGenerated native namePostgreSQL database or MongoDB authentication/data database
display_nameHuman-readable labelUI label; not a connection identifier
Database user idUUIDUser resource for management URLs
Database usernameEngine login nameIncludes a generated prefix; copy exactly
Member idUUIDMembership record for role changes/removal
Member user_idAccount identifierDeveloper account; not the membership record ID
Backup/schedule/token idUUIDThe corresponding management resource

States matter​

Databases can be creating, active, paused, error or deleted. Connections need an active database even though connection details are also readable while paused. List endpoints normally hide failed/deleted database records; retain any failure response ID for diagnosis.

Backup states are separate from database states. A backup creation response means a job exists; only completed indicates that job finished. It still takes a successful restore test to demonstrate recovery.