Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
---
title: Access control in Secrets Management
sidebarTitle: "Access control"
description: "Learn how access to secrets is scoped and controlled in Infisical."
---
## Secret hierarchy
Every secret in Infisical is scoped to an environment and a path.
- An environment separates where secrets are used, such as `development`, `staging`, or `production`.
- A path is an (optional) namespace within an environment that groups related secrets such as `/postgres`, `/redis`, or per-service paths like `/checkout-service`.
This structure makes it easy to organize secrets by team, service, or environment, and sets the foundation for controlling who can access what.
## Role-based access
Access control determines who (or what) can access a secret and under what conditions. Without clear policies, even securely stored secrets can be misused or exposed.
To control access to secrets, you configure [role-based permissions](/documentation/platform/access-controls/overview) at the project level. These permissions determine which environments and paths a user or [machine identity](/documentation/platform/identities/overview) with that role can access. For example, an engineer might have a role that allows them to read secrets in the `development` environment but not those in the `production` environment.
This model follows the [principle of least privilege](https://en.wikipedia.org/wiki/Principle_of_least_privilege) such that each user or machine identity has access only to the secrets it needs, and nothing more.
## Advanced capabilities
Beyond basic role assignments, Infisical includes additional access control mechanisms for more advanced use cases:
- [**Access requests**](/documentation/platform/access-controls/access-requests): Users can request access to specific environments or paths. Access can be temporary and reviewed before it's granted, reducing long-term exposure.
- [**Secret change approvals**](/documentation/platform/secrets-mgmt/concepts/approval-workflows): Updates to sensitive secrets can require approval before taking effect. This adds control in environments where unreviewed changes pose risk.
- [**Attribute-based access control (ABAC)**](/documentation/platform/access-controls/abac/overview): Permissions can be matched against metadata on a user or machine identity, such as team, service, or environment, enabling dynamic access rules without manual role changes.
All access and approval actions are logged, so it's always possible to trace who accessed what, when, and under what conditions.
## Next steps
<CardGroup cols={2}>
<Card title="Approval Workflows" icon="check-check" href="/documentation/platform/secrets-mgmt/concepts/approval-workflows">
Require review before changes reach sensitive environments.
</Card>
<Card title="Access Controls Reference" icon="shield-half" href="/documentation/platform/access-controls/overview">
Explore roles, permissions, and identity management in depth.
</Card>
</CardGroup>