Skip to main content

Manage access to Secrets Manager

Access to Secrets Manager is governed by:

Access within projects

All Secrets Manager secrets are added to a specific project. You can group secrets by different projects and configure user permissions depending on which projects they need access to.

Access within roles

Access to Secrets Manager is granted by Secrets Manager roles and global roles. Learn more about role types in the Role reference.

Role groupRoleAccess
Secrets Manager rolessecrets.adminSecrets management
secrets.viewerViewing secrets
secrets.consumerViewing and using secrets
Global rolesmemberManagement of Secrets Manager and other products, account, billing, and projects
iam.adminManagement of access to Secrets Manager and other products
iam.viewerViewing access to Secrets Manager and other products
readerViewing secrets of Secrets Manager and all products, account, billing, and projects

Secrets Manager roles

secrets.admin

The secrets.admin role gives access to managing secrets in Secrets Manager.

Access scopes
  • account;
  • project
Who can be assigned
  • users;
  • service users;
  • user groups
Available operations in Secrets Manager

In the Account access scope:

  • managing secrets (adding, deleting) in all projects;
  • managing secret versions (adding, changing the current version, deleting) in all projects;
  • viewing secret content in all projects

In the Project access scope:

  • managing secrets (adding, deleting) in your project;
  • managing secret versions (adding, changing the current version, deleting) in your project;
  • viewing secret content in your project

secrets.viewer

The secrets.viewer role gives access to viewing everything managed by secrets.admin.

Access scopes
  • account;
  • project
Who can be assigned
  • users;
  • service users;
  • user groups
Available operations in Secrets Manager

In the Account access scope:

  • viewing the list of secrets and information about them, excluding secret content, in all projects

In the Project access scope:

  • viewing the list of secrets and information about them, excluding secret content, in your project

secrets.consumer

The secrets.consumer role gives access to viewing and using secrets in Secrets Manager.

Access scopes
  • account;
  • project
Who can be assigned
  • users;
  • service users;
  • user groups
Available operations in Secrets Manager

In the Account access scope:

  • viewing the list of secrets and information about them in all projects;
  • viewing secret content in all projects

In the Project access scope:

  • viewing the list of secrets and information about them in your project;
  • viewing secret content in your project

Global roles

member

The member role grants full access to all services. It does not grant access to manage management console users, service accounts, user groups, and federations.

Access scopes
  • account;
  • project
Who can be assigned
  • users;
  • service users;
  • user groups
Available operations in Secrets Manager

In the Account access scope:

  • managing secrets (adding, deleting) in all projects;
  • managing secret versions (adding, changing the current version, deleting) in all projects;
  • viewing secret content in all projects

In the Project access scope:

  • managing secrets (adding, deleting) in your project;
  • managing secret versions (adding, changing the current version, deleting) in your project;
  • viewing secret content in your project

iam.admin

The iam.admin role grants access to user management and does not grant access to product management and billing. It does not allow you to manage your own account: modify permissions, manage notifications, or delete the user. The first user with the iam.admin role is created by the Account owner.

Access scopesAccount
Who can be assigned
  • users;
  • service users;
  • user groups
Available operations in Secrets ManagerManaging management console users, service accounts, and user groups

iam.viewer

The iam.viewer role gives access to viewing everything managed by iam.admin.

Access scopesAccount
Who can be assigned
  • users;
  • service users;
  • user groups
Available operations in Secrets ManagerViewing management console users, service accounts, and user groups

reader

The reader role gives access to viewing everything managed by member in the same scope.

Access scopes
  • account;
  • project
Who can be assigned
  • users;
  • service users;
  • user groups
Available operations in Secrets Manager

In the Account access scope:

  • viewing the list of secrets and information about them, excluding secret content, in all projects

In the Project access scope:

  • viewing the list of secrets and information about them, excluding secret content, in your project