Subscribe to the Non-Human & AI Identity Journal
Home Glossary NHI Lifecycle Management Database Access Lifecycle
NHI Lifecycle Management

Database Access Lifecycle

← Back to Glossary
By NHI Mgmt Group Updated June 7, 2026 Domain: NHI Lifecycle Management

The database access lifecycle is the end-to-end process that governs how permissions are requested, approved, used, reviewed, and removed. In mature environments, access is tied to business purpose and expiry, so privilege does not outlive the work it was granted for.

Expanded Definition

Database access lifecycle describes the full governance path for database permissions, from request and approval through provisioning, review, renewal, and revocation. In NHI security, this lifecycle matters because database access is often held by service accounts, applications, agents, and automation rather than people.

Definitions vary across vendors, but the operational meaning is consistent: access should exist only for a documented purpose, for a bounded time, and with traceable ownership. That aligns with the guidance in the NHI Lifecycle Management Guide and with OWASP Non-Human Identity Top 10 principles that treat standing access and weak secret handling as recurring risk patterns.

The lifecycle is not the same as simple authentication. Authentication answers who or what is connecting. The lifecycle answers whether that access should still exist, whether it is scoped correctly, and whether its secret or token needs rotation. The most common misapplication is treating initial provisioning as the end of governance, which occurs when teams create a database login for deployment and never attach an expiry, review, or offboarding trigger.

Examples and Use Cases

Implementing database access lifecycle rigorously often introduces approval and renewal overhead, requiring organisations to weigh faster deployment against reduced privilege creep and better auditability.

For practical lifecycle guidance, the Ultimate Guide to NHIs — Lifecycle Processes for Managing NHIs and the Guide to NHI Rotation Challenges show why rotation, renewal, and revocation need to be treated as routine controls, not emergency tasks.

  • A CI/CD pipeline receives temporary read access to a reporting database for a migration window, then loses the credential automatically after the cutover.
  • An AI agent is granted write access to a feature store only after business approval, with expiry aligned to the project milestone and the secret rotated at each release.
  • A data integration service uses a database role scoped to one schema, avoiding broad table-level permissions that would persist across environments.
  • A legacy application is reviewed after a security event, and its static database password is replaced with a shorter-lived token and documented owner.
  • Access reviews remove dormant application logins that were created for testing and never removed during handoff to production.

These patterns matter because database access is often intertwined with other secrets and service credentials. The Guide to the Secret Sprawl Challenge is a useful reference when access logic and secret distribution drift apart. For standards-oriented implementation, the lifecycle should also reflect the review and revocation discipline promoted by OWASP.

Why It Matters in NHI Security

Database access lifecycle is a control boundary for confidentiality, integrity, and operational containment. When it is weak, an exposed token, overbroad role, or forgotten service account can turn a single compromise into durable database access. NHIMG research found that 91% of former employee tokens remain active after offboarding, a reminder that access rarely fails at creation; it fails at removal and review. The same lifecycle gap appears in NHIs, where 97% carry excessive privileges according to Ultimate Guide to NHIs.

This is also where database governance intersects with Zero Trust Architecture and least privilege. If the database layer does not enforce expiry, scope, and rotation, upstream controls cannot fully compensate. The practical lesson is that lifecycle controls must be visible in inventory, enforced in automation, and reviewed against actual usage, not just policy text. The Top 10 NHI Issues and related lifecycle guidance help security teams identify where standing access persists longer than the work it was meant to support.

Organisations typically encounter database privilege sprawl only after an incident review, at which point lifecycle controls become operationally unavoidable to address.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST Zero Trust (SP 800-207) and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-02Covers secret handling and standing access risks tied to non-human identities.
NIST Zero Trust (SP 800-207)PR.AC-4Least-privilege access and continuous review are core zero-trust expectations.
NIST CSF 2.0PR.AC-1Access permissions and revocation map directly to identity and access governance.

Inventory database credentials, rotate them, and remove standing access tied to non-human identities.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on June 7, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org