Skip to main content
HydroGo
SecurityAccounts, MFA and API keys

Accounts, MFA and API keys

Roles and permissions, TOTP multi-factor authentication, personal tokens and API keys.

Roles and permissions

RoleScope
adminFull access, including user management and system tools.
editorContent work; write access depends on granted permissions.
viewerRead-only access to the admin.
PermissionGrants
admin.content.readRead pages, news, and collection records in the admin API.
admin.content.writeCreate, edit, publish, and delete pages, news, and content records.
admin.commerce.readRead orders, products, customers, and commerce settings.
admin.commerce.writeManage products, confirm transfers, refund orders, and run commerce operations.
admin.members.manageManage member accounts and member authentication settings.
admin.users.manageInvite staff users, change roles, and assign permissions.
admin.media.manageUpload, organize, and delete media files.
admin.site.manageManage site settings, maintenance mode, redirects, and webhooks.
admin.operations.manageView runtime telemetry, backups, updates, and system operations.

Grant the minimum a person needs. Every endpoint checks permissions on the server regardless of what the admin UI shows.

Multi-factor authentication (TOTP)

  1. Install an authenticator app (any TOTP-compatible one).
  2. In My Account, start MFA enrolment and scan the QR code or enter the secret.
  3. Confirm with a six-digit code. MFA is now required at every sign-in.
  4. Store the recovery codes shown at enrolment somewhere safe.

To make MFA mandatory for a role, enrol its users first and then set security.mfa_required_roles: [admin]. Stored secrets are encrypted with security.mfa_master_key; keep that key stable, because losing or changing it invalidates enrolments.

Do not turn on mfa_required_roles before every affected account has enrolled. Accounts without a second factor cannot sign in afterwards.

Personal tokens and API keys

Personal tokenAPI key
Created byAny signed-in user, from a browser sessionAdministrators
Acts asIts ownerA read-only machine identity
ScopesOwner's full accessread or preview
HeaderAuthorization: Bearer hyd_…X-API-Key: hyd_…
ExpiryOptional, up to 3650 daysOptional, up to 3650 days
RevokeMy Account, or DELETE /api/v1/admin/account/tokens/{id}Users and roles, or DELETE /api/v1/admin/api-keys/{id}
Create one API key per consumer (staging SSR, production SSR, CI) and set an expiry. Revoking one never affects the others, and the audit trail records issue and revoke events.

Social sign-in

Staff can sign in with Google, GitHub or Apple, but only into an existing, active admin or editor account that matches the verified provider identity: social sign-in never creates staff accounts. Members (site visitors) can also use social sign-in to register themselves. Provider credentials are supplied through HYDRO_OAUTH_* and HYDRO_MEMBER_OAUTH_* environment variables.

Onboarding and offboarding

  • Invite staff by e-mail instead of sharing passwords.
  • To offboard, disable the user; sessions end and history stays intact.