By NHI Mgmt Group Editorial TeamBased on PassBolt: “Ansible lookup plugin is back, rewritten for Passbolt 5” (March 18, 2026)

TL;DR: Secrets automation is moving toward stricter identity binding and less ambiguity, as PassBolt’s rewritten Ansible lookup plugin for v5 now retrieves encrypted metadata, account kits, and richer resource objects through UUID-based lookups, while dropping search-by-name and write operations. The practical lesson is that this changes how teams govern access, retrieval, and playbook design.


At a glance

What this is: PassBolt’s updated Ansible lookup plugin is a read-only retrieval path for Passbolt 5 that now handles encrypted metadata, account kits, and full resource objects while requiring UUIDs instead of ambiguous name searches.

Why it matters: For IAM and NHI practitioners, this matters because playbooks now have to treat secret retrieval as a governed identity workflow, not a loose lookup against human-friendly labels.


Context

The governance problem here is not just secret retrieval, but how automation proves it is asking for the right object in a system where names can be duplicated and metadata is now encrypted. In NHI terms, this shifts the control surface from convenience-based lookup to identity-bound access and explicit object targeting.

PassBolt’s article describes a new Ansible lookup plugin for Passbolt 5 that is intentionally read-only and built around UUID-based retrieval. That design choice matters because it separates location from modification, reduces ambiguity in playbooks, and forces teams to think about what their automation is authorised to fetch, not just what it can name.


Key questions

Q: How should teams handle secrets automation when metadata is encrypted?

A: Teams should treat encrypted metadata as a governance change, not just a format update. Automation must authenticate the specific object it wants, use explicit identifiers, and avoid relying on labels that may be hidden, duplicated, or misleading. The goal is to make retrieval deterministic, reviewable, and tightly scoped to the task.

Q: Why do UUID-based lookups matter for secret management playbooks?

A: UUID-based lookups reduce accidental access to the wrong resource when names, usernames, or URIs are reused. They force the playbook to reference one exact object, which improves access precision and makes secret retrieval easier to govern across large inventories with similar records.

Q: What is the risk of giving automation full decrypted resource objects?

A: The risk is that a single retrieval call can expose more data than the task actually needs, including passwords, notes, TOTP values, custom fields, and URIs. That broad return shape increases blast radius if the playbook is over-permissioned or if its output is forwarded into logs or other systems.

Q: How should security teams govern account kit files used by automation?

A: Security teams should govern account kit files as sensitive identity artifacts because they carry authentication inputs and help define who or what can retrieve secrets. Store them in controlled secret handling, restrict distribution, and treat verification order as part of the trust boundary rather than a convenience detail.


Technical breakdown

Why encrypted metadata changes the retrieval model

In Passbolt 5, metadata such as name, username, and URI is no longer safely treated as plaintext lookup data. The plugin therefore has to decrypt both metadata and secret material before a playbook can use the record. That changes the trust boundary: the automation is no longer just reading a value, it is verifying the object, the keying context, and the integrity of the payload. For NHI governance, this is important because the lookup step becomes part of the security control, not a neutral transport detail.

Practical implication: Treat lookup logic as a governed access path and review what your automation is allowed to resolve before it ever reaches a secret value.

Why UUID-based lookups reduce ambiguity in Ansible

The older search-by-name model was convenient, but ambiguous when multiple resources shared the same label. Requiring a UUID makes the object reference explicit and avoids accidental retrieval of the wrong credential set. In practical terms, this is closer to an identity control than a search feature: the playbook must already know exactly which resource it is entitled to fetch. That matters more when metadata itself is encrypted, because there is less visible context to disambiguate objects at runtime.

Practical implication: Move playbooks from human-readable search logic to explicit object references so automation cannot resolve the wrong secret by accident.

How the account kit changes secret handling in automation

The account kit packages the private key, passphrase, domain, identity, and a security token into a signed file that the plugin verifies before any network call is made. That sequencing matters because the plugin validates integrity, fingerprints, and server identity before it asks for data. In operational terms, the account kit collapses several setup inputs into one portable identity artifact, but it also concentrates trust into a file that must be protected like an NHI credential bundle. For teams, that means the file is not configuration fluff; it is part of the authentication boundary.

Practical implication: Classify the account kit as sensitive identity material and govern its storage, rotation, and distribution accordingly.


NHI Mgmt Group analysis

UUID-based secret retrieval is the right response to ambiguous automation identity. Name-based lookup was tolerable when metadata was plaintext and resource sets were small. Once metadata becomes encrypted, the object itself must be referenced explicitly or automation starts guessing. The broader lesson is that NHI governance should prefer deterministic object identity over operator convenience, because ambiguity is now a control weakness, not a usability feature.

