• Concept
  • Version · 6.0
  • Leading practices

Access controls & separation of duties best practices

Last updated: August 12, 2026

Why access control matters

What this means for database changes

Diagram showing four core best practices for access controls and separation of duties. First circle with lock icon: Principle of least privilege - Give people only the access they need to do their job and nothing more. Second circle with people icon: Role-Based Access - Developers can test in development/staging, but can't access production. Third circle with shield icon: Single Sign-On (SSO) and Multi-Factor Authentication (MFA) - SSO lets users access multiple applications with one set of credentials, while MFA requires users to verify their identity using two or more authentication methods. Fourth circle with grid icon: Separate Credentials - Use different database credentials for each environment, with production credentials tightly controlled.

Core best practices

Role-Based Access Control (RBAC)

Common roles for database changes

Why RBAC helps with audits: provides clear visibility into role permissions, ensures consistent access across users, simplifies onboarding through role assignment, and streamlines audit reviews of role definitions rather than individual permissions.

Common problems you'll want to avoid

Principle of least privilege

Why it matters

Who can have what access?

Diagram showing three key practices for implementing the principle of least privilege. First practice with lock icon - Use Secrets Management: Store database credentials in tools like HashiCorp Vault or AWS Secrets Manager instead of hardcoding them. These tools encrypt credentials, automatically rotate passwords, log who accesses what, and control who can retrieve credentials. Second practice with people icon - Connect to Your Identity Provider: Integrate Liquibase with your company's Single Sign-On (SSO) system. This ensures everyone uses their company credentials, multi-factor authentication is enforced, and access is automatically removed when people leave. Third practice with shield icon - Set Up Policy Checks: Use Liquibase Secure to automatically block risky changes like granting admin privileges without review, accessing tables with sensitive customer data, and creating new database users without approval.

Single Sign-On (SSO) and Multi-Factor Authentication (MFA)

Why SSO Matters

SSO and MFA benefits: SSO provides centralized user management, automatic access removal upon departure, consistent security policies, and unified audit trails; MFA protects against compromised credentials, safeguards privileged accounts, meets compliance requirements, and mitigates insider threats.

Implementation Tips

Individual User Accounts - No Shared Credentials

Why Shared Accounts Fail Audits

How to implement individual user accounts: 
Onboarding: Create individual accounts when people join
Role changes: Update access when people change teams
Offboarding: Disable accounts immediately when people leave
Regular reviews: Quarterly check that everyone still needs their current access

What This Means