Join our Newsletter — 33% off our NHI Course
Home› Guides› Cloud Database Services Mapped: Passwordless Database Access on…
Guide Cloud Security

Cloud Database Services Mapped: Passwordless Database Access on Four Clouds

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 20 November 2026 14 min read
On this page

Every major cloud now lets a workload sign in to a managed database with a short-lived cloud identity token instead of a stored password, and mapping those mechanisms side by side is the fastest way to remove database passwords from a multi-cloud estate. This guide maps how Amazon Web Services (AWS), Microsoft Azure, Google Cloud and Oracle Cloud Infrastructure (OCI) connect their identity systems to their managed database services, with a security and identity angle on every row.

Database credentials are some of the most valuable non-human identity (NHI) secrets in any environment. A connection string with a static password tends to be copied into configuration files, container images, pipeline variables and developer laptops, and it rarely gets rotated. Each of the four providers documents a way to replace that password with a token issued by the cloud identity platform. The mechanisms differ in naming, token lifetime, logging and limitations, and those details decide how you design access, monitoring and break-glass procedures.

Providers are listed in alphabetical order (AWS, Azure, Google Cloud, OCI) throughout this page. Each gets the same structure and depth. Nothing here ranks one provider above another; the aim is to help teams that run more than one cloud translate a control from one platform to the next. Facts come from each provider's public documentation as of November 2026, linked in each section. Features change, so confirm settings against current vendor documentation before you rely on them.

Key takeaways

  • All four providers document a way for an application identity to authenticate to a managed database with a token from the cloud identity platform rather than a database password.
  • The names differ: IAM database authentication on Amazon RDS, Microsoft Entra authentication on Azure SQL, IAM database authentication on Cloud SQL, and IAM authentication on Autonomous AI Database.
  • Token lifetimes and refresh models differ, so connection pools and long-running jobs need provider-specific handling.
  • Cloud identity grants usually let an identity log in, but database-level users, roles and grants still decide what it can do. Plan both layers.
  • Logging coverage of the token exchange is not uniform. Read each provider's notes on what is and is not recorded before you design detections.
  • Turning on token-based sign-in is only half the job. The other half is disabling or tightly controlling the password paths that remain.

Mapping table: cloud identity to managed database sign-in

The table lists each provider's own feature name, the identity types its documentation names, and the documentation page used for this guide. Rows are alphabetical by provider.

ProviderFeature name in vendor docsDatabases named in the cited pageWorkload identity types namedSecurity and identity angleSource
AWSIAM database authenticationAmazon RDS for MariaDB, MySQL and PostgreSQLIAM users and roles, including EC2 instance profile credentialsAuthentication token signed with AWS Signature Version 4, lifetime 15 minutesAmazon RDS documentation
AzureMicrosoft Entra authenticationAzure SQL Database, Azure SQL Managed Instance, SQL Server on Azure VMsService principals and managed identities (system-assigned and user-assigned)Token-based managed identity sign-in; optional Microsoft Entra-only authenticationAzure SQL documentation
Google CloudIAM database authenticationCloud SQL for PostgreSQL (page cited)IAM users and service accountsOAuth 2.0 access token valid for one hour; automatic mode through Cloud SQL connectorsCloud SQL documentation
OCIIdentity and Access Management (IAM) authenticationAutonomous AI DatabaseIAM users and OCI applications, including instance principals and resource principalsIAM database password or IAM SSO token based authenticationAutonomous AI Database documentation

The table covers sign-in only. It does not attempt to map every relational, NoSQL or analytics service each provider offers. Use the same method shown here to check each additional database service in your estate against its own documentation.

Why database sign-in is an NHI problem

Most database connections are made by software, not people. Application servers, functions, batch jobs, reporting tools, data pipelines and increasingly AI agents all hold a way to reach a database. Each of those is a non-human identity, and each traditionally carried a username and password.

Static database passwords create a familiar set of problems. They are long lived, often shared between services, hard to attribute to one workload, and painful to rotate because rotation can break production. When one leaks, an attacker gets direct data access that bypasses application logic.

Token-based sign-in shifts the trust anchor. The workload proves who it is to the cloud identity platform, using a credential the platform issues and rotates, and then presents a short-lived token to the database. That gives you central policy, shorter exposure windows and attribution to a named identity. It does not remove the need for least privilege inside the database, and it introduces new dependencies on the identity platform and on client drivers.

AWS: IAM database authentication for Amazon RDS

The Amazon RDS documentation states that IAM database authentication works with MariaDB, MySQL and PostgreSQL. With this method, a client does not use a password when it connects. It uses an authentication token instead, so user credentials do not need to be stored in the database. Standard database authentication remains available alongside it.