The account kit is an identity artifact, not just a setup shortcut. It concentrates authentication inputs into a signed portable file, which means the lifecycle of that file now matters as much as the lifecycle of the underlying credentials. That makes storage location, distribution path, and verification order central governance issues. Teams should treat the kit as part of the credential estate, not as a harmless bootstrap mechanism.

Read-only lookup is a useful boundary, but it does not remove blast radius. A lookup plugin that can fetch full decrypted resource objects still exposes password, notes, TOTP, custom fields, and URIs in one transaction. That means the decisive control is not whether the plugin can write back, but how tightly its retrieval scope is bound to the playbook’s actual purpose. The implication is narrower authorisation, not broader convenience.

Encrypted metadata pushes secrets management toward object-level authorisation. When the resource name, URI set, and secret values all travel together, teams can no longer separate discovery from access as cleanly as before. This aligns with modern NHI thinking: the access decision has to be anchored to the specific resource, the specific identity, and the specific retrieval path. Practitioners should expect secret platforms to behave more like identity systems and less like simple key stores.

Clear separation between lookup and mutation is now a governance requirement, not just an API design choice. The new plugin deliberately removes creation and update operations so its behaviour matches its purpose. That clarifies responsibility boundaries and reduces the temptation to overload retrieval tooling with lifecycle functions. For identity teams, the message is simple: automation that handles secrets should have a narrowly defined job, and governance should enforce that boundary.

What this signals

Secret retrieval is becoming an identity control, not a convenience wrapper. Once metadata is encrypted and object names are no longer reliable selectors, the automation layer has to prove exactly which secret it is authorised to fetch. That is a governance shift for any programme that still treats playbooks as simple consumers of credentials.

Lookup tooling now sits inside the trust boundary. The plugin verifies signed identity material before the first network call, which means the retrieval path itself becomes part of the assurance model. For practitioners, the practical implication is that playbook identity, secret storage, and object selection have to be managed together rather than as separate concerns.


For practitioners

  • Lock playbooks to UUID-based retrieval Replace any search-by-name logic with explicit UUID references so automation always targets one known resource and cannot drift across similarly named secrets.
  • Store account kit inputs as protected secrets Move the account kit and passphrase out of ad hoc environment variables and into governed secret storage so bootstrap credentials are handled like sensitive identity material.
  • Separate read-only lookup from lifecycle actions Keep secret retrieval tools focused on locating and returning data, while creation, update, and offboarding stay in distinct governed workflows.
  • Review playbook output for overexposure Check whether a given automation task really needs the full decrypted resource object or only a subset of fields, then redesign the workflow to limit what downstream systems see.

Key takeaways

  • Encrypted metadata changes secret automation from label-based lookup to explicit object-level retrieval.
  • The article shows why UUIDs, signed account kits, and read-only access boundaries now matter together.
  • Teams should govern automation credentials and playbook scope as part of the same NHI control plane.

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 addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-02 — Secret LeakageThe plugin handles encrypted secrets and reduces exposure from loosely handled credential material.
NHI-04 — Insecure AuthenticationThe article centres on signed account kits, fingerprint checks, and JWT authentication for retrieval.
NHI-07 — Long-Lived SecretsThe account kit and passphrase are sensitive credentials whose lifecycle must be governed.
Recommendation — Classify retrieved account kits and playbook outputs as secret material and keep them out of logs and ad hoc storage. Validate identity material before allowing automation to request decrypted secret data. Shorten the lifetime and distribution scope of bootstrap credentials used by automation.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementThe article discusses key and passphrase handling as part of authentication for automation.
Recommendation — Apply authenticator lifecycle controls to the account kit and related access material.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe plugin now requires exact object targeting and narrower authorisation for secret retrieval.
Recommendation — Constrain automation to the exact resources it is permitted to retrieve.

Key terms

  • Account Kit: A signed identity package used to bootstrap access to a Passbolt account. It bundles keying material, domain context, and related authentication data so a client can validate trust before attempting retrieval or login. In governance terms, it is a sensitive access artifact with its own lifecycle.
  • Encrypted Metadata: Encrypted metadata is the non-secret information attached to a secret or resource that is stored in encrypted form instead of plain text. In practice, it changes what administrators, integrations, and auditors can see, which makes visibility and lifecycle management part of the security design.
  • UUID-Based Retrieval: A retrieval pattern where an automation task must request one exact resource identifier instead of searching by human-readable labels. It reduces ambiguity, prevents accidental cross-selection of similar secrets, and makes playbook access decisions easier to audit and govern.
  • Read-Only Lookup Plugin: An automation component that retrieves data without creating, updating, or deleting records. In this article’s context, the restriction matters because it creates a clear boundary between locating a secret and changing its lifecycle, which supports tighter governance of NHI access.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on July 8, 2026.
Updated on October 11, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org