Join our Newsletter — 33% off our NHI Course

Declarative Governance

A governance model that defines acceptable behaviour in advance instead of relying on one-time approvals or static permissions. In practice, it sets policy for data access, usage conditions, and remediation triggers, then evaluates runtime activity against those declared expectations.

Expanded Definition

Declarative governance is a policy-first model for Non-Human Identity control: acceptable access, usage conditions, and remediation rules are defined ahead of time, then evaluated continuously as systems act. Rather than granting broad standing permissions and relying on occasional approval, it expresses what an agent, service account, or workload may do, under which context, and what must happen when conditions drift.

This approach is especially relevant where autonomous software entities have execution authority and tool access, because runtime behaviour changes faster than manual review cycles. In NHI management, declarative governance is closely related to policy-as-code, conditional access, and Zero Trust thinking, but it is not identical to any one framework. Definitions vary across vendors, and no single standard governs this yet. The useful distinction is that it governs expected behaviour before and during execution, not after a human reviewer notices a change.

For governance design, the most useful baseline is the NIST Cybersecurity Framework 2.0, which reinforces continuous control validation rather than one-time permissioning. The most common misapplication is treating declarative governance as a static approval workflow, which occurs when policy is written once but never enforced against live NHI activity.

Examples and Use Cases

Implementing declarative governance rigorously often introduces policy engineering and monitoring overhead, requiring organisations to weigh tighter runtime control against the cost of maintaining precise rules.

  • A service account can read production logs only from approved workloads, during defined maintenance windows, and only if the request is tagged with an incident ticket identifier.
  • An AI agent may call a payment API, but only when the request comes through an approved orchestration layer and the action is limited to a predeclared transaction threshold.
  • A build pipeline token can be issued just in time, with automatic revocation when the pipeline exits or when the repository context changes unexpectedly. This aligns with lifecycle thinking described in Ultimate Guide to NHIs — Lifecycle Processes for Managing NHIs.
  • An OAuth-connected vendor app can be restricted to declared scopes and blocked automatically if its behaviour expands beyond the policy baseline, a pattern that addresses the visibility gaps highlighted in The State of Non-Human Identity Security.
  • A machine certificate can remain valid only while device posture, workload identity, and network location all satisfy policy conditions, not merely because the certificate exists.

These use cases become stronger when the policy model is tied to runtime identity signals, not just provisioning records. For broader operational context, the Top 10 NHI Issues research shows how unmanaged permissions, weak rotation, and poor observability compound one another when governance is not explicit.

Why It Matters in NHI Security

Declarative governance matters because NHI risk is usually created by drift: permissions expand, tokens persist, and tool access outlives the business condition that justified it. In environments with agents, workloads, and third-party integrations, a one-time grant cannot express the full set of constraints needed to keep access safe over time. Declarative policy reduces ambiguity for audit, incident response, and remediation because it defines what “allowed” means before the system acts.

This is also where governance and security become operationally inseparable. The Ultimate Guide to NHIs — Regulatory and Audit Perspectives frames the accountability problem clearly: auditors and security teams need evidence that access decisions are consistently enforced, not merely documented. That need becomes more urgent when organisations recognise the scale of the problem, including the fact that 72% of organisations have experienced or suspect a breach of non-human identities, according to The 2024 ESG Report: Managing Non-Human Identities.

Organisations typically encounter the consequences only after an agent overreaches, a secret is abused, or a vendor integration behaves outside expectation, at which point declarative governance becomes 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 and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST Zero Trust (SP 800-207) and NIST AI RMF set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-04 Declarative access and remediation policies align with runtime enforcement for NHIs.
NIST CSF 2.0 PR.AC-4 Least-privilege access and permission management support declarative governance.
NIST Zero Trust (SP 800-207) CA-7 Continuous monitoring and dynamic trust decisions are core to declarative enforcement.
NIST AI RMF Risk-based governance for AI systems depends on explicit policies and monitoring.
OWASP Agentic AI Top 10 A-03 Agentic systems need bounded tool use and policy checks before execution.

Define NHI policy conditions upfront and continuously validate live activity against them.