Skip to content
Proud to collaborate with Microsoft for Startups

neon.roles.reset_password ​

Reset a Neon role's password and return the new password

Resets a role's password on a Neon branch and returns the new plaintext password.

Issues POST /projects/{neon_project_id}/branches/{neon_branch_id}/roles/{role_name}/reset_password. Neon generates a fresh password and returns it in the response role object. This atomic surfaces that plaintext password in its terminal state_data so that a calling orchestration (C-05, neon.role.reset_password) can build a connection string from it.

SECURITY: the returned password is plaintext and MUST NOT be persisted as-is. It is returned ONLY because the orchestrating workflow needs it to construct a connection string; that orchestration is responsible for encrypting it before any DB write. This atomic performs no DB writes. Workflow state_data is ephemeral and encrypted at rest by the engine.

Inputs:

  • neon_project_id: Neon project id (required)
  • neon_branch_id: Neon branch id the role lives on (required)
  • role_name: name of the role whose password is reset (required)

Outputs (terminal state_data):

  • neon_project_id: str — pass-through project id
  • neon_branch_id: str — pass-through branch id
  • role_name: str — confirmed role name
  • password: str — the new plaintext password (do NOT persist as plaintext)

Plugin required: context.get_plugin("neon") must expose .api_token.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryBase
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidNo—Cloud connection holding the Neon credential
neon_project_idstringYes—Neon project id
neon_branch_idstringYes—Neon branch id the role lives on
role_namestringYes—Name of the role whose password is reset

Output Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidNo——
neon_project_idstringNo——
neon_branch_idstringNo——
role_namestringNo——
passwordstringNo—New plaintext password — do NOT persist as plaintext
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—executeReset-password request accepted
completedNoYesYes—Neon role password reset
failedNoYesNo—Neon role password reset failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompletedReset Neon role password
* (any state)failfailedMark workflow failed

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "neon.roles.reset_password",
  "initial_data": {
    "neon_project_id": "value",
    "neon_branch_id": "value",
    "role_name": "value"
  }
}