# Modernizing Database Authentication: CockroachDB Embraces Zero Trust with SPIFFE and SPIRE Support

DevFeed: [Modernizing Database Authentication: CockroachDB Embraces Zero Trust with SPIFFE and SPIRE Support](<https://devfeed.tech/articles/modernizing-database-authentication-cockroachdb-embraces-zero-trust-with-spiffe-and-spire-support-23827.md>)

Original publisher: [Read original article](<https://cockroachlabs.com/blog/zero-trust-database-authentication-spiffe-spire>)

Author: Sanchit Khanna,Biplav Saraf

Published: 2026-03-13T00:00:00Z

Content type: release

Language: en

Sources: [Cockroach Labs](<https://devfeed.tech/sources/cockroach-labs.md>)

Topics: [CockroachDB](<https://devfeed.tech/topics/cockroachdb.md>), [Database](<https://devfeed.tech/topics/database.md>), [SPIFFE](<https://devfeed.tech/topics/spiffe.md>), [SPIRE](<https://devfeed.tech/topics/spire.md>), [Zero Trust](<https://devfeed.tech/topics/zero-trust.md>), [Authentication](<https://devfeed.tech/topics/authentication.md>), [Microservices](<https://devfeed.tech/topics/microservices.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [3](<https://devfeed.tech/tags/3.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [cloud-native](<https://devfeed.tech/tags/cloud-native.md>), [cloud-native-security](<https://devfeed.tech/tags/cloud-native-security.md>), [cockroachdb](<https://devfeed.tech/tags/cockroachdb.md>), [database](<https://devfeed.tech/tags/database.md>), [evolution](<https://devfeed.tech/tags/evolution.md>), [identity](<https://devfeed.tech/tags/identity.md>), [modernizing](<https://devfeed.tech/tags/modernizing.md>), [native](<https://devfeed.tech/tags/native.md>), [security](<https://devfeed.tech/tags/security.md>), [spiffe](<https://devfeed.tech/tags/spiffe.md>), [spire](<https://devfeed.tech/tags/spire.md>), [support](<https://devfeed.tech/tags/support.md>), [trust](<https://devfeed.tech/tags/trust.md>), [with](<https://devfeed.tech/tags/with.md>), [zero](<https://devfeed.tech/tags/zero.md>), [zero-trust](<https://devfeed.tech/tags/zero-trust.md>)

## AI overview

CockroachDB's planned 26.2 support for X.509 Subject Alternative Name (SAN) fields is intended to enable workload authentication with SPIFFE and SPIRE, replacing reliance on certificate Common Names. The text says administrators will be able to use regex-based identity mapping to match certificate identities to SQL usernames, including a global rule for multiple services. In the described flow, SPIRE attests a workload, issues and automatically rotates a short-lived certificate containing its SPIFFE ID in the SAN URI, and CockroachDB validates it against a configured SPIRE Trust Bundle before mapping the identity to a database user. The source presents this as a way to avoid stored passwords and manual certificate rotation while supporting portable workload identities; these are stated benefits of the upcoming feature, not deployment results.

## Source excerpt

In the evolution of cloud-native security, identity has become the new perimeter.