How the token works

Tokens are generated using AWS Signature Version 4 and each has a lifetime of 15 minutes. The documentation notes that the token is used only for authentication and does not affect the session once it is established. Applications on Amazon EC2 can use the instance's profile credentials to obtain tokens, so no password sits on the host. Network traffic to and from the database is encrypted using SSL or TLS when this method is used.

Limitations to plan around

  • For PostgreSQL, if the rds_iam role is granted to a user, including the master user, IAM authentication takes precedence over password authentication for that user.
  • For PostgreSQL, the documentation says IAM and Kerberos authentication cannot be enabled at the same time.
  • A custom Route 53 DNS record cannot be used in place of the DB instance endpoint to generate the token.
  • The documentation states that CloudWatch and CloudTrail do not log IAM authentication and do not track the generate-db-auth-token calls.
  • Several global condition keys are not supported, including aws:SourceIp, aws:SourceVpc and aws:SourceVpce.
  • The documentation advises 300 to 1000 MiB of extra database memory for reliable connectivity, and warns that drivers must not truncate the token, which is generally about 1 KB or larger.
  • IAM DB authentication is not supported for RDS on Outposts.

Identity angle

Because the token exchange is not recorded in CloudTrail, network-based IAM conditions are unavailable, and the token is valid for 15 minutes, detection for this path has to come from database-level logging and network controls. Treat the IAM policy that grants database connect permission as a privileged entitlement and review it like one.

Azure: Microsoft Entra authentication for Azure SQL

The Azure SQL documentation describes Microsoft Entra authentication across Azure SQL Database, Azure SQL Managed Instance, SQL Server on Azure VMs and SQL Server for Windows and Linux. Azure Synapse Analytics has its own article.

How the token works

Applications in Azure can use service principals or managed identities to authenticate directly to Azure SQL. The documentation states that managed identities are preferable because authentication is passwordless and removes developer-managed credentials. Both system-assigned and user-assigned managed identities are supported. Managed identity authentication is token based: the identity is assigned to the resource that authenticates, and the identity platform validates that relationship. The documentation discourages service principals with a client secret because of the risk that passwords are guessed or leaked.

Microsoft Entra-only authentication

Microsoft Entra-only authentication is described as a complete alternative to SQL authentication. When it is enabled, all other authentication methods are disabled, including the SA account and other SQL authentication accounts, and Windows authentication for Azure SQL Managed Instance. The documentation notes it can be managed centrally with Azure Policy.

Limitations to plan around

  • The documentation states that Microsoft Entra authentication for Azure SQL does not integrate with Azure RBAC. Identities must be created as principals in each database they need, for example with CREATE USER [name] FROM EXTERNAL PROVIDER.
  • The Microsoft Entra administrator is a single property, so only one identity can be configured at a time. A group is the practical way to give more than one person that role.
  • Creating principals for service principals or managed identities requires Microsoft Graph read permissions, such as Application.Read.All.

Identity angle

The split between Azure RBAC on the control plane and database principals on the data plane means two access reviews, not one. Microsoft Entra-only authentication is the documented way to close the SQL password path, so track it as a policy setting rather than a one-time change.

Google Cloud: IAM database authentication for Cloud SQL

The Cloud SQL documentation describes IAM database authentication for IAM users and service accounts. The page cited here covers Cloud SQL for PostgreSQL.

How the token works

Each principal signs in with its own IAM credentials rather than a shared account, and Cloud SQL creates a database account for that user or service account after its first login. OAuth 2.0 access tokens used for sign-in are short lived and valid for one hour. There are two modes:

  • Automatic: a Cloud SQL connector requests and refreshes the token, so the client supplies only the IAM database username. Supported connectors include the Cloud SQL Auth Proxy and the Go, Java and Python language connectors. The documentation strongly recommends automatic over manual authentication.
  • Manual: the client obtains a token and passes it as the password, with the email address as the username. Logins after expiry fail, which matters for connection pools.

Limitations to plan around

  • The principal needs the cloudsql.instances.login permission, provided by the Cloud SQL Instance User role.
  • The cloudsql.iam_authentication database flag must be enabled.
  • IAM logins work only over SSL, and usernames must be lowercase. Service account usernames are truncated to fit the 63-character limit.
  • Logins are limited to 12,000 per minute per instance.
  • Read replicas do not inherit IAM authentication automatically.
  • With context-aware access enabled, the documentation states that IAM authentication logins fail.

Identity angle

