Subscribe to the Non-Human & AI Identity Journal
Governance, Ownership & Risk

Feature Flag

← Back to Glossary
By NHI Mgmt Group Updated June 8, 2026 Domain: Governance, Ownership & Risk

A feature flag is a runtime control that turns a capability on or off for a specific user, organization, or environment. In identity terms, it behaves like an entitlement claim when it decides what a customer can do, and it must be governed with ownership, review, and retirement rules.

Expanded Definition

A feature flag is a runtime control that enables or disables functionality for a defined audience, such as a user, tenant, region, or environment. In NHI and IAM operations, it increasingly behaves like an entitlement decision because it can permit access to tooling, data paths, or agent actions without changing the underlying code base.

Definitions vary across vendors when feature flags are used for experimentation, access gating, or progressive delivery, so governance should distinguish a temporary release toggle from a durable authorization control. When a flag changes who can invoke an API, run an agent workflow, or reach a sensitive capability, it should be treated as a policy artifact with an owner, review cadence, and retirement date. The most common misapplication is treating a long-lived production flag as a harmless development toggle, which occurs when teams leave access decisions embedded in code after release.

For broader identity governance context, the Ultimate Guide to NHIs shows why runtime permissions and secret-backed service actions need lifecycle control, and the NIST Cybersecurity Framework 2.0 remains a useful reference for control ownership and risk management.

Examples and Use Cases

Implementing feature flags rigorously often introduces governance overhead, requiring organisations to weigh release speed against the cost of policy drift, stale access paths, and audit complexity.

  • A platform team uses a flag to expose a new agent tool only to internal operators before expanding access to customers.
  • A tenant-specific flag enables a premium workflow for one customer while preserving separation from the default service account permissions.
  • An engineering group gates a secret-using integration behind a flag during rollout, then removes the flag after validation rather than leaving it active indefinitely.
  • A security team disables a risky automation path at runtime after abnormal behaviour, buying time while credentials and trust boundaries are reviewed.
  • An identity platform maps a release flag to a controlled entitlement, so access can be switched on and off without code changes.

These patterns align with the governance concerns discussed in the Ultimate Guide to NHIs and with the access and assurance thinking behind the NIST Cybersecurity Framework 2.0.

Why It Matters in NHI Security

Feature flags become security-relevant when they control whether an NHI, service account, or AI agent can execute privileged actions. If they are unmanaged, they can create hidden access paths that bypass review, obscure ownership, and survive long after the intended test or rollout has ended. That is especially dangerous in environments where secrets, tokens, or certificates are already widely distributed.

NHI Mgmt Group reports that 97% of NHIs carry excessive privileges and that only 20% of organisations have formal processes for offboarding and revoking API keys, which means a misplaced flag can preserve risky access instead of reducing it. The issue is not the toggle itself, but the control plane it represents: if the flag decides entitlement, then it must be audited like any other authorization mechanism. The Ultimate Guide to NHIs also highlights how widely NHIs are overprivileged, reinforcing why runtime access controls need explicit retirement rules.

Organisations typically encounter the consequence only after a stale flag leaves an agent path open, at which point feature flag 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 address the attack and risk surface, while NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-04Flags that gate NHI actions function as entitlement controls and need lifecycle governance.
NIST CSF 2.0PR.AC-4Feature flags can grant or restrict access, aligning with least-privilege access management.
NIST Zero Trust (SP 800-207)AC-4Zero Trust treats each access decision as enforceable policy, which fits flag-based gating.

Evaluate feature flags as dynamic policy inputs and verify they do not bypass zero-trust enforcement.

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