Automatic mode through a connector moves token handling out of application code, which reduces the chance a token is logged or cached in the wrong place. The Cloud SQL Instance User grant is the entitlement to review; database roles decide what the identity can read or change after sign-in.

OCI: IAM authentication for Autonomous AI Database

The Oracle documentation describes two IAM methods for Autonomous AI Database: IAM database password authentication and IAM SSO token based authentication. Both are supported in commercial regions with identity domains and in legacy IAM, and users and groups in default and non-default identity domains are supported.

How the token works

The IAM database password is separate from the OCI Console password and works with any supported 12c or later client. The token method uses IAM database tokens and needs a recent client (19c, at least 19.16) to pass tokens through the client API. The documentation lists ways to obtain a token: through the client API, through the OCI CLI saved to a file, through an IAM instance principal or resource principal, and through other methods such as an API key or a delegation token in Cloud Shell. It notes that sending the token through the API overrides other client settings.

Limitations to plan around

  • For both password verifier and token verifier access, you create mappings for IAM users and OCI applications to the database instance. Without a mapping there is no access.
  • The IAM user accounts themselves are managed in IAM, not in the database.
  • Client version matters for token use, so older drivers in a fleet may limit adoption.

Identity angle

For workloads, instance principals and resource principals are the documented way to obtain a database token without a stored credential. The IAM database password option still creates a password, so treat it as a human sign-in path and keep workloads on tokens where your clients support them.

Designing one access pattern across four clouds

Teams that run more than one provider benefit from a single internal standard that each platform team implements in its own terms. A workable pattern, which is an NHI Mgmt Group recommendation rather than a vendor requirement, looks like this:

  1. One workload, one identity. Give each application or job its own cloud identity (IAM role, managed identity, service account, or instance or resource principal). Avoid sharing across services so that logs attribute activity correctly.
  2. Two layers of grant. Record the cloud-side grant that allows sign-in and the database-side role that sets privileges as one access request, so that neither is created without the other.
  3. Short tokens, managed refresh. Use the provider's connector, SDK or driver support to refresh tokens instead of writing token handling into application code.
  4. Close the password door. Where the provider offers it, disable password sign-in. Where it does not, restrict and monitor the remaining password accounts as break-glass.
  5. Log where the evidence is. Use database audit logs for sign-in evidence wherever the cloud control plane does not record the token exchange.

Monitoring and evidence

Evidence for auditors and incident responders comes from three places: the cloud identity grant, the token exchange, and the database session. The documentation reviewed shows that these are not always in the same log. On Amazon RDS, for example, the token generation is not tracked by CloudTrail. Build your detections from what each provider records, and test them with a controlled sign-in before you depend on them.

Useful signals, labelled here as illustrative rather than vendor-specific, include sign-ins by an identity outside its usual source network, new database principals created for cloud identities, changes to the database administrator setting, and any successful password sign-in on an instance that is meant to be token only. For cross-provider log routing, see the logging and audit map linked at the end of this page.

Common failure patterns

  • Token sign-in enabled, password left on. The new path is used by one service while older services keep a static password that nobody rotates.
  • Cloud grant without database role review. The identity can sign in, and the database role granted years ago is far broader than the workload needs.
  • Token treated like a password. Applications cache tokens, log them or pass them through environment variables, which undoes the benefit of a short lifetime.
  • Connection pool expiry outages. Pools that hold connections beyond token lifetime fail on reconnect, and teams roll back to passwords instead of fixing refresh.
  • Assuming control plane logs cover sign-in. Detections are built on cloud audit logs that, for some providers, do not record the token exchange.
  • Replicas and secondary instances forgotten. Configuration applied to the primary is not applied to read replicas or standby copies.
  • Single administrator identity. One named person holds database administrator rights with no group or break-glass procedure.

Practitioner checklist

  • Inventory every managed database and record whether token-based sign-in is enabled.
  • Assign a dedicated cloud identity to each workload that connects to a database.
  • For each identity, document both the cloud-side sign-in grant and the database-side role.
  • Use provider connectors or SDK support for token refresh; remove hand-written token code.
  • Disable password authentication where the provider supports it, and track the setting as policy.
  • Keep any remaining password accounts as break-glass, stored in a secrets manager and rotated.
  • Confirm which log records the sign-in on each provider and build detections from that log.
  • Apply the same configuration to replicas, standby databases and new environments.
  • Check client driver versions across the fleet against each provider's stated requirements.
  • Review database administrator assignments and use groups rather than individuals.

Standards and references

Related NHI Mgmt Group resources: Cloud Service Equivalents · Cloud Identity Services Mapped · Cloud Secrets Services Mapped · Cloud Logging and Audit Services Mapped

